2019/08/11

Q&A relevant to AWS Lightsail

This post contains the Q&A relevant to AWS Lightsail.

Restart Apache Server

bitnami@ip-172-26-2-143:~$ sudo /opt/bitnami/ctlscript.sh restart apache
Unmonitored apache
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd stopped
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd started at port 80
Monitored apache
bitnami@ip-172-26-2-143:~$

How to solve the problem of unable to reboot

Use this command: "sudo systemctl --force --force reboot"

bitnami@ip-172-26-2-143:~$ sudo reboot
Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.
bitnami@ip-172-26-2-143:~$ sudo shutdown -r now
Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.
bitnami@ip-172-26-2-143:~$ sudo systemctl --force --force reboot
Rebooting.


No comments:

Post a Comment