私はApacheを実行するt2.medium ec2インスタンスを持っています。今日の午前中はすべてうまくいっていたが、突然Apacheの動作が停止し、再起動しなかった。EC2でApacheが起動しない
[[email protected] ~]$ sudo service httpd start
Starting httpd: [FAILED]
[[email protected] ~]$ service httpd start
Starting httpd: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
[FAILED]
次に、ポート80が既にリッスンしている場所を確認しました。
[[email protected] ~]$ sudo netstat -tupln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2204/rpcbind
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2392/sshd
tcp 0 0 0.0.0.0:38935 0.0.0.0:* LISTEN 2225/rpc.statd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2714/sendmail
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2664/mysqld
tcp 0 0 :::111 :::* LISTEN 2204/rpcbind
tcp 0 0 :::22 :::* LISTEN 2392/sshd
tcp 0 0 :::46232 :::* LISTEN 2225/rpc.statd
udp 0 0 0.0.0.0:68 0.0.0.0:* 2090/dhclient
udp 0 0 0.0.0.0:111 0.0.0.0:* 2204/rpcbind
udp 0 0 172.31.3.46:123 0.0.0.0:* 2416/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 2416/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 2416/ntpd
udp 0 0 0.0.0.0:51407 0.0.0.0:* 2225/rpc.statd
udp 0 0 0.0.0.0:683 0.0.0.0:* 2204/rpcbind
udp 0 0 127.0.0.1:708 0.0.0.0:* 2225/rpc.statd
udp 0 0 :::111 :::* 2204/rpcbind
udp 0 0 :::683 :::* 2204/rpcbind
udp 0 0 :::40147 :::* 2225/rpc.statd
しかし、これにポート80の兆候はありません。
今日はライブに出る必要がありますが、これに大きな問題がありますか?誰かが何をすべきかお勧めしますか?
まず、StackOverflowの質問ではありません。第二に、 'sudo'を使用します。最後に、これがあなたに助けを求める必要がある場合 - あなたは今日生きる準備ができていません – Felix
私はsudoの有無にかかわらず試しました。 –
(a)httpdの再起動中にエラーログをチェックする( '/ var/log/httpd/error *'); (b) 'apache2ctl configtest'を実行してください。 (c)何も動作しない場合は、このインスタンスをシャットダウンして新しいインスタンスを起動することができます。 (d)@Felixに同意します。もしあなたがこれについて助けを求める必要があれば、今日のライブに行くという悪い考えです! –