我正在设置新服务器。我选择的http服务器是NGINX。我想将域添加audi-freunde-einbeck.de
为虚拟主机。我已经有2个其他域,并且可以正常工作,但是当我尝试添加上述域并启动服务器时,它给了Job failed. See system journal and 'systemctl status' for details.
我以为是因为破折号,所以我尝试了其他各种带或不带连字符的域,但没有运气。同样的错误。是什么原因造成的?我也尝试过重新启动,我真的很茫然。任何帮助将不胜感激。
我玩了一段时间后发现,当我只放入一个域时,它就可以工作。但是当我放入另一个域时,它停止了。这是状态输出:
[root@netzmelone nginx]# systemctl status nginx
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Sun, 16 Dec 2012 11:38:08 +0000; 7s ago
Process: 14239 ExecStop=/usr/sbin/nginx -g pid /run/nginx.pid; -s quit (code=exited, status=1/FAILURE)
Process: 14232 ExecStart=/usr/sbin/nginx -g pid /run/nginx.pid; daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 14242 ExecStartPre=/usr/sbin/nginx -t -q -g pid /run/nginx.pid; daemon on; master_process on; (code=exited, status=1/FAILURE)
Main PID: 14234 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/nginx.service
Dec 16 11:38:08 netzmelone nginx[14242]: nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
Dec 16 11:38:08 netzmelone nginx[14242]: nginx: configuration file /etc/nginx/nginx.conf test failed