1.grew install nginx
2. Run nginx in the terminal
3. Find that port 8080 is occupied
4. cd /usr/local/homebrew/etc/nginx/servers
5. Modify nginx.conf and change the port to 80
6.sudo nginx
7.nginx The executable command is in /usr/local/homebrew/bin/
8. Open localhost:80 to see the nginx welcome interface
9. Stop nginx with kill -9 process number.
Install nginx under mac
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327010218&siteId=291194637
Recommended
Ranking