macos
时间:2019-10-04 12:40:43
收藏:0
阅读:85
mac系统下使用的包管理工具是homebrew
安装redis
brew install redis
查看当前启动的服务
bews services list
配置文件
/usr/local/etc/redis.conf
启动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/
进入客户端
redis-cli
python3
默认自带的py2
brew search python3
brew install python3
关于brew长时间updating问题
切换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
关于安装py依赖环境提示pymssql错误
_mssql.c:314:10: fatal error: ‘sqlfront.h‘ file not found
安装依赖
brew install freetds
pip install cython
原文:https://www.cnblogs.com/0916m/p/11621790.html
评论(0)