Linux系统下离线安装Nginx

添加链接描述
check nginx配置文件错误:[emerg]: getpwnam(“nginx”) failed
[root@server include]# /application/nginx/sbin/nginx -t -c /applications/nginx/nginx/nginx.conf
nginx: [emerg] getpwnam(“nginx”) failed in /applications/nginx/nginx/nginx.conf:2
nginx: configuration file /application/nginx/nginx/nginx.conf test failed

[root@server include]# useradd -s /sbin/nologin -M nginx
[root@server include]# id nginx

[root@server include]# /application/nginx/sbin/nginx -t -c /application/nginx/nginx/nginx.conf
nginx: [emerg] getgrnam(“wwwgroup”) failed in /application/nginx/nginx/nginx.conf:1
nginx: configuration file /application/nginx/nginx/nginx.conf test failed
[root@chechongserver include]# groupadd wwwgroup

你可能感兴趣的:(nginx)