linux查看服务安装目录server dir 假如我们想查看 nginx的安装目录 1、使用whereis nginx 2、通过进程号查找 ps -aux | grep nginx 假如得到了进程号 50635 , 然后用命令 ll /proc/50635/cwd