LINUX下安裝redis 4.0.8
阿新 • • 發佈:2019-01-02
1,下載redis https://redis.io/download(當前最新版4.0.8)
2,放入到 /usr/local/redis目錄下(沒有則自行建立)
3,解壓 tar xzf redis-4.0.8.tar.gz(tar.gz版本的,所以用tar)
4,cd redis-4.0.8
5,make
6,cd src
7,make install
8,需要在後臺執行則 修改 src/redis.conf 檔案 daemonize no 改為 yes
9,啟動./redis-server /usr/local/redis/redis-4.0.8/redis.conf
10,檢視是否啟動 ps axu | grep redis
11,啟動客戶端 redis-cli
12,ping
出現 PONG 就是好了
錯誤處理
Redis之MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
只需要在
/etc/sysctl.conf 裡面加上 vm.overcommit_memory = 1 並重啟伺服器
如果幫助到了您,請留言點或個贊謝謝