作者Leland (报废机器人的传说)
看板FreeBSD
标题Re: [问题]Apache 中毒了吗 ?
时间Tue Oct 5 08:37:02 2004
※ 引述《[email protected] (兰阳过客)》之铭言:
: ※ 引述《[email protected] (虫)》之铭言:
: > port 80被占用了, 可以用sockstat看是哪只程式占用的.
: 我看的结果是
: nobody httpd 532 3 tcp4 210.241.xxx.xxx:80 *:*
: nobody httpd 531 3 tcp4 210.241.xxx.xxx:80 *:*
: nobody httpd 530 3 tcp4 210.241.xxx.xxx:80 *:*
: nobody httpd 529 3 tcp4 210.241.xxx.xxx:80 *:*
: nobody httpd 528 3 tcp4 210.241.xxx.xxx:80 *:*
: root httpd 510 3 tcp4 210.241.xxx.xxx:80 *:*
: 怎麽会 httpd 有用 root 执行,也有用 nobody 执行那麽多个呢 ?
Only root can bind the ports below 1024, therefore the first httpd
must have root privilege. After httpd binds port 80, it sets uid to
nobody and pre-forks several processes to accelerate the handling
of incoming connections.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.30.22