查找nginx路径

1. 查找nginx
which nginx

输出

/usr/local/bin/nginx

2. 查找nginx配置文件

/usr/local/bin/nginx -t  #检测配置是否正确,同时可以输出配置文件路径
输出:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful

 

posted @ 2022-10-15 13:40  全玉  阅读(823)  评论(0编辑  收藏  举报