在linux上安装nginx是不是会创建名为nginx或nobody的用户和用户组?
大家讲道理
大家讲道理 2017-04-17 15:01:55
0
3
738

在linux上安装nginx是不是会创建名为nginx或nobody的用户和用户组?
我好像在哪里看到过一眼,在/etc/passwd 里面没有,但我好像又记得有这回事,记不清了,或者记错了,所以请帮确认一下。

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
大家讲道理

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;
PHPzhong

I can’t be reasonable

大家讲道理

Yum installation uses the nobody user and group by default

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template