Using Brew in Mac to install Nginx steps and related issues

Source: Internet
Author: User

1. Use Brew to install Nginx

Brew Install Nginx

If you report the following error:

Error:permission denied-/usr/local/var

That might be your current user does not have permission to read and write to the/usr/local/folder, execute the following command to obtain permissions

sudo chown-r ' Your name '/usr/local

2. After the installation is complete, execute the following command to start the Nginx

sudo nginx

3. Test

Choose your favorite browser to open the following URL, if all goes well will show the Nginx welcome page

http://localhost:8080

4. End

If you want to configure, you can open the/usr/local/etc/nginx/nginx.conf file for modification, such as configuring the domain name, port number, and so on.

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.