Not able to Restart Apache2 in local azure instance

泪湿孤枕 提交于 2019-12-13 07:24:59

问题


Yesterday i saw my mysql,apache inside azure instance (in terminal) is not running.

so i tried following commands

sudo service mysql start

then mysql started

after i tried apache

sudo service apache2 start ,i tried sudo service apache2 stop and sudo service apache2 start, also i tried sudo service apache2 restart

it showing following message

apache2: Could not reliably determine the server's fully qualified domain name, using 10.102.170.55 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 10.102.170.55 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 * Restarting web server apache2  

becoz of this my instance is not working. pls help me

out put of netstat -antp | grep 80

(No info could be read for "-p": geteuid()=1001 but you should be root.)
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -               
tcp      273      0 10.102.170.55:80        66.249.65.15:38639      ESTABLISHED -               
tcp      166      0 10.102.170.55:80        144.76.155.8:38193      CLOSE_WAIT  -               
tcp        1      0 10.102.170.55:80        27.7.166.147:35458      CLOSE_WAIT  -               
tcp      273      0 10.102.170.55:80        66.249.65.95:35499      ESTABLISHED -               
tcp      273      0 10.102.170.55:80        66.249.65.95:33186      ESTABLISHED -               
tcp      273      0 10.102.170.55:80        66.249.65.87:54108      ESTABLISHED -               
tcp        0      0 10.102.170.55:36292     10.102.170.180:80       TIME_WAIT   -               
tcp      425      0 10.102.170.55:80        98.229.145.37:37758     CLOSE_WAIT  -               
tcp      273      0 10.102.170.55:80        66.249.65.15:51530      ESTABLISHED -               
tcp     1605      0 10.102.170.55:80        117.216.230.182:61774   CLOSE_WAIT  -               
tcp        0      0 10.102.170.55:36291     10.102.170.180:80       TIME_WAIT   -               
tcp      274      0 10.102.170.55:80        66.249.65.95:60162      CLOSE_WAIT  -               
tcp      273      0 10.102.170.55:80        66.249.65.15:59441      ESTABLISHED -               
tcp      274      0 10.102.170.55:80        66.249.65.15:48622      CLOSE_WAIT  -               
tcp      725      0 10.102.170.55:80        27.7.166.147:35457      ESTABLISHED -               
tcp     1605      0 10.102.170.55:80        117.216.230.182:61775   CLOSE_WAIT  -               
tcp      274      0 10.102.170.55:80        66.249.65.87:62910      CLOSE_WAIT  -               
tcp      191      0 10.102.170.55:443       66.249.65.9:36805       CLOSE_WAIT  -               
tcp      273      0 10.102.170.55:80        66.249.65.87:63705      ESTABLISHED -  

来源:https://stackoverflow.com/questions/25101584/not-able-to-restart-apache2-in-local-azure-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!