Tips ✨

[터미널 명령어] HomeBrew 명령어

annovation 2026. 2. 10. 16:04

1) brew 로 설치한 프로그램 리스트

brew ls

 

2) MySQL 서버 켜져있는지 확인

brew services list | grep mysql

 

3) MySQL 자동 실행 (재부팅 시 자동으로 다시 켜짐)

brew services start mysql
  • Mac 부팅할 때 자동으로 켜지고
  • 터미널을 닫아도 안 꺼지고
  • 로그아웃해도 계속 살아있고
  • 명시적으로 끄기 전까지 계속 실행되는 상태 유지

4) MySQL 직접 끄기

brew services stop mysql

 

5) MySQL 지금만 켜기 (재부팅 시 다시 안켜짐)

mysql.server start

 

5-1) 서버 실행 중인지 확인

pgrep -fl mysqld

 

➡️

3741 /.../opt/homebrew/.../mysqld_safe ...
3852 /opt/homebrew/.../mysqld ...

 

5-2) 직접 끄기

mysql.server stop