Re: [問題]Apache 中毒了嗎 ?

看板FreeBSD作者 (報廢機器人的傳說)時間21年前 (2004/10/05 08:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/5 (看更多)
※ 引述《mystify.bbs@bbs.nchu.edu.tw (蘭陽過客)》之銘言: : ※ 引述《pcbug.bbs@pcbug.twbbs.org (蟲)》之銘言: : > 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
文章代碼(AID): #11OUk-N0 (FreeBSD)
文章代碼(AID): #11OUk-N0 (FreeBSD)