Skip to main content

brew 명령어

brew 설치

공식 홈페이지를 참고해서 설치하자 - https://brew.sh/

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

패키지 검색, 설치

[brew]
brew search nginx # 패키지 검색
brew install nginx # 패키지 설치

패키지 시작, 확인

brew services start nginx  # 서비스 시작
brew services restart nginx
( brew services [run|start|stop|restart|cleanup] service_name )

brew services # 서비스 확인
Name Status User File
nginx started dosimpact ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist