查找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