Linux shell-based boot service

Source: Internet
Author: User
Tags svn

After the CentOS restart, a lot of services need to start manually, it is troublesome, today will need to boot or shut down the service to organize a bit, put into the Linux shell, and then add the shell into the/etc/rc.local, you can realize the storage of automatic mount, SVN, VSFTPD, Services such as firewalls start or close automatically, as follows:

1. Write the./root/shell/autorun.sh to the/etc/rc.local file:

echo/root/shell/autorun.sh >>/etc/rc.d/rc.local

2, vi/root/shell/autorun.sh, write the following content:

#!/bin/-d-r/opt/svn# Stop Firewall Services service iptables stop# mount disk array mount10.32. 8.31:/vol/vol_linux1  /netapp# restart VSFTPD Services service vsftpd restart# boot cache system #1024x768  10.32. 8.29 11211 -192.192. 3.9 255.255. 240.0 Dev eth2

Save exit to realize automatic mount of storage, SVN service, VSFTPD service boot automatically.

Linux shell-based boot service

Related Article

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.