歡迎您光臨本站 註冊首頁

apache 非root用戶啟動

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

apache 非root用戶啟動

各位大蝦
apache可以用非root用戶啟動嗎?
哪位有解決辦法
謝謝
《解決方案》

apache推薦用非root用戶運行
在配置文件里就有相關配置信息
《解決方案》

我說的是啟動用戶,不是配置文件里的運行daemon的用戶
If you wish httpd to run as a different user or group, you must run
httpd as root initially and it will switch.

#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000;
#  don't use Group #-1 on these systems!
#
User nobody
Group #-1
</IfModule>
</IfModule

[火星人 ] apache 非root用戶啟動已經有221次圍觀

http://coctec.com/docs/service/show-post-30209.html