{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. 進(jìn)入解壓后的目錄:
cd redis-6.2.44. 編譯Redis:
make5. 安裝Redis:
sudo make install6. 運(yùn)行Redis:
redis-server如果Redis成功安裝并運(yùn)行,則會(huì)看到以下輸出:
[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現(xiàn)在Redis已經(jīng)安裝并運(yùn)行在本地計(jì)算機(jī)上,可以使用redis-cli命令連接到Redis服務(wù)器并開(kāi)始使用。
0
回答0
回答0
回答2
回答0
回答1
回答0
回答0
回答0
回答0
回答