Home >Database >Redis >What is the method to view the redis installation directory under Linux?

What is the method to view the redis installation directory under Linux?

王林
王林forward
2020-12-18 09:17:1916237browse

What is the method to view the redis installation directory under Linux?

The specific viewing method is as follows:

(Learning video sharing: redis video tutorial)

1. View under redis Installation directory

If the commands which and whereis cannot find the installation directory, you can use the following method:

ps -ef|grep redis

Get the process number xxxx,

Then ls -l /proc /xxxx/cwd.

What is the method to view the redis installation directory under Linux?

2. Check the directories of redis-cli and redis-server

Use whereis redis-cli.

3. Close redis

(1) First enter redis ./redis-cli and enter the password auth 'password'.

(2)shutdown.

If you use ./redis-cli shutdown directly in the directory, it will not shut down.

4. Use find

find / -name redis*

for fuzzy query: / refers to the root directory.

Related recommendations: redis database tutorial

The above is the detailed content of What is the method to view the redis installation directory under Linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete