syntax is ok nginx: configuration file /etc/nginx/conf/nginx.conf test failed
阿新 • • 發佈:2021-02-02
技術標籤:配置型別
nginx 配置語法正常:
nginx: the configuration file /etc/nginx/conf/nginx.conf syntax is ok
判斷 配置檔案沒問題;
[[email protected] lua-cjson-2.1.0]# nginx -t
nginx: the configuration file /etc/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/conf/nginx.conf test failed
檢視 配置中 匯入(include)的其它配置:
include /etc/nginx/conf.d/*.conf;
是否有使用到nginx擴充套件的元件,例如 lua,cjson;
本人使用Centos8.1 安裝了lua5.3 而nginx配置檔案中使用lua5.1的,解決方法 安裝lua5.1 和對應的 cjson;