Skip to content

Instantly share code, notes, and snippets.

@joelbowen
Last active July 11, 2021 06:38
Show Gist options
  • Save joelbowen/10072454 to your computer and use it in GitHub Desktop.
Save joelbowen/10072454 to your computer and use it in GitHub Desktop.
Restarting MySQL or HTTP on Amazon EC2
$ 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