查看nginx启动路径
1. 问题
nginx安装之后不知道安装路径在哪里,通过 ps
命令查看也没有显示
[root@aliyun ~]
nobody 4567 7488 0 Apr13 ? 00:00:00 nginx: worker process
root 7488 1 0 2024 ? 00:00:00 nginx: master process ./nginx
2. 解决
使用上面的 ps
命令可以查看当前运行的 nginx
的运行进程号,然后使用 lsof
命令进行查看
lsof -p 7488
