Set the boot auto-start item in Linux (add tomcat and mysql to the boot auto-start item)
Source: Internet
Author: User
1. switch cd/etc/# To The etc directory. 2. catinittab | grepinit # if a segment error occurs, enter the catinittab to check the default row's default number. if it is 5.3.cdrc5.d4.touchs9..
1. cd/etc/# switch to The etc directory. 2.cat inittab | grep init # if a segment error occurs, enter cat inittab to check the default number of rows. 3.cd rc5.d 4. touch S99hy-tomcat # create boot automatic file 5. vi S99hy-tomcat # Edit self-starting file enter insert mode cd/usr/home/mas-tt/mysql5-install bin/mysqld_safe -- defaults-file =. /my. cnf -- user = root & sleep 60 cd/home/mas_tt/apache-tomcat-6.0.32/bin sh startup. sh & 6. after editing the relevant commands, press esc, and then: wq indicates saving and exiting.: q! Does not save exit. 7. chmod 777 S99hy-tomcat # grant permissions to the self-starting file.
From the column of eminem2011
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service