
nginx
文章平均质量分 72
Ccoolor
这个作者很懒,什么都没留下…
展开
-
[warn] the “user“ directive makes sense only if the master process runs with super-user privileges
原文链接linux中启动nginx报错:[warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/webserver/nginx/conf/nginx.conf:2解决方法:1.使用root用户登录linux2.进入…/nginx/sbin目录下3.执行代码chown root nginxchmod u+s原创 2020-12-21 10:55:15 · 5935 阅读 · 0 评论 -
nginx处理前端跨域
最近往服务器上布项目的时候出现了跨域问题,从网上查找了一圈资料,最终通过nginx解决了跨域问题。主要是配置nginx的nginx.conf文件其中listen是监听的端口号listen 8012;root是打包好的前端项目的位置location /{ root /home/dwaq/gzdwsjk; index index.html index.htm; }代理的路径,当接口中含有api时,会将请求发送至代理的接口 location原创 2020-12-04 16:15:33 · 220 阅读 · 0 评论