{eval=Array;=+count(Array);}
wget http://download.redis.io/releases/redis-6.2.4.tar.gz2. 解壓Redis:
tar xzf redis-6.2.4.tar.gz3. 進入解壓后的目錄:
cd redis-6.2.44. 編譯Redis:
make5. 安裝Redis:
sudo make install6. 運行Redis:
redis-server如果Redis成功安裝并運行,則會看到以下輸出:
[7943] 30 Mar 12:06:36.643 # Server initialized [7943] 30 Mar 12:06:36.643 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add "vm.overcommit_memory = 1" to /etc/sysctl.conf and then reboot or run the command "sysctl vm.overcommit_memory=1" for this to take effect. [7943] 30 Mar 12:06:36.643 * Ready to accept connections現在Redis已經安裝并運行在本地計算機上,可以使用redis-cli命令連接到Redis服務器并開始使用。
0
回答0
回答0
回答2
回答0
回答1
回答0
回答0
回答0
回答0
回答