mac brew 설치 nginx, nginx 가 나타 나 면 접근 할 수 없습니다.

2774 단어 mac
근본 적 인 원인 은
 brew install nginx
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/nginx-1.15.1.high_sierra.bottle.tar.gz
Already downloaded: /Users/yuepeng1/Library/Caches/Homebrew/nginx-1.15.1.high_sierra.bottle.tar.gz
==> Pouring nginx-1.15.1.high_sierra.bottle.tar.gz
==> Caveats
Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

To have launchd start nginx now and restart at login:
  brew services start nginx
Or, if you don't want/need a background service you can just run:
  nginx
==> Summary
��  /usr/local/Cellar/nginx/1.15.1: 23 files, 1.4MB

맨 아래 봐.
To have launchd start nginx now and restart at login:
  brew services start nginx
Or, if you don't want/need a background service you can just run:
  nginx

주로 brew services start nginx 를 실행 하면 nginx 가 자동 으로 열 린 다음 에 run nginx 와 같은 localhost or 127.0.0.1 에 접근 할 수 있 습 니 다. 구체 적 인 nginx 설정 은 당신들 이 직접 설정 한 nginx. conf 의 파일 입 니 다. 그리고 설정 한 자체 파일 입 니 다. 이렇게 하면 n 개의 2 급 도 메 인 이름 을 더 설정 할 수 있 습 니 다.

좋은 웹페이지 즐겨찾기