Last active
July 11, 2021 06:38
-
-
Save joelbowen/10072454 to your computer and use it in GitHub Desktop.
Restarting MySQL or HTTP on Amazon EC2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh -i KEYNAME.pem ec2-user@IPADDRESS | |
$ sudo service mysqld status | |
$ sudo service httpd status | |
"mysqld dead but subsys locked" | |
$ sudo service mysqld restart | |
Stopping mysqld: [ OK ] | |
Starting mysqld: [ OK ] | |
$ sudo service httpd restart | |
Stopping httpd: [ FAILED ] | |
Starting httpd: [ OK ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment