Set the boot auto-start item in Linux (add tomcat and mysql to the boot auto-start item)

Source: Internet
Author: User

 
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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.