我的网站在Amazon Lightsail上无法加载。

0

【以下的问题经过翻译处理】 我尝试在Lightsail的更高计划上运行测试,现在它完全不再工作,无论是在新的还是旧的快照上。我尝试了我能想到的一切,但似乎Bitnami服务无法重新启动。 在SSH中使用此命令“sudo /opt/bitnami/ctlscript.sh status”,这是我得到的结果:

-Cannot find any running daemon to contact. If it is running, make sure you are pointing to the right pid file (/var/run/gonit.pid)

当我运行 "sudo /opt/bitnami/bndiagnostic-tool" ,输出的结果时:

[Connectivity]Server ports 22, 80 and/or 443 are not publicly accessible. Please check the following guide to open server ports for remote access:https://docs.bitnami.com/general/faq/administration/use-firewall/ ===== Begin of bndiagnostic tool output =====Action '-t -f /opt/bitnami/apache2/conf/httpd.conf' failed.The Apache error log may have more information. ✓ Resources: No issues found ? Connectivity: Found possible issues ✓ Mariadb: No issues found ✓ Processes: No issues found ? Wordpress: Found possible issues ? Apache: Found possible issues ✓ Php: No issues found

当我运行“sudo /opt/bitnami/ctlscript.sh restart apache”,得到的结果是

 -Failed to restart apache: Failed to restart apache
sudo service bitnami restart -Job for bitnami.service failed because the control process exited with error code.See "systemctl status bitnami.service" and "journalctl -xe" for details. This command gave me that under "systemctl status bitnami.services" -bitnami.service - LSB: bitnami init script Loaded: loaded (/etc/init.d/bitnami; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2023-01-17 21:23:39 UTC; 43s ago Process: 3198 ExecStart=/etc/init.d/bitnami start (code=exited, status=1/FAILURE) Tasks: 50 (limit: 4692) Memory: 379.4M CPU: 1.956s CGroup: /system.slice/bitnami.service ├─778 php-fpm: master process (/opt/bitnami/php/etc/php-fpm.conf) ├─790 php-fpm: pool www ├─791 php-fpm: pool www ├─792 php-fpm: pool www ├─793 php-fpm: pool www ├─794 php-fpm: pool www ├─795 php-fpm: pool www ├─796 php-fpm: pool www ├─797 php-fpm: pool www ├─798 php-fpm: pool www ├─799 php-fpm: pool www ├─800 php-fpm: pool www ├─801 php-fpm: pool www ├─802 php-fpm: pool www ├─803 php-fpm: pool www ├─804 php-fpm: pool www ├─805 php-fpm: pool www ├─806 php-fpm: pool www ├─807 php-fpm: pool www ├─808 php-fpm: pool www ├─809 php-fpm: pool www ├─810 php-fpm: pool www ├─811 php-fpm: pool www ├─812 php-fpm: pool www ├─813 php-fpm: pool www

"journalctl -xe" 得到如下输出

bitnami@ip-ip-172-??-?-??:~/stack/wordpress/wp-content/plugins$ journalctl -xeJan 17 21:23:39 ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 821 (php-fpm) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 822 (php-fpm) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 823 (php-fpm) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 824 (php-fpm) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 825 (php-fpm) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 826 (php-fpm) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 827 (php-fpm) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 828 (php-fpm) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 829 (php-fpm) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Unit process 844 (mysqld) remains running after unit stopped.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: Failed to start LSB: bitnami init script.░░ Subject: A start job for unit bitnami.service has failed░░ Defined-By: systemd░░ Support: https://www.debian.org/support░░ ░░ A start job for unit bitnami.service has finished with a failure. The job identifier is 770 and the job result is failed.Jan 17 21:23:39 ip-ip-172-??-?-?? systemd[1]: bitnami.service: Consumed 1.943s CPU time.░░ Subject: Resources consumed by unit runtime░░ Defined-By: systemd░░ Support: https://www.debian.org/support░░ ░░ The unit bitnami.service completed and consumed the indicated resources.Jan 17 21:23:44 ip-ip-172-??-?-?? dhclient[443]: PRC: Renewing lease on eth0.Jan 17 21:23:44 ip-ip-172-??-?-?? dhclient[443]: XMT: Renew on eth0, interval 10060ms.Jan 17 21:23:44 ip-ip-172-??-?-?? dhclient[443]: RCV: Reply message on eth0 from fe23::f6:53fc:fi61:2b1l.Jan 17 21:24:54 ip-ip-172-??-?-?? dhclient[443]: PRC: Renewing lease on eth0.Jan 17 21:24:54 ip-ip-172-??-?-?? dhclient[443]: XMT: Renew on eth0, interval 9680ms.Jan 17 21:24:54 ip-ip-172-??-?-?? dhclient[443]: RCV: Reply message on eth0 from fe23::f6:53fc:fi61:2b1l.Jan 17 21:26:04 ip-ip-172-??-?-?? dhclient[443]: PRC: Renewing lease on eth0.Jan 17 21:26:04 ip-ip-172-??-?-?? dhclient[443]: XMT: Renew on eth0, interval 10830ms.Jan 17 21:26:04 ip-ip-172-??-?-?? dhclient[443]: RCV: Reply message on eth0 from fe23::f6:53fc:fi61:2b1l.
profile picture
专家
已提问 5 个月前33 查看次数
1 回答
0

【以下的回答经过翻译处理】 经过仔细调查,我得出结论,我需要修复额外的缓存,更高的计划和不同的WordPress插件用于缓存和图片,但由于我的其他高级插件(BuddyBoss)的性质,我在没有冲突的情况下难以配置所有内容。因此,我将计划升级到每月20美元,并安装了Litespeed缓存插件,并解决了插件的读/写权限问题,以使其正常工作,在所有这些之间,我安装了2个Apache服务器,这引起了这个问题。

我从支持中获得的解决方案很好: https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-debian-11 只需按照所有步骤操作,即使您遇到一些错误,请重新启动实例,网站应该可以正常工作。这个每月20美元的计划在我手动将PHP内存从1GB升级到3GB后运行得非常好。网站的速度非常快,我可能会一直使用 Lightsail,直到必须转移到EC2。

profile picture
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则