[Emerg]: Getpwnam(“nginx”) Failed

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

1
[emerg]: getpwnam(“nginx”) failed

添加用户组

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