查看防火牆狀態:
systemctl status firewalld.service
關閉防火牆:
systemctl stop firewalld.service
關閉redis: ps -ef|grep redis kill 進程id vim /src/redis/etc/redis.conf #註釋掉本地鏈接 #bin 127.0.0.1 #設置安全鏈接密碼 requirepass 123456
/srv/redis/bin/redis-server /srv/redis/etc/redis.conf
成功鏈接:redis