Mac Server Setting
01.HomeBrew install
# 맥에서 각 프로그램을 설치하려면 HomeBrew를 사용한다.
# HomeBrew Install - 변경될 수 있으므로 해당 홈페이지에서 확인
# (영문) http://brew.sh/
# (한글) http://brew.sh/index_ko.html
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# HomeBrew Update
brew update
# HomeBrew Delete -
sudo rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
# status check
brew doctor
# permition dein - 해당 폴더에서 다시 인스톨
cd /usr/local
# wget install
brew install wget
02.MySql
# MySql Install
brew install mysql
## Help after Install
# To connect:
# mysql -u root
#
# To have launchd start mysql at login:
# ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
# Then to load mysql now:
# launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
# Or, if you don't want/need launchctl, you can just run:
# mysql.server start
# Check MySql version
mysql --version
# MySql 시작
mysql.server start
# MySql 접속
mysql -u root -p
# MySql 외부 IP 접속 승인
GRANT ALL PRIVILEGES ON *.* to 'root'@'%' IDENTIFIED BY 'yourPassword';
flush privileges;
# MySql 5.6 버전 이상 비밀번호 변경
http://stackoverflow.com/questions/30692812/mysql-user-db-does-not-have-password-columns-installing-mysql-on-osx
03.Nginx
# Nginx 설치
brew installl nginx
# 서버 시작
sudo nginx
# 서버 정지
sudo nginx -s stop
# 서버 재시작
sudo nginx -s reload
# nginx 설정
vim /usr/local/etc/nginx/nginx.conf
# html
/usr/local/Cellar/nginx/1.2.3/html
04.Node.js
-express
'기록' 카테고리의 다른 글
Raspberry2 Postgress (0) | 2015.11.23 |
---|---|
Node.js Forever 사용법 (0) | 2015.10.22 |
Mac Postgres (0) | 2015.10.05 |
맥북에서 윈도우 키보드 맥 키보드처럼 사용하기 (0) | 2015.09.04 |
AWS Ubuntu Setting (0) | 2015.09.04 |