一、查看 nginx 安装目录
ps -ef | grep nginx
二、查看配置文件 nginx.conf 路径
解决权限:chmod u+x *
nginx:/usr/local/nginx 重启 sbin ./nginx -t
[root@centos ~]# ps -ef|grep nginx
root 1051 1 0 10月22 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
root 1052 1051 0 10月22 ? 00:00:12 nginx: worker process
root 23621 27305 0 11:55 pts/2 00:00:00 grep --color=auto nginx