LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 925|回复: 6

[已解決]apache-2.0.58-r2 重啟常常死掉.....

[复制链接]
发表于 2006-8-1 22:37:19 | 显示全部楼层 |阅读模式
我已重新emerge連n次了每次只要改完config file重啟就死了,killall apache2再start也無效,每次都要telinit 6來解決,我一直用開trustix secure linux的,因為更新慢而且支援少,所以上個禮拜才決定裝gentoo來看看,對gentoo認識很有限....麻煩各位大大可以指點一下小弟,謝謝...
USE="apache2 ssl debug mpm-prefork static-modules threads" emerge apache

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2006-8-1 23:43:41 | 显示全部楼层
443 被占用,pkill httpd 后再启动apache试试
回复 支持 反对

使用道具 举报

发表于 2006-8-2 15:00:17 | 显示全部楼层
pkill掉後不知道会不会残留pid file,如果有记得del it
回复 支持 反对

使用道具 举报

发表于 2006-8-2 15:00:51 | 显示全部楼层
pkill掉後不知道会不会残留pid file,如果有记得del it
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-2 16:52:22 | 显示全部楼层
謝謝兩位,我試試reboot然後restart apache2數次就會死掉,中途沒有改過任何config,執行了pkill httpd和killall apache2再start apache是成功的,ps aux也看到有運行,但用瀏覽器、telnet就進不去,也沒有pid...:ask :ask
這個情況在兩台不同的伺服器上也有出現...
  1. login as: root
  2. Using keyboard-interactive authentication.
  3. Password: ******
  4. Last login: Wed Aug  2 16:57:41 2006 from 192.168.1.6
  5. test ~ # nano /etc/apache2/
  6. apache2-builtin-mods  magic                 ssl/
  7. httpd.conf            modules.d/            vhosts.d/
  8. test ~ # nano /etc/apache2/httpd.conf
  9. test ~ # nano /var/run/apache2.pid
  10. test ~ # /etc/init.d/apache2 restart
  11. * Stopping apache2 ...                                                              [ ok ]
  12. * Starting apache2 ...                                                              [ ok ]
  13. test ~ # cat /var/run/apache2.pid
  14. 6111
  15. test ~ # /etc/init.d/apache2 restart
  16. * Stopping apache2 ...                                                              [ ok ]
  17. * Starting apache2 ...                                                              [ ok ]
  18. test ~ # cat /var/run/apache2.pid
  19. cat: /var/run/apache2.pid: No such file or directory
  20. test ~ # /etc/init.d/apache2 restart
  21. * Stopping apache2 ...
  22. httpd (no pid file) not running                                                      [ ok ]
  23. * Starting apache2 ...                                                              [ !! ]
  24. test ~ # pkill httpd
  25. test ~ # /etc/init.d/apache2 restart
  26. * Starting apache2 ...                                                              [ !! ]
  27. test ~ # killall apache2
  28. test ~ # pkill http
  29. test ~ # /etc/init.d/apache2 restart
  30. * Starting apache2 ...                                                              [ ok ]
  31. test ~ # ps aux | grep apache
  32. 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
  33. root      6398  0.0  0.5   2632   676 pts/0    R+   17:01   0:00 grep apache
  34. test ~ # cat /var/run/apache2.pid
  35. cat: /var/run/apache2.pid: No such file or directory
  36. test ~ #
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-2 18:03:56 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2006-8-2 21:41:04 | 显示全部楼层
entropy_avail
是什么来的?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表