mac系統下使用的包管理工具是homebrewpython
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
卸載
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
安裝其餘工具mysql
安裝軟件,如:brew install oclint 卸載軟件,如:brew uninstall oclint 搜索軟件,如:brew search oclint 更新軟件,如:brew upgrade oclint 查看安裝列表, 如:brew list 更新Homebrew,如:brew update
brew install redisgit
查看當前啓動的服務
bews services listgithub
配置文件
/usr/local/etc/redis.confredis
啓動redis-server
brew services start redis
使用launchctl啓動/中止
launchctl load/unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
設置開機啓動
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents/sql
進入客戶端
redis-clidocker
默認自帶的py2
brew search python3
brew install python3ruby
切換git網絡
cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git cd "$(brew --repo)" git remote set-url origin https://github.com/Homebrew/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://github.com/Homebrew/homebrew-core.git
_mssql.c:314:10: fatal error: 'sqlfront.h' file not found
curl
安裝依賴
brew install freetds pip install cython
在mysql官網下載相應的mysql版本包。雙擊安裝便可,在安裝的時候注意初始密碼。安裝完成以後在系統偏好設置最底下就會出現mysql服務,能夠點擊控制服務的啓動與關閉
命令行啓動關閉
/usr/local/mysql/support-files/mysql.server start
/usr/local/mysql/support-files/mysql.server stop
若是忘記了密碼,須要進行重置。
進制mysql驗證功能 sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables 此時mysql服務會重啓, 新啓動一個命令窗口,進入mysql /usr/local/mysql/bin/mysql 刷新權限 FLUSH PRIVILEGES; 重置密碼 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('你的新密碼');
brew安裝
brew cask install docker
手動安裝
下載相應的dmg鏡像,安裝便可
鏡像加速鑑於國內網絡問題,後續拉取 Docker 鏡像十分緩慢,咱們能夠須要配置加速器來解決,我使用的是網易的鏡像地址:http://hub-mirror.c.163.com。
在任務欄點擊 Docker for mac 應用圖標 -> Perferences... -> Daemon -> Registry mirrors。在列表中填寫加速器地址便可。修改完成以後,點擊 Apply & Restart 按鈕,Docker 就會重啓並應用配置的鏡像地址了
雙系統下,mac是沒法給win硬盤存儲東西的,移動硬盤也不行,這是應爲文件格式的緣由, 能夠將多餘空間做爲mac的擴展,日誌格式來存儲文件 插入你的硬盤--點擊Finder--應用程序--實用工具--磁盤工具--在左上角選擇你的硬盤--而後正上方有四個選項(選擇抹掉)--選擇格式(選擇Mac os擴展日誌式)