怎麼知道apache正常啟動 - BBS
By Skylar DavisLinda
at 2006-12-10T18:27
at 2006-12-10T18:27
Table of Contents
※ 引述《chiouss (Alive a Life)》之銘言:
: ※ 引述《slinbody (不敗地球人)》之銘言:
: : 我到/var/run/
: : 找不到httpd.pid這檔案
: : 這算正常執行嗎??
: 應該沒有跑起來,可以檢查看看 /var/log/httpd-error.log 或是 httpd-access.log
: 看看問題出在哪邊...
httpd-access.log內容是空的
httpd-error.log是 hostname nor servname provided,or not Configuration Failed
我的機器ip是192.168.0.1(內部網路卡的ip)
/usr/local/etc/apache2/httpd.conf中的內容
ServerName localhost
192.168.0.1:80
192.168.0.1
這三個設定不論哪一個
在httpd-error.log內容都一樣
(hostname nor servname provided,or not Configuration Faile)
怪了??
: ---
: 其他測試方法可以試試看 telnet localhost 80 看看有沒有辦法連上
: 或是 ps -ax | grep 'httpd'
telnet localhost 80
Trying ::1
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
ps -ax | grep 'httpd'
80958 v0 R+ 0:00:01 grep httpd
麻煩了 謝謝回答
--
: ※ 引述《slinbody (不敗地球人)》之銘言:
: : 我到/var/run/
: : 找不到httpd.pid這檔案
: : 這算正常執行嗎??
: 應該沒有跑起來,可以檢查看看 /var/log/httpd-error.log 或是 httpd-access.log
: 看看問題出在哪邊...
httpd-access.log內容是空的
httpd-error.log是 hostname nor servname provided,or not Configuration Failed
我的機器ip是192.168.0.1(內部網路卡的ip)
/usr/local/etc/apache2/httpd.conf中的內容
ServerName localhost
192.168.0.1:80
192.168.0.1
這三個設定不論哪一個
在httpd-error.log內容都一樣
(hostname nor servname provided,or not Configuration Faile)
怪了??
: ---
: 其他測試方法可以試試看 telnet localhost 80 看看有沒有辦法連上
: 或是 ps -ax | grep 'httpd'
telnet localhost 80
Trying ::1
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
ps -ax | grep 'httpd'
80958 v0 R+ 0:00:01 grep httpd
麻煩了 謝謝回答
--
Tags:
BBS
All Comments
Related Posts
請問一下package的維護
By Andrew
at 2006-12-10T09:56
at 2006-12-10T09:56
請問一下package的維護
By Frederica
at 2006-12-09T23:10
at 2006-12-09T23:10
請問一下package的維護
By Adele
at 2006-12-09T22:00
at 2006-12-09T22:00
利用 .htaccess 來達到 ForceSSL
By Ursula
at 2006-12-08T22:00
at 2006-12-08T22:00
Tomcat5.5
By Suhail Hany
at 2006-12-07T18:37
at 2006-12-07T18:37