You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AWS EC2 Ubuntu 20.04实例中Apache无法使用公网IP配置Listen指令启动的问题求助

AWS EC2 Ubuntu 20.04实例中Apache无法使用公网IP配置Listen指令启动的问题求助

各位好,我目前在用AWS EC2上的Ubuntu 20.04实例,已经安装了apache2,正在配置它的Listen指令。

可我没办法把EC2实例的公网IP填到Listen IP:port指令里——只要填了公网IP,Apache就启动失败,报错信息如下:

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.

但如果我用私网IP加端口的组合来配置Listen指令,Apache就能正常启动。有没有哪位知道这是怎么回事呀?

备注:内容来源于stack exchange,提问作者Alakananda S

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 14:07:39