nginx 配置语法正常:
nginx: the configuration file /etc/nginx/conf/nginx.conf syntax is ok
判断 配置文件没问题;
[root@xfg-dev1 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;