nginx: [warn] the “user“ directive makes sense only if the master process runs with super-user
nginx: [warn] the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/etc/nginx/nginx.conf:1
查看版本
liangyuji@liangyujideMacBook-Pro ~ % nginx -vnginx version: nginx/1.19.4
启动服务
liangyuji@liangyujideMacBook-Pro ~ % brew services start nginx
Service `nginx` already started, use `brew services restart nginx` to restart.
nginx服务已开启
重启服务,出现了错误
liangyuji@liangyujideMacBook-Pro /etc % nginx -s reloadnginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/etc/nginx/nginx.conf:1
原因:/usr/local/etc/nginx/nginx.conf:1 配置第一行有问题,这时注释掉第一行
liangyuji@liangyujideMacBook-Pro nginx % vim nginx.conf
重启服务看看
liangyuji@liangyujideMacBook-Pro nginx % sudo nginx -s reload
Password:
nginx: [alert] kill(888, 1) failed (3: No such process)
出现问题:nginx: [alert] kill(888, 1) failed (3: No such process)
原因:启动nginx服务未启动成功
1.先关闭再启动nginx服务
liangyuji@liangyujideMacBook-Pro nginx % sudo nginx -s stopPassword:liangyuji@liangyujideMacBook-Pro nginx % nginx
2.或是 重新加载nginx配置
解决:/usr/local/etc/nginx/nginx.conf 配置文件所在的位置
liangyuji@liangyujideMacBook-Pro nginx % sudo nginx -c /usr/local/etc/nginx/nginx.confPassword:liangyuji@liangyujideMacBook-Pro nginx % sudo nginx -s reloadliangyuji@liangyujideMacBook-Pro nginx %
nginx: [warn] the “user“ directive makes sense only if the master process runs with super-user相关推荐
- nginx: [warn] the user directive makes sense only if the master process runs with super-user privi
普通用户在restart和reload nginx时,会报错: nginx: [warn] the "user" directive makes sense only if the ...
- nginx: [warn] the user directive makes sense only if the master process runs with super-user
普通用户在restart和reload nginx时,会报错: nginx: [warn] the "user" directive makes sense only if the ...
- [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 r ...
- 解决启动nginx报错问题:[warn] 4450#0: the “user“ directive makes sense only if the master process runs......
文章目录 一.解决启动nginx报[warn] 5052#0: the "user" directive makes sense only if the master proces ...
- nginx: [warn] the “ssl“ directive is deprecated, use the “listen ... ssl“ directive instead in
前言 CentOS Linux release 8.2.2004 (Core) phpstdy X1.26 nginx1.15 错误内容 nginx: [warn] the "ssl&quo ...
- [nginx报错]---unknown directive chunkin in /XXXXX/XXXXXX:XX的几种解决方式
问题: nginx报错:unknown directive "chunkin" in /XXXXX/XXXXXX:XX 解决: 当出现unknown directive,一般有个反 ...
- nginx: [warn] conflicting server name localhost on 0.0.0.0:80, ignored
修改nginx配置参数后,使用nginx -t检查配置. 提示successfull后就可以使用 nginx -s reload来重新加载配置 我配置的过程中遇到这样的问题,就是绑定了主机名后,重新加 ...
- nginx支持text html,BT面板重启Nginx提示“nginx: [warn] duplicate MIME type “text/html””解决办法...
很多时候我们在进行了一系列站点优化配置后,经常会出现一些未知的问题.比如虾皮路之前就遇到过了,在BT宝塔面板里面重启Nginx或者重载Nginx的时候,提示"nginx: [warn] du ...
- nginx: [warn] conflicting server name “www.yqq.org“ on 0.0.0.0:80, ignored
实现nginx重定向,出现下述警告: [root@lnmp1 conf]# nginx -s reload nginx: [warn] conflicting server name "ww ...
最新文章
- 深入理解CSS变形transform(3d)
- 【EventBus】事件通信框架 ( 订阅方法注册 | 检查订阅方法缓存 | 反射获取订阅类中的订阅方法 )
- Android重写FragmentTabHost来实现状态保存
- Linux常用命令大全--有关磁盘空间的命令
- C++: 21---引用和指针
- java框架mybatis配置文件总结一
- 8种图数据库对 NULL 属性值支持情况
- 被低估的“败家爷们”
- 读书笔记2014第10本:《设计心理学》
- 不装了,摊牌了,月薪10571元的我是新生代农民工中的一员
- sublime中html自动对齐,sublime text怎么对齐HTML代码
- mapbox 修改初始位置_《绝地求生》实用的键位改键推荐 | 哪些不合理的初始键位需要更改?...
- java ognl表达式_OGNL表达式介绍
- pg数据库中postgis的使用
- python调用def函数的格式_Python 函数def 模块调用函数方法及全局变量
- helper java_请教问题,helper类在java中的作用。
- php trum,口碑曝光TrumoAurora评测如何?怎么样呢?使用报告曝光评测
- 文件在服务器中存储,如何发送音频文件在服务器中存储
- 聊聊目标检测中的多尺度检测(Multi-Scale),从YOLO,ssd到FPN,SNIPER,SSD填坑贴和极大极小目标识别
- 文件上传控件-如何上传文件-大文件断点续传
热门文章
- Android 修改字体
- 农历八月初一到潭柘寺
- android网速测试app,Android网速测试App(二)
- (转)iPhone 字体显示效果大全
- Qt 之QWebEngineVie框架简介及加载网页方法
- C/C++ 数组作为参数传递 指针 引用——VS——普通值传递、指针传递、引用传递
- (idea)the file size(2.97M) exceeds configured limit(2.56M).Code insight features are not available问题
- 【noteExpress】NoteExpress在word上不显示加载项解决办法
- Suflo-Cyanine5.5 Tyramide,Suflo-Cyanine3 TSA,磺酸基-花青素Cy5 酪酰胺
- excel中的筛选功能