首页 > 系统相关 >【linux】nginx: [emerg] getpwnam("nginx") failed in /usr/local/nginx/conf/nginx.conf:2

【linux】nginx: [emerg] getpwnam("nginx") failed in /usr/local/nginx/conf/nginx.conf:2

时间:2023-01-09 11:48:13浏览次数:47  
标签:failed nginx emerg usr conf getpwnam

启动nginx报错:

        nginx: [emerg] getpwnam("nginx") failed in /usr/local/nginx/conf/nginx.conf:2

是因为配制文件中使用的启动账户在系统中并没有找到

解决办法:

useradd name 

标签:failed,nginx,emerg,usr,conf,getpwnam
From: https://www.cnblogs.com/opensmarty/p/17036534.html

相关文章

  • vue3+vite2 vite.config.js 配置
    vite配置官方文档:https://cn.vitejs.dev/config/shared-options.html#base 开发服务器选项-serverserver:{//host:指定服务器应该监听哪个ip地址。如果设置为......
  • Nginx常见的错误及解决方法
    1、Nginx 常见启动错误 有的时候初次安装nginx的时候会报这样的错误 sbin/nginx -c conf/nginx.conf 报错内容:sbin/nginx: error while loading shared libr......
  • 解决错误:MISCONF Redis is configured to save RDB snapshots, but is currently not
    早上一上班发现系统登录不上去了,查看后台日志:Caused by: io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshot......
  • Nginx的alias指令引发的漏洞
    前言一开始看到alias都不知道是什么,我们先来学习一下Nginx以其高性能著称,常用作前端反向代理服务器。同时nginx也是一个高性能的静态文件服务器。通常都会把应用的静态文......
  • nginx: [emerg] "auth_basic" directive is duplicate
    错误信息nginx:[emerg]"auth_basic"directiveisduplicateinphpmyadmin.conf:14nginx:configurationfilenginx.conftestfailed根原因phpmyadmin开启了ss......
  • nginx 代理转发 传递真实 ip 地址
    一、实际问题在实际的项目开发和部署中,客户端并不是直接访问到服务器的服务的,而是通过反向代理的转发,发送到服务器端实现服务访问。比如通过反向代理实现路由/负载均衡等策......
  • Nginx代理配置只允许指定IP访问
    在使用Nginx时,有时只想要指定的IP进行访问,其余IP都需要禁止,今天就来说一下,Nginx如何配置允许、禁止指定Ip访问location/{indexindex.jsp;proxy_next_upstreamht......
  • Kubernetes(k8s) kubectl config常用命令
    kubectl在$HOME/.kube目录中查找一个名为config的配置文件。可以通过设置KUBECONFIG环境变量或设置--kubeconfig参数来指定其它kubeconfig文件。本文主要介绍K......
  • linux上ifconfig命令详解
    1.ifconfig简介2.用法3.参数说明3.1.选项介绍3.2.硬件类型3.3.地址族列表3.3.1.说明4.示例4.1.示例1:如何重启网卡?4.2.示例2:配置网卡en......
  • keepalived+nginx二进制安装
    keepalived二进制安装1、下载keepalived安装包:keepalived下载地址:https://www.keepalived.org/download.htmlwgethttp://www.keepalived.org/software/keepalived-2.0......