2013. 9. 6. 15:28 프로그래밍
nginx 설치 for mac (mountain lion설치)
1.gcc컴파일러 설치
https://github.com/kennethreitz/osx-gcc-installer/
자신의 맥버젼에 맞는 버젼을 설치한다.
이제 맥용 패키지 메니져 homebrew을 설치하도록 하자 이미 설치되어있으시면 패스~
2.homebrew 설치
http://brew.sh/
~shell에서 실행
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
3.nginx 설치
brew install nginx
The default port has been set to 8080 so that nginx can run without sudo. If you want to host pages on your local machine to the wider network you can change the port to 80 in: /usr/local/etc/nginx/nginx.conf You will then need to run nginx as root: `sudo nginx`. To have launchd start nginx at login: ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents Then to load nginx now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist ==> Summary
'프로그래밍' 카테고리의 다른 글
|