需求说明: 今天配置了一台redis服务器,想要也和其他的数据库一样配置用户名/密码的方式进行登录. 查找了一下,没看到配置用户名的地方,就是有认证密码,所以就做了测试,在此进行记录. 操作过程: 1.开启redis的密码认证,打开redis.conf,找到以下的内容 [aiprd@redhat6 redis-4.0.2]$ grep "requirepass" redis.conf # If the master is password protected (using the &q
======== redis ======== 1. redis setup and test : 1. download the package from https://redis.io/download 2. compile source code: tar xzf redis-3.2.5.tar.gz cd redis-3.2.5 make 3. start redis server : [dy83694@retailvm1d redis-3.2.5]$ src/redis-server
安装: tar -zxvf redis-3.2.6.tar.gz cd redis-3.2.6make make installcd utils/ sh install_server.sh 主: 配置密码: vim /etc/redis/6379.conf requirepass root123456. 从: 配置密码.配置主地址端口.配置连接密码: vim /etc/redis/6379.conf requirepass root123456. slaveof 192.168.0.250 63