Mac OS X make Reids nignx MongoDB a random startup

Source: Internet
Author: User

Most of the installations will have a plist, with Nginx as an example:

1. Copy plist to/library/launchdaemons

sudo Cp/usr/local/opt/nginx/*.plist/library/launchdaemons

 

2. "Optional" Modify the plist parameter or add other (add log file location, etc.)  

 

3. Modify permissions

sudo chown root:wheel/library/launchdaemons/homebrew.mxcl.nginx.plist

 

4. Start

sudo launchctl load/library/launchdaemons/ Homebrew.mxcl.nginx.plist

sudo Launchctl start homebrew.mxcl.nginx

 

Span class= "Hljs-operator" > reference:

http://stepquick.net/blog/2014/04/28/start-nginx-at-launch-on-mavericks/

https://alicoding.com/how-to-start-mongodb-automatically-when-starting-your-mac-os-x/

Mac OS X make Reids nignx MongoDB a random startup

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.