yum install redis php-redis --enablerepo=remi,remi-php56
设置redis开机自动启动,具体路径以实际为准,
echo "/usr/bin/redis-server /etc/redis.conf" >>/etc/rc.local
- #加上`&`号使redis以后台程序方式运行
- ./redis-server &
yum install redis php-redis --enablerepo=remi,remi-php56
设置redis开机自动启动,具体路径以实际为准,
echo "/usr/bin/redis-server /etc/redis.conf" >>/etc/rc.local