码迷,mamicode.com
首页 > 系统相关 > 详细

macos

时间:2019-10-04 13:33:53      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:oca   freetds   install   nts   url   macos   set   sea   tar   

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

标签:oca   freetds   install   nts   url   macos   set   sea   tar   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!