root@cloudshell:~$ service apache2 start
Starting Apache httpd web server: apache2AH00558: apache2: Could not
reliably determine the server's fully qualified domain name, using
172.17.0.3. Set the 'ServerName' directive globally to suppress
this message
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
access.log
、error.log
およびはother_vhosts_access.log
空です。
ベストアンサー1
ディレクティブを挿入すると
ServerName {your server's fully qualified domain name}
/etc/apache2のhttpd.confまたはapache2.confからApacheを再起動すると、警告メッセージが消えます。
私も次のメッセージを見ました。
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
他のWebサーバーが稼働していますか?もう1つの理由は、ポート80を使用してこのApacheインスタンスを不幸にすることです。