[emerg]: getpwnam(“nginx”) failed

在启动nginx之前还需要添加nginx用户组,否则会提示

[emerg]: getpwnam(“nginx”) failed

添加用户组

sudo adduser --system --no-create-home --disabled-password --group nginx