错误提示:Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
运行 systemctl status nginx.service 提示如下:
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 07 16:17:40 ip-172-31-28-177 nginx[10083]: nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64
Nov 07 16:17:40 ip-172-31-28-177 nginx[10083]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: nginx.service: Control process exited, code=exited status=1
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: nginx.service: Unit entered failed state.
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: nginx.service: Failed with result 'exit-code'.
网上搜了很久,说是少了一个 ";",但我检查了两次,没有少分号。请高手指教是什么问题?谢谢
运行 systemctl status nginx.service 提示如下:
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 07 16:17:40 ip-172-31-28-177 nginx[10083]: nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64
Nov 07 16:17:40 ip-172-31-28-177 nginx[10083]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: nginx.service: Control process exited, code=exited status=1
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: nginx.service: Unit entered failed state.
Nov 07 16:17:40 ip-172-31-28-177 systemd[1]: nginx.service: Failed with result 'exit-code'.
网上搜了很久,说是少了一个 ";",但我检查了两次,没有少分号。请高手指教是什么问题?谢谢
