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 급 도 메 인 이름 을 더 설정 할 수 있 습 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Oh My Zsh에서 starship으로 전환하는 방법 🚀나는 녹을 배우기 시작한 이후로 Oh My Zsh에서 starship로 바꿨습니다 😁 🦀 먼저 Oh My Zsh 를 제거합니다. Oh My Zsh를 제거하면 .zshrc가 보관됩니다. .zshrc에 다음을 추가하십시...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.