nginx 如何檢測配置文件的正確性?
1 回答

蕪湖不蕪
TA貢獻1796條經驗 獲得超7個贊
首先執(zhí)行命令找到nginx路徑,ps aux | grep nginx;如nginx路徑為;/usr/local/nginx/sbin/nginx;
contos 下面查看 nginx配置是否OK,
/usr/local/nginx/sbin/nginx -t;
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok;nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful;
windows 下面查看 在D:\phpStudy\nginx 在這個目錄使用Shift + S鼠標右鍵出現下面頁面就打開了cmd窗口 必須要沒有選中文件才可以出現。
- 1 回答
- 0 關注
- 733 瀏覽
添加回答
舉報
0/150
提交
取消