【发布时间】:2019-06-03 12:32:01
【问题描述】:
我目前正在将 Runcloud 与我的 AWS Lighsail Ubuntu 服务器一起使用。面板部分中的所有内容都已连接,但由于某种原因,我的网站不再可用,我不知道为什么。
是否有人对 Runcloud 有任何经验或知道为什么我的网站没有显示?
编辑:
尝试运行以下终端命令后:
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 not running
/opt/bitnami/mysql/scripts/ctl.sh : mysql could not be started
/opt/bitnami/php/scripts/ctl.sh : php-fpm started
Syntax OK
(98)Address already in use: AH00072: make_sock: could not bind to
address [::]:80
(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
/opt/bitnami/apache2/scripts/ctl.sh : httpd could not be started
编辑 2:
使用ps -e | grep 3490 我得到:
tcp 0 0 0.0.0.0:80 0.0.0.0:*
LISTEN 1501/nginx-rc
tcp6 0 0 :::80 :::*
LISTEN 1501/nginx-rc
接着是ps -ef |grep 1501,结果是:
root 1501 1 0 Jan08 ? 00:00:00 nginx: master process
/usr/local/sbin/nginx-rc
runclou+ 1510 1501 0 Jan08 ? 00:00:00 nginx: worker process
bitnami 22205 19362 0 00:50 pts/0 00:00:00 grep --color=auto 1501
尝试运行killall httpd 时出现以下错误:
httpd(8068): Operation not permitted
httpd(8069): Operation not permitted
httpd(8070): Operation not permitted
httpd(8071): Operation not permitted
httpd: no process found
所有这些对我来说似乎是一种不同的语言,因为我只是想了解我的错误发生的原因以及如何解决它们。
如何修复此错误或让 httpd 和 mysql 运行?
【问题讨论】:
-
你需要root才能杀死它。尝试“sudo killall httpd”。 'sudo' 命令是 'superuser do',是非 root 用户执行 root 命令的常用方式,无需以 root 身份登录。此外,还有一种非常灵活的方式来允许和/或拒绝对不同用户的访问,并根据需要限制他们的权限。其范围远远超出了当前主题,但您应该意识到这一点。
标签: amazon-web-services server amazon-lightsail