Apache 中毒了嗎 ? - BBS
By Charlotte
at 2004-10-05T08:37
at 2004-10-05T08:37
Table of Contents
※ 引述《[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.
--
: ※ 引述《[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.
--
Tags:
BBS
All Comments
Related Posts
PHP網頁出現Socket extension isn't enable
By Bennie
at 2004-10-04T17:44
at 2004-10-04T17:44
ssh連線,密碼錯誤
By Damian
at 2004-10-03T21:26
at 2004-10-03T21:26
FreeBSD4.10對sata的支援
By Harry
at 2004-10-03T12:13
at 2004-10-03T12:13
vmware + freebsd
By Kyle
at 2004-10-02T22:42
at 2004-10-02T22:42
Re: 請教一下XP防火牆與proftpd設定的問題^^
By Jessica
at 2004-10-01T22:03
at 2004-10-01T22:03