<table style="height: 30px; background-color: #afeeee; width: 1266px; ; width: 1266px;" border="0">
<tr><td><span style="font-size: 16px;">一、redis安装</td>
</tr>
</table>
源码安装:
1.wget
2.yum install gcc
3.tar zxvf redis-stable.tar.gz
4.cdredis-stable
5.make&&make install
6.cp redis.conf /etc/
7.配置文件
监听地址:bind 0.0.0.0
限制最大内存:maxmemory 4294967296(4G)
后台运行:daemonize yes
8.拷贝并修改系统脚本:
cd utils/
cp redis_init_script /etc/init.d/redis
修改:
CONF="/etc/redis.conf"
chmod a+x /etc/init.d/redis
ubuntu安装:
$sudo apt-get update $sudo apt-get install redis-server