杨__羊羊
当你执行 nginx -t 得时候,nginx会去测试你得配置文件得语法,并告诉你配置文件是否写得正确,同时也告诉了你配置文件得路径:# nginx -tnginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is oknginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful首先执行命令找到nginx路径ps aux | grep nginx如nginx路径为/usr/local/nginx/sbin/nginx然后执行以下命令/usr/local/nginx/sbin/nginx -V默认放在 安装目录下 conf/nginx.conf