Blogger Information
Blog 3
fans 0
comment 0
visits 2734
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
yum安装redis
管正新的博客
Original
889 people have browsed it

 

2、yum install epel-release    --下载fedora的epel仓库

3、 yum install redis    -- 安装redis数据库

4、service redis start  Redirecting to /bin/systemctl start redis.service   --开启redis服务

  redis-server /etc/redis.conf   --开启方式二

5、ps -ef | grep redis   -- 查看redis是否开启

6、redis-cli       -- 进入redis服务

7、redis-cli  shutdown      --关闭服务

8、开放端口6379、6380的防火墙

/sbin/iptables -I INPUT -p tcp --dport 6379  -j ACCEPT   开启6379

/sbin/iptables -I INPUT -p tcp --dport 6380 -j ACCEPT  开启6380

 /etc/rc.d/init.d/iptables save                           保存

9、使用redis  desktop manager连接redis

10, yum remove redis.x86_64 卸载redis服务

11  yum list | grep redis -- 查看redis服务信息

 12 :set number vim修改文件命令显示行号

13

 

 

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post