Nginx--エラーの概要

序文

録音nginxのエラー

エラー

nginxの:/usr/local/nginx/conf/vhost/dev.api.ecdpower.net.conf:2に未知のディレクティブ "ERVERを" [EMERG]

[root@ecs-75fb-0531684 vhost]# /usr/local/nginx/sbin/nginx -t 
nginx: [emerg] unknown directive "erver" in /usr/local/nginx/conf/vhost/dev.xxx.net.conf:2
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

明らかに、エラー、設定ファイルの2行目が、ピットの父は、最初の行でserver変更のような次の、間違いました

[root@ecs-75fb-0531684 vhost]# /usr/local/nginx/sbin/nginx -t
nginx: [warn] conflicting server name "140.xx.11" on 0.0.0.0:40001, ignored
nginx: [warn] conflicting server name "140.xx.11" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "140.xx.11" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "140.xx.11" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "140.xx.11" on 0.0.0.0:443, ignored
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

おすすめ

転載: www.cnblogs.com/wangyang0210/p/11528826.html