VM 重启后站点关闭 Google Cloud Engine

Site is down after VM restart Google Cloud Engine

我的 VM 实例重新启动后,我的站点已关闭。我检查了 IP 地址,但它没有改变。您对问题所在以及如何解决有任何想法吗?

我 运行 基于 Debian 的 WordPress (Bitnami) OS。我使用 Cloudflare CDN。我知道在停止 VM 时它不会保留设置。我可以恢复它们吗?

您的环境不会松散配置 "settings",但是使用这些配置的服务器将在 VM 关闭并需要重新启动时终止其 processes

问题很可能是您需要重新启动 Apache web server (which starts the PHP runtime and proxies HTTP requests) and your MySQL server (这是您的数据库)...

重新启动 Apache:

sudo service apache2 restart

重启MySQL:

sudo service mysql restart 要么 sudo /etc/init.d/mysql restart


编辑: 看起来你的 Bitnami image has a different configuration...

启动所有服务:sudo /opt/bitnami/ctlscript.sh start

重新启动 Apache:sudo /opt/bitnami/ctlscript.sh restart apache

重启MySQL:sudo /opt/bitnami/ctlscript.sh restart mysql

关于您的上一条错误消息

Syntax OK (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 Monitored apache

由于 Nginx,我发现了类似的错误,如果您安装了它并且它正在产生冲突,则可能会发生这种情况。确保按以下方式删除它:

sudo apt-get remove nginx nginx-common

sudo apt-get autoremove         #to remove unneeded dependencies