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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac中怎样通过brew 安装php的redis扩展相关的知识,希望对你有一定的参考价值。

1. 通过homebrew 安装 redis
sodu brew install redis

2. 安装后执行开启redis,采用默认配置, 默认配置只有本地(127.0.0.1)可以访问。需要远程访问的话修改配置,注释bind 127.0.0.1即可。当然还要设置防火墙。
参考技术A 这个啊后盾网里就有啊。你可以看看学习下

markdown 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
```

以上是关于mac中怎样通过brew 安装php的redis扩展的主要内容,如果未能解决你的问题,请参考以下文章

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

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

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

Mac 使用brew安装phpredis扩展

Mac安装php和redis扩展

Mac下通过 brew 安装 Apache 和 PHP