Mac Setup shell script boot from

Source: Internet
Author: User

Recently need to do a distributed architecture of the site, is currently in the debugging phase, each time the boot to start a lot of tools, such as Zookeeper, ACTIVEMQ, Redis, Nginx and so on, take pains.

Search the Internet on the Mac how to set up shell script boot, record, convenient for you and convenient for everyone.

1, first write a sh script, such as:

1 cd ~/Documents2mkdir haha

The code is simple, go to Documents folder, set up haha directory, save as run.sh

2. Modify RUN.SH Permissions

sudo chmod 777 run.sh

3, right click run.sh-> Display Introduction, mainly open the way to modify the terminal, sharing and permissions to open all permissions.

4, enter the system Preferences, user and group, login items, add haha.sh to the login entry, and check the previous Hidden tab, restart.

Mac Setup shell script boot from

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.