Home >Operation and Maintenance >Linux Operation and Maintenance >linux view service installation directory
This article takes viewing the reids installation directory as an example.
If neither the which nor whereis commands can find the installation directory, you can use the following method:
1. First execute the following command to get the process number
ps -ef|grep redis
Get the process number xxxx. (Free video tutorial sharing: linux video tutorial)
2. Then execute the following command to view
ls -l /proc/xxxx/cwd
related article tutorial recommendations: linux tutorial
The above is the detailed content of linux view service installation directory. For more information, please follow other related articles on the PHP Chinese website!