首页 > 开发 > Apache > 正文

Linux中Apache 更改创建文件用户名和用户组的配置文件

2020-10-12 18:49:59
字体:
来源:转载
供稿:网友

本文章介绍了关于Linux中Apache 更改创建文件用户名和用户组的配置文件。

方法 超级简单

  1. # 
  2. # If you wish httpd to run as a different user or group, you must run 
  3. # httpd as root initially and it will switch.   
  4. # 
  5. # User/Group: The name (or #number) of the user/group to run httpd as. 
  6. # It is usually good practice to create a dedicated user and group for 
  7. # running httpd, as with most system services. 
  8. # 

#在这里修改就行了

User daemon

Group daemon

我们只要把user 和group后面的名字修改成你自己喜欢的就行了,然后重启你的 apache和重新生成哦。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表