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
标签:配置文件,路径,nginx,查找,usr,conf,local From: https://www.cnblogs.com/mengff/p/16794019.html