The specific error is as follows:
![[emerg] getpwnam("nginx") failed](https://blog.p2hp.com/wp-content/uploads/2022/09/4a7cc0bba9dee6b98229b8c5199c3cd6.jpg)
Reason: The user group and user are specified when Nginx is compiled, but there is no problem caused by this user in the system
Solution: Create the corresponding user group and user name, or recompile Nginx without specifying the user group and user name
…
The post Nginx startup error [emerg] getpwnam(“nginx”) failed first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/9581
This site is for inclusion only, and the copyright belongs to the original author.