【问题标题】:apache not working httpd lightsail instance lamp bitnamiapache 不工作 httpd lightsail 实例灯 bitnami
【发布时间】:2020-03-21 22:39:38
【问题描述】:

当我在 lightail 中重新启动我的实例时,我得到“apache server not running”。当我运行命令时

sudo /opt/bitnami/ctlscript.sh restart

我收到此错误:

Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : apache not running
/opt/bitnami/php/scripts/ctl.sh : php-fpm stopped
/opt/bitnami/mysql/scripts/ctl.sh : mysql stopped
/opt/bitnami/mysql/scripts/ctl.sh : mysql  started at port 3306
/opt/bitnami/php/scripts/ctl.sh : php-fpm started
Syntax OK
(98)Address already in use: AH00073: make_sock: unable to listen for connections on address
[::]:443
(98)Address already in use: AH00073: make_sock: unable to listen for connections on address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
/opt/bitnami/apache2/scripts/ctl.sh : httpd could not be started

我被屏蔽了,我不知道该怎么办;所有网站都已关闭,当我想重定向到我的所有网站时,我收到错误 ERR_SSL_PROTOCOL_ERROR

【问题讨论】:

  • Apache 没有启动,这就是为什么会出现 ssl 错误或根本无法连接的原因。为什么 Apache 没有启动?它在错误消息中说:它无法侦听端口 443 (https) 上的连接。这可能意味着它没有权限(不太可能因为您使用了sudo)或者其他东西已经在使用该端口。停止其他服务,Apache 应该会启动。

标签: apache amazon-web-services http ssl https


【解决方案1】:

sudo netstat -ltnp | grep ':80'

tcp6 0 0 :::80 :::* LISTEN 1584/httpd

sudo kill -9 1584

sudo /opt/bitnami/ctlscript.sh restart apache

重复该命令,直到你杀死所有冲突的进程

【讨论】:

    猜你喜欢
    • 2018-01-09
    • 2017-12-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-09
    • 2022-08-04
    • 1970-01-01
    • 2011-09-14
    • 2012-04-05
    相关资源
    最近更新 更多