深圳做电商网站网站维护套餐
-  
nginx官网 https://redis.io/download/
 -  
把鼠标放到这里,复制下载地址

 -  
在服务器找个文件夹执行命令
wget https://github.com/redis/redis/archive/7.2.4.tar.gz -  
tar -zxvf 7.2.4.tar.gz -  
make -  
make install

 -  
看到这几行就说明安装成功了
 -  
不放心的话再查看下bin目录,如下图,可以看到redis-server

 -  
先备份配置文件,再修改配置文件
vi redis.conf -  
daemonize no —> yes
 -  
bind 127.0.0.1 —> bind 0.0.0.0
 -  
requirepass 123456(自定义的密码)
 -  
保存文件,执行
redis-server redis.conf -  
我遇到了这个问题,不慌,提示说的很清楚,只需要在 /etc/sysctl.conf 这个文件中添加一行 vm.overcommit_memory = 1


 -  
执行
sysctl vm.overcommit_memory=1 -  
再执行
redis-server redis.conf -  
看到什么都没输出,这时已经在后台运行了

 -  
使用客户端连接进行测试,顺便推荐个好用的客户端,Another Redis Desktop Manager(https://goanother.com/cn/)

 -  
完结撒花,恭喜你,已经安装成功了
 
