开发者社区> 问答> 正文

apache启动不起来

昨天新申请了一个阿里云服务器,用apt-get install apache2 安装了apache,然后用apachectl configtest测试后没有语法错误,启动后,浏览器输入ip后无法打开默认apache页面,提示无法打开此页面,看了/var/log/apache2/error.log日志,没有报错信息,求帮助。。
log信息:

[Tue Dec 25 16:36:56.161797 2018] [mpm_event:notice] [pid 1252:tid 139935986046848] AH00494: SIGHUP received.  Attempting to restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Tue Dec 25 16:36:56.164263 2018] [mpm_event:notice] [pid 1252:tid 139935986046848] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Tue Dec 25 16:36:56.164284 2018] [core:notice] [pid 1252:tid 139935986046848] AH00094: Command line: '/usr/sbin/apache2'
[Tue Dec 25 16:37:41.387701 2018] [mpm_event:notice] [pid 1252:tid 139935986046848] AH00494: SIGHUP received.  Attempting to restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Tue Dec 25 16:37:41.390345 2018] [mpm_event:notice] [pid 1252:tid 139935986046848] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Tue Dec 25 16:37:41.390363 2018] [core:notice] [pid 1252:tid 139935986046848] AH00094: Command line: '/usr/sbin/apache2'

展开
收起
suoxiaojing 2018-12-25 17:15:42 6135 0
2 条回答
写回答
取消 提交回答
  • 回 1楼dongshan8的帖子
    太感谢了,果然是没有配置安全组规则
    2018-12-26 15:20:25
    赞同 展开评论 打赏
  • 旺旺:nectar2。
    您好,

    在ECS系统里,wget localhost 测试本地web的话,会有结果吗?

    如果本地访问web正常,那很可能是因为系统防火墙或ECS实例的安全组规则没有允许外网访问80端口了: https://help.aliyun.com/document_detail/25471.html

    -------------------------

    回 2楼(suoxiaojing) 的帖子
    您好,很高兴听到您已经解决了问题,且更新了回复。

    欢迎有空时,多来论坛逛逛喔。
    2018-12-25 22:20:56
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像