最佳答案
我正在建立一个新的服务器。我选择的 http-Server 是 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