java - After I edited my nginx's nginx.conf,and execute test command, an command not found error appeared -
today executed /use/local/nginx/conf/nginx.conf -t nginx
, showed following error:
[root@ddqcsapp ~]# /usr/local/nginx/conf/nginx.conf -t /usr/local/nginx/conf/nginx.conf: line 3: worker_processes: command not found /usr/local/nginx/conf/nginx.conf: line 9: pid: command not found /usr/local/nginx/conf/nginx.conf: line 12: events: command not found /usr/local/nginx/conf/nginx.conf: line 13: worker_connections: command not found /usr/local/nginx/conf/nginx.conf: line 14: syntax error near unexpected token }' /usr/local/nginx/conf/nginx.conf: line 14: }'
the last time remembered can executed success. have gone wrong?
this not java related. trying use nginx config-checking option, using wrong.
you should call nginx -t
(the nginx command) test config, not trying run actual config file. :)
Comments
Post a Comment