Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)

How do I set the httpd and mysqld services to start automatically upon booting an amazon-ec2 instance?

Currently I have to start them manually by connecting to the instance via ssh and running sudo service httpd start and sudo service mysqld start.

1 Answer

0 votes
by (18.2k points)

Use the following commands on your Amazon Linux instance:

sudo chkconfig mysqld on

sudo chkconfig httpd on

Note: you can add user data in your instance to run these commands at the launch of your instance.

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories

...