Portal Home > Knowledgebase > Articles Database > apache, mysql automatically start after reboot under centOS?
apache, mysql automatically start after reboot under centOS?
Posted by surfmanjoe, 07-08-2007, 06:26 PM |
I have one bare server and installed everything myself. however, I found apache, mysqld can not automatically start after reboot, may I know how to enable them to automatically start after reboot?
thanks.
|
Posted by Ooble, 07-08-2007, 07:10 PM |
Hi. Start apache on boot.
chkconfig --levels 235 httpd on
|
Posted by Ooble, 07-08-2007, 07:12 PM |
Hi. Start MYSQLD on boot.
chkconfig --level 2345 mysqld on
|
Posted by surfmanjoe, 07-08-2007, 07:18 PM |
thanks.
1) where do I have to put the codes? say, what file?
2) if I want the system start my own script? how may I do that?
I am new to centos, please give me more details. thanks.
|
Posted by Adam H, 07-08-2007, 07:52 PM |
Login to SSH and run the commands.
|
Posted by HD Fanatic, 07-08-2007, 08:16 PM |
Good to have these for future reference. Thanks.
|
Add to Favourites Print this Article
Also Read