admin avatar

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

🕔 by admin

在Mac 上通過 brew install mysql 安裝MySQL

1
2
3
4
5
6
# 啓動 mysql, 並設置為開機啓動
brew services start mysql
# 關閉 mysql
brew services stop mysql
# 重啓 mysql
brew services restart mysql

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

1
2
3
4
5
6
7
brew install nginx
# 啓動 nginx 並設置為開機啓動
brew services start nginx 
# 關閉 nginx 
brew services stop nginx 
# 重啓 nginx 
brew services restart nginx 

💘 相关文章

写一条评论