Home  >  Article  >  Database  >  How to view the redis installation directory in Linux system

How to view the redis installation directory in Linux system

WBOY
WBOYforward
2023-05-26 11:55:057730browse

1. Check the installation directory under redis

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

 ps -ef|grep redis

Get the process No. xxxx,

Then ls -l /proc/xxxx/cwd.

How to view the redis installation directory in Linux system

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. Fuzzy query uses find

find / -name redis*

where: / refers to the root directory.

What is a Linux system

Linux is a UNIX-like operating system that is free to use and spread freely. It is a POSIX-based multi-user, multi-task, multi-thread and multi-CPU operation. System, using Linux, can run major Unix tool software, applications and network protocols.

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

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