macos
Posted 0916m
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了macos相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章