linux 安装redis
apt-get install build-essential
apt-get install libjemalloc-dev
apt-get install redis-server
service redis-server status
vi /etc/redis/redis.conf
redis-server /etc/redis/redis.conf
systemctl restart redis.service
密码设置在 /etc/redis/redis.conf
在redis.conf 配置文件中注释到 bing 127.0.0.1 这样才能给其他ip访问
在配置文件中找到 # requirepass foobared 这行,去掉前面的#注释符号,并将foobared替换为你想要的密码
正常状态:

浙公网安备 33010602011771号