mac配置环境问题解决nginx 以及 redis

mac安装redis 关于homeBrew的操作命令如下: brew search ** //查找某个软件包 brew list //列出已经安装的软件的包 brew install ** //安装某个软件包,默认安装的是稳定版本 brew uninstall **//卸载某个软件的包 brew upgrade ** //更新某个软件包 brew info ** //查看指定软件包的说明 brew cache clean //清理缓存

在mac上通过homeBrew安装redis

brew search redis //出现如下 ==> Searching local taps... hiredis redis redis-leveldb [email protected] [email protected] ==> Searching taps on GitHub... homebrew/cask/redis-app ==> Searching blacklisted, migrated and deleted formulae...

安装redis3.2版本 brew install [email protected] 提示如下信息 //把redis的环境变量配置到.zshrc中 If you need to have [email protected] first in your PATH run: echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc

To have launchd start [email protected] now and restart at login: //使用launchctl brew启动 brew services start [email protected]

使用配置文件启动

Or, if you don't want/need a background service you can just run: redis-server /usr/local/etc/redis.conf ==> Summary  /usr/local/Cellar/[email protected]/3.2.12: 13 files, 1.7MB /usr/local/etc 下修改redis.config找到 daemonize no改成yes 以守护进程的方式启动 配置环境变量echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc

启动:brew services start [email protected] 或者使用 redis-server /usr/local/etc/redis.conf启动 查看进程 ps axu | grep redis

chmod 777 ./* 给当前文件夹下面最高权限 sudo brew services start nginx

redis-server

git merge develop

git commit --amend --no-edit

git push origin HEAD:refs/for/master

你可能感兴趣的:(css,javascript,html,html5)