RH網頁伺服器連不上(已檢查apache及iptable) - Linux

Carol avatar
By Carol
at 2011-04-21T11:38

Table of Contents

我在 redhat linux 上裝了 apache,但是卻無法由瀏覽器連上主機
我做了下面的檢查但找不出原因
1. 檢查 apache status:
$sudo /etc/init.d/httpd status
主機回應:
httpd (pid 30588) is running...

2. 檢查 firewall:
$sudo /etc/init.d/iptables status
主機回應:
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
state NEW

Chain FORWARD (policy ACCEPT)
num target prot opt source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

看起來似乎一切正常?不知道各位有什麼建議?

--
Tags: Linux

All Comments

Rae avatar
By Rae
at 2011-04-23T20:03
netstat | grep 80 看看有沒有東西
Jessica avatar
By Jessica
at 2011-04-26T06:45
主機 80 port 的回應是什麼?
Thomas avatar
By Thomas
at 2011-04-26T08:34
只有:::80那代表只有IPv6有開到port
Genevieve avatar
By Genevieve
at 2011-04-27T11:45
關掉 selinux 試試看
Tristan Cohan avatar
By Tristan Cohan
at 2011-04-29T08:38
先用telnet server_IP 80看看能不能連上吧

在linux下如何找出C程式中loop較多的區段

David avatar
By David
at 2011-04-20T19:07
※ 引述《BoxsterX ()》之銘言: : 由於要做平行程式 : 要先找出重複較多的區段再下手處理 : 請問有甚麼方法能達到這個目標 平行程式的重點在於找出執行時間(CPU time)最久的地方最佳化 不一定是重複最多的次的區段 至於要找出這些地方的工具叫做 profiler 我自己比較常用的 I ...

在linux下如何找出C程式中loop較多的區段

Brianna avatar
By Brianna
at 2011-04-20T18:44
由於要做平行程式 要先找出重複較多的區段再下手處理 請問有甚麼方法能達到這個目標 - ...

pcmanx-gtk2 1.0 released

Frederica avatar
By Frederica
at 2011-04-20T14:55
※ 引述《fourdollars (四元)》之銘言: : http://code.google.com/p/pcmanx-gtk2/ : Version 1.0 - April 2011 : * Feature: Support IPv6 connection. : * Feature: Change def ...

執行shell script過程中禁止/忽略鍵盤輸入

Emily avatar
By Emily
at 2011-04-20T14:22
我想請教各位一個script執行上的問題 為了讓大家簡單明瞭我的問題 我用一個script的例子來說明: #!/bin/bash read test sleep 3 echo $test 上面這段code 若是執行到sleep階段時 我在鍵盤上隨意敲幾個字母並且按下enter 例如我敲了:abc ...

pcmanx-gtk2 1.0 released

Damian avatar
By Damian
at 2011-04-20T11:21
※ 引述《sb107912 (最愛高橋愛 andgt;///andlt;)》之銘言: : 我參考PCMan X (MLS) v0.3.9 : POSIX大大留下的patch檔 其實那個最早是我 patch 的... :p : http://www.mediafire.com/?mou2dpw1947c6 ...