nginx应用

 

windows:

启动:start nginx

退出:nginx -s quit

检查配置是否正确:nginx -t -c ./conf/nginx.conf

查看是否在运行:tasklist /fi "imagename eq nginx.exe"

 

centos7:

// 服务状态
# systemctl status nginx
// 服务启动
# systemctl start nginx
// 服务停止
# systemctl stop nginx
// 服务重启
# systemctl restart nginx

https配置参考:https://www.cnblogs.com/tianhei/p/7726505.html

多域名配置:https://www.jb51.net/article/117697.htm

问题一:Nginx 出现 403 Forbidden解决方案

解决方案:vi /etc/nginx/nginx.conf,修改文件第一行:user nginx; 改为 user root; ---- 给nginx用户root权限

 

安装配置参考:

https://blog.csdn.net/qq_38384568/article/details/80760208
https://www.cnblogs.com/lamp01/p/10101794.html
https://www.jb51.net/article/107966.htm
posted @ 2018-12-27 13:38  长久悠悠  阅读(168)  评论(0编辑  收藏  举报