找回密码
 骑士注册

QQ登录

微博登录

❏ 站外平台:

发表评论

回复 灰度龙 的评论:
配置nginx的default.conf文件完成后,重启出现如下错误:nginx.service - nginx - high performance web server   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)   Active: failed (Result: exit-code) since 日 2015-06-14 21:30:10 CST; 45s ago     Docs: http://nginx.org/en/docs/  Process: 4954 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)  Process: 6469 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE) Main PID: 1695 (code=exited, status=0/SUCCESS)6月 14 21:30:10 localhost.localdomain systemd : Starting nginx - high performance web server...6月 14 21:30:10 localhost.localdomain nginx : nginx:   invalid number of arguments in "try_files" directive in /e...onf:346月 14 21:30:10 localhost.localdomain nginx : nginx: configuration file /etc/nginx/nginx.conf test failed6月 14 21:30:10 localhost.localdomain systemd : nginx.service: control process exited, code=exited status=16月 14 21:30:10 localhost.localdomain systemd : Failed to start nginx - high performance web server.6月 14 21:30:10 localhost.localdomain systemd : Unit nginx.service entered failed state.Hint: Some lines were ellipsized, use -l to show in full.当我去除不是很理解的:try_files $uri =404;这行后,重启正常。请问这行是怎么意思呢?

返回顶部

分享到微信

打开微信,点击顶部的“╋”,
使用“扫一扫”将网页分享至微信。