开机运行service nginx status时显示
service nginx status
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Tue 2019-02-12 18:12:51
CST; 3min 5s ago
Docs: http://nginx.org/en/docs/
Process: 410 ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf (code=killed, signal=TERM)
Feb 12 18:11:20 ip-172-26-47-9 systemd[1]: Starting nginx - high performance web server...
Feb 12 18:12:51 ip-172-26-47-9 systemd[1]: nginx.service: Start-pre o
peration timed out. Terminating.
Feb 12 18:12:51 ip-172-26-47-9 systemd[1]: Failed to start nginx - hi
gh performance web server.
Feb 12 18:12:51 ip-172-26-47-9 systemd[1]: nginx.service: Unit entere
d failed state.
Feb 12 18:12:51 ip-172-26-47-9 systemd[1]: nginx.service: Failed with
result 'timeout'. 若没有使用./vhost.sh的话会自启成功的,创建站点之后就提示这个了,