1. redis-cli命令行远程连接redis服务
redis-cli -h host -p port -a password
host:远程redis服务器host
port:远程redis服务端口
password:远程redis服务密码
2、Redis (error) NOAUTH Authentication required.解决方法
出现认证问题,应该是设置了认证密码,输入密码既可以啦
注意密码是字符串形式!
127.0.0.1:6379>?auth?"yourpassword"??
3、wget安装redis
# 下载?
mkdir -p /usr/local/redis?
cd /usr/local/redis?
# https://download.redis.io/releases/
wget https://download.redis.io/releases/redis-6.2.3.tar.gz
# 解压
tar xzf redis-6.2.3.tar.gz
# 编译
cd redis-6.23
make
#软链
ln -s /usr/local/redis/redis-6.2.3/src/redis-server /usr/bin/redis-server
ln -s /usr/local/redis/redis-6.2.3/src/redis-cli /usr/bin/redis-cli