mac brew 使用教程


brew services list                  #查看系統通過 brew 安裝的服務
brew services cleanup               #清除已卸載無用的啟動配置文件

 

mysql 

  啟動:brew services start mysql 
  停止:brew services stop mysql 
  重啟:brew services restart mysql

php 

  啟動:brew services start php 
  停止:brew services stop php 
  重啟:brew services restart php

nginx 

啟動:brew services start nginx 
停止:brew services stop nginx 
重啟:brew services restart nginx

 

brew  install mysql  //安裝mysql

brew search mysql  //搜索mysql

brew info mysql    //   查找mysql相關信息

brew update     //更新自己的Homebrew

brew outdated   //會顯示哪些軟件可以升級

brew upgrade     //升級所有軟件(后面不加名字)

brew upgrade  mysql  //    升級mysql軟件

brew cleanup    //定期清理一些安裝包緩存

brew list      //顯示已經安裝的軟件

brew uninstall xx //卸載某些軟件

 

 brew 安裝的根目錄 一般在:/usr/local/Cellar/ 下面 

mac brew :command not founc 解決辦法

sudo vim .bash_profile
export PATH=/usr/local/bin:$PATH

source .bash_profile


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM