Centos系统下安装Redis

将Redis安装包上传至Centos系统中

进入该目录下,依次执行以下命令:

解压:

tar -zxf redis-3.2.11.tar.gz
make

安装并指定安装目录

make install PREFIX=/opt/install/redis

拷贝redis.conf文件到redis安装目录下:

cp /opt/software/redis-3.2.11/redis.conf ./

猜你喜欢

转载自www.cnblogs.com/chenzheng8975/p/9456945.html