安裝redis客戶端
yum install redis
連接
redis-cli -h host -p port -a password
host:redis服務器host
port:redis服務端口 默認端口6379
password:redis服務密碼(無密碼不需要-a參數了)
更換數據庫
select index
Redis命令參考網站:
http://doc.redisfans.com/index.html
yum install redis
連接
redis-cli -h host -p port -a password
host:redis服務器host
port:redis服務端口 默認端口6379
password:redis服務密碼(無密碼不需要-a參數了)
更換數據庫
select index
Redis命令參考網站:
http://doc.redisfans.com/index.html
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。