在linux上安装nginx是不是会创建名为nginx或nobody的用户和用户组?我好像在哪里看到过一眼,在/etc/passwd 里面没有,但我好像又记得有这回事,记不清了,或者记错了,所以请帮确认一下。
光阴似箭催人老,日月如移越少年。
You should manually create the nginx owner and nginx owner group.
groupadd nginx useradd nginx -g nginx -s /sbin/nologin -M
When compiling, specify the execution user master and user group
--with-user=nginx --with-group=nginx
After nginx is compiled and installed, modify nginx.conf
user nginx nginx;
I can’t be reasonable
Yum installation uses the nobody user and group by default
You should manually create the nginx owner and nginx owner group.
When compiling, specify the execution user master and user group
After nginx is compiled and installed, modify nginx.conf
I can’t be reasonable
Yum installation uses the nobody user and group by default