安裝參考文檔
https://redis.io/download
make 可能會報如下錯誤
/bin/sh: cc: command not found
yum 命令安裝 gcc
如報如下錯誤:
yum提示Another app is currently holding the yum lock; waiting for it to exit…
可參考:https://blog.csdn.net/testcs_dn/article/details/48711805
運行如下命令
[root@bogon redis-5.0.3]# rm -f /var/run/yum.pid
[root@bogon redis-5.0.3]# yum -y install make gcc*
安裝成功 gcc 後可直接使用 make 編譯了*
默認啓動方式爲非守護進行進行,需修改 redis.conf 爲後臺進行啓動
[root@bogon src]# vi …/redis.conf
將 no 修改爲yes
經過以上步驟安裝即可搞定,如有問題可聯繫qq:787141854