0

LAMP がインストールされた VPS があります。私はこのリンクをたどった:

https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-6

Web ブラウザに自分の IP を入力しようとしましたが、何も表示されません。

これが私のipTablesです

[root@localhost ~]# iptables -L
Chain INPUT (policy ACCEPT)
target      prot opt source     destination
ACCEPT      all -- anywhere     anywhere    state RELATED,ESTABLISHED
ACCEPT      icmp -- anywhere    anywhere
ACCEPT      all -- anywhere     anywhere
ACCEPT      tcp -- anywhere     anywhere    state NEW tcp dpt:ssh
REJECT      all -- anywhere     anywhere    reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target      prot opt source     desitnation
REJECT      all -- anywhere     anywhere    reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target      prot opt source     desination

ここに ps aux があります。grep Apache:

[root@localhost ~]# ps aux | grep apache
apache  12500   0.0 0.1 232732  4724 ?  S   21:44   0:00    /usr/sbin/httpd
apache  12501   0.0 0.1 232732  4724 ?  S   21:44   0:00    /usr/sbin/httpd
apache  12502   0.0 0.1 232732  4724 ?  S   21:44   0:00    /usr/sbin/httpd
apache  12503   0.0 0.1 232732  4724 ?  S   21:44   0:00    /usr/sbin/httpd
apache  12504   0.0 0.1 232732  4724 ?  S   21:44   0:00    /usr/sbin/httpd
apache  12505   0.0 0.1 232732  4724 ?  S   21:44   0:00    /usr/sbin/httpd
apache  12506   0.0 0.1 232732  4724 ?  S   21:44   0:00    /usr/sbin/httpd
apache  12507   0.0 0.1 232732  4724 ?  S   21:44   0:00    /usr/sbin/httpd
root    12508   0.0 0.0 103236  824 pts/0   S   22:55   0:00    grep apache
4

1 に答える 1

0

前回の質問で述べたように、SSH 経由で IP にアクセスできます。HTTP 経由で IP にアクセスできない場合は、Web サーバーを起動していないか、ファイアウォールを使用しています。

iptables を使用してファイアウォール ルールを一覧表示する

iptables -L

Web サーバーが実行されていることを確認します。

ps aux | grep apache

またはインストールlynxして

lynx localhost
于 2013-09-25T11:37:57.703 に答える