sh Brew在Mac上安装Redis

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Brew在Mac上安装Redis相关的知识,希望对你有一定的参考价值。

type below:

```
brew update
brew install redis
```

To have launchd start redis now and restart at login:
```
brew services start redis
```

Or, if you don't want/need a background service you can just run:

```
redis-server /usr/local/etc/redis.conf
```

Test if Redis server is running.

```
redis-cli ping
```
If it replies “PONG”, then it’s good to go!

Location of Redis configuration file.

```
/usr/local/etc/redis.conf
```

Uninstall Redis and its files.

```
brew uninstall redis
rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
```
redis-server /usr/local/etc/redis.conf

以上是关于sh Brew在Mac上安装Redis的主要内容,如果未能解决你的问题,请参考以下文章

sh 使用brew 0.9.5在Mac OS X 10.10.1上安装和设置bind(named)

sh 使用brew 0.9.5在Mac OS X 10.10.1上安装和设置bind(named)

利用brew在mac上安装mysql

Mac使用brew安装软件

mac中怎样通过brew 安装php的redis扩展

Mac brew安装redis