首页 > 系统服务 > 详细

macos

时间:2019-10-04 12:40:43      阅读:85      评论:0      收藏:0      [点我收藏+]

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

macos

原文:https://www.cnblogs.com/0916m/p/11621790.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!