MySQL在Mac系統通過brew安裝以及重啟的方法

Friday, Jun 10, 2022 | 1 minute read | Updated at Friday, Jun 10, 2022

@

在Mac 上通過 brew install mysql 安裝MySQL

# 啓動 mysql, 並設置為開機啓動
brew services start mysql
# 關閉 mysql
brew services stop mysql
# 重啓 mysql
brew services restart mysql

同樣的方法可以設置其它軟體,比如nginx

brew install nginx
# 啓動 nginx 並設置為開機啓動
brew services start nginx 
# 關閉 nginx 
brew services stop nginx 
# 重啓 nginx 
brew services restart nginx

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.