httpd以apache.apache运行,但是日志归root.root所有?


8

ps显示我的httpd进程为

apache   29561 15186  0 15:30 ?        00:00:00 /usr/sbin/httpd

我正在运行Centos 5.3

/ var / log / httpd中的所有日志文件均由root拥有。

怎么来的?

Answers:


12

httpd孩子跑例如Apache,但过程产卵它们运行作为根(如有必要结合特权端口例如。端口80)。仔细观察,您将看到httpd以root身份运行。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.