{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
回答