nginx: [emerg] getpwnam(“www”) failed错误
2023-09-14 09:07:52 时间
linux 64系统中安装nginx时如果出现错误:nginx: [emerg] getpwnam(“www”) failed in ........
解决方法1:
在nginx.conf中 把user www www;的注释去掉,在这句前面加#即可
解决方法2:
错误的原因是没有创建www这个用户,应该在服务器系统中添加www用户组和用户www,如下命令:
1
2
|
#/usr/sbin/groupadd -f www #/usr/sbin/useradd -g www www
|
相关文章
- Maven 错误:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project appservice-common: Fatal error compiling: 无效的目标发行版: 1.8
- SQL Server账号密码(sa)登录失败 错误原因:233
- 'not all arguments converted during string formatting'错误告警信息解决办法
- 【JAVA调错】----JBoss发布多个项目时抛出webAppRootKey错误
- 升级mysql_upgrade 提示错误FATAL ERROR: Upgrade failed的原因
- 【解决】virtualbox启动报创建COM对象失败错误
- live555 RTSP推送到Darwin出现404错误的解决
- django 错误分类及解决办法汇总
- WebRTC错误[1]Failed to set remote answer sdp: Called in wrong state: stable
- 如何通过单步调试的方式找到引起 Fiori Launchpad 路由错误的原因试读版
- SAP CRM错误消息 Specify at least one number for the business partner
- 在阿里云 ECS 上试图安装 SAP Commerce Cloud 的 137 错误
- 关于错误Resource interpreted as Script but transferred with MIME type text_html
- 如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded
- WCF HTTP 错误 404.3 - Not Found(由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加 MIME 映射。)
- atitit.故障排除------有时会错误com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset by peer: soc
- SAP 云平台部署应用时遇到的 502 Updating service failed - Bad Gateway 错误消息
- SAP BTP Kyma Runtime dashboard 打开报缺少缺陷的错误消息该如何解决
- 使用SAP WebIDE往Github上推送代码修改时遇到错误消息 Commit request failed Commit failed. Ref must be HEAD and is HEAD
- 本地安装基于Kubernetes的Kyma时遇到的一些错误消息
- 错误: 找不到或无法加载主类 com.qq.demo.AopLogApplication
- 已解决ImportError: DLL 1oad failed while importing, onnxruntime_pybind11_state: 参数错误。
- 什么是伪命题?(经判断是错误的,或无法判断是否正确的命题)
- npm run dev 启动错误:Module build failed: Error: No PostCSS Config found in:xxxxxxxxxxxxxx
- 多种方法解决Failed to load class “org.slf4j.impl.StaticLoggerBinder“.的错误
- 【错误记录】Android Studio 编译报错 ( AAPT: error: failed to read PNG signature: file does not start with PN )
- 解决办法:git错误 error: failed to push some refs to 'https://github.com/...
- 启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!
- Linux PHP编译 make时出现错误libpthread.so.0: error adding symbols: DSO missing from command line的解决方案