|
|

楼主 |
发表于 2006-8-2 16:52:22
|
显示全部楼层
謝謝兩位,我試試reboot然後restart apache2數次就會死掉,中途沒有改過任何config,執行了pkill httpd和killall apache2再start apache是成功的,ps aux也看到有運行,但用瀏覽器、telnet就進不去,也沒有pid...:ask :ask
這個情況在兩台不同的伺服器上也有出現...
- login as: root
- Using keyboard-interactive authentication.
- Password: ******
- Last login: Wed Aug 2 16:57:41 2006 from 192.168.1.6
- test ~ # nano /etc/apache2/
- apache2-builtin-mods magic ssl/
- httpd.conf modules.d/ vhosts.d/
- test ~ # nano /etc/apache2/httpd.conf
- test ~ # nano /var/run/apache2.pid
- test ~ # /etc/init.d/apache2 restart
- * Stopping apache2 ... [ ok ]
- * Starting apache2 ... [ ok ]
- test ~ # cat /var/run/apache2.pid
- 6111
- test ~ # /etc/init.d/apache2 restart
- * Stopping apache2 ... [ ok ]
- * Starting apache2 ... [ ok ]
- test ~ # cat /var/run/apache2.pid
- cat: /var/run/apache2.pid: No such file or directory
- test ~ # /etc/init.d/apache2 restart
- * Stopping apache2 ...
- httpd (no pid file) not running [ ok ]
- * Starting apache2 ... [ !! ]
- test ~ # pkill httpd
- test ~ # /etc/init.d/apache2 restart
- * Starting apache2 ... [ !! ]
- test ~ # killall apache2
- test ~ # pkill http
- test ~ # /etc/init.d/apache2 restart
- * Starting apache2 ... [ ok ]
- test ~ # ps aux | grep apache
- root 6392 0.0 2.6 9144 3396 ? Ss 17:01 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D PHP4 -D SSL -D USERDIR -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -E /var/log/apache2/startuperror.log -k start
- root 6398 0.0 0.5 2632 676 pts/0 R+ 17:01 0:00 grep apache
- test ~ # cat /var/run/apache2.pid
- cat: /var/run/apache2.pid: No such file or directory
- test ~ #
复制代码 |
|