标签:pre usr linu chmod wget serve font load mon
wget http://download.redis.io/releases/redis-4.0.8.tar.gz
tar xzvf redis-4.0.8.tar.gz
cd redis-4.0.8
make
cd src
make install PREFIX=/usr/local/redis
cd ../
mkdir /usr/local/redis/conf
mv redis.conf /usr/local/redis/conf
vi /usr/local/redis/cont/redis.conf //将daemonize no 改成daemonize yes
在/etc/rc.local里加上:/usr/local/redis/bin/redis-server /usr/local/redis/cont/redis.conf (意思就是开机调用这段开启redis的命令,同时rc.local需要有执行权限,若没有,则执行chmod +x /etc/rc.local )
标签:pre usr linu chmod wget serve font load mon
原文地址:https://www.cnblogs.com/yangxuyang/p/11429114.html