欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Centos6 安装redis 5.0.8

程序员文章站 2022-06-27 21:04:46
Install安装:cd /tmp/wget http://download.redis.io/releases/redis-5.0.8.tar.gztar xf redis-5.0.8.tar.gz -C /usr/local/mv redis-5.0.8 rediscd /usr/local/redis/makeecho $?vim /usr/local/redis/redis.conf配置文件修改项:'''bind 127.0.0.1protected-mode no...

Install安装:

cd /tmp/
wget http://download.redis.io/releases/redis-5.0.8.tar.gz
tar xf redis-5.0.8.tar.gz -C /usr/local/
mv redis-5.0.8 redis
cd  /usr/local/redis/
make
echo $?
vim /usr/local/redis/redis.conf
配置文件修改项:
	'''
	bind 127.0.0.1
	protected-mode no
	port 51229
	daemonize yes
	dir /meepo/data/redis
	requirepass password
	'''
pwd
/usr/local/redis/src/redis-server /usr/local/redis/redis.conf 
/usr/local/redis/src/redis-server -v
/usr/local/redis/src/redis-server version.h

Login登录验证:

/usr/local/redis/src/redis-cli -p 51229
auth password
config get requirepass

添加开机自启动

[root@node1 ~]# vim /etc/rc.local 
/usr/local/redis/src/redis-server /usr/local/redis/redis.conf 

本文地址:https://blog.csdn.net/weixin_43822878/article/details/107152185