Home > front end >  Nginx configuration grammar test to fail
Nginx configuration grammar test to fail

Time:12-14

Bosses in nginx -t return getpwnam (" nginx ") failed in/etc/nginx/nginx. Conf: 2 can you tell me how to solve, give a command code, thank you

CodePudding user response:

Look at your nginx. Conf file start user name (assuming that nginx), to add the user
Usetadd -s/sbin/nologin nginx

CodePudding user response:

Useradd -s/sbin/nologin nginx
Copy and paste didn't watch carefully,

CodePudding user response:

Bosses reply not sent pictures here, it's really with this command you usetadd -s/sbin/nologin nginx to perform, like the host returns to find usetadd this command,

CodePudding user response:

Thank you, can the [face] monkey2:002 PNG [/face]
  • Related