Home>Article>Operation and Maintenance> How to view the redis installation directory in Linux
Method: 1. Use the which command to view the redis installation directory, the syntax is "which Redis"; 2. Use the "ps -ef|grep redis" command to query the process number of redis, use "ll /proc/process /cwd" command to view the redis installation directory.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to view the redis installation directory in Linux
The example is as follows:
1. Open the terminal command line.
2. Enter the following command to view it.
[root@localhost ~]# which Redis /usr/local/redis //redis安装目录
3. If the which command cannot be found, you can view it through the process.
//查看redis进程 ps -aux | grep redis 或者 ps -ef|grep redis //假设得到redis的进程号123,然后使用以下命令查看安装位置。 ll /proc/123/cwd
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to view the redis installation directory in Linux. For more information, please follow other related articles on the PHP Chinese website!