This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
cd /usr/local
rz -be
选择:redis-5.0.14.tar.gz
tar -zxvf redis-5.0.14.tar.gz
rm -rf redis-5.0.14.tar.gz
cd /usr/local/redis-5.0.14
yum install make gcc -y
make MALLOC=libc
make PREFIX=/usr/local/redis install
cp /usr/local/redis-5.0.14/redis.conf /usr/local/redis/bin
rm -rf /usr/local/redis-5.0.14/
vi /usr/local/redis/bin/redis.conf
69 行 bind 127.0.0.1 改成0.0.0.0
88行 protected-mode yes 改为no
设置后台启动
136行 daemonize no 改成 yes #设置后台启动
设置密码
requirepass rzyc#redis
# 启动
cd /usr/local/redis/bin
./redis-server ./redis.conf