centos7 yum安装redis
来源:互联网 发布:重庆知秋凤凰怎么样 编辑:程序博客网 时间:2024/05/19 03:17
1.设置Redis的仓库地址
yum install epel-release
2.安装redis
yum install redis
修改配置文件,监听所有的IP地址
vim /etc/redis.conf
找到下面这一行
bind 127.0.0.1
注释掉
#bind 127.0.0.1
3.启动redis,到此完成
service redis start
如果需要设置开机自动启动
chkconfig redis on
另外:
如果需要redis配置认证密码
1.通过配置文件进行配置
yum方式安装的redis配置文件通常在/etc/redis.conf中,打开配置文件找到
#requirepass foobared
去掉行前的注释,并修改密码为所需的密码,保存文件
requirepass youpwd
重启redis完成
yum install epel-release
2.安装redis
yum install redis
修改配置文件,监听所有的IP地址
vim /etc/redis.conf
找到下面这一行
bind 127.0.0.1
注释掉
#bind 127.0.0.1
或者修改成bind 0.0.0.0
3.启动redis,到此完成
service redis start
如果需要设置开机自动启动
chkconfig redis on
另外:
如果需要redis配置认证密码
1.通过配置文件进行配置
yum方式安装的redis配置文件通常在/etc/redis.conf中,打开配置文件找到
#requirepass foobared
去掉行前的注释,并修改密码为所需的密码,保存文件
requirepass youpwd
重启redis完成
阅读全文
0 0
- centos7 yum安装redis
- centos7 yum安装配置redis
- centos7 通过yum安装redis
- Linux(Centos7)yum安装最新redis
- centos7 yum安装配置redis 并设置密码
- Redis yum安装redis
- CentOS7 yum安装git
- CentOS7 yum安装mysql
- CentOS7 yum 安装git
- CentOS7 yum安装MySQL
- CentOS7 yum 安装git
- Centos7 yum安装nginx
- centos7 yum 安装 nginx
- centos7 yum 安装mysql
- Centos7 yum安装mysql
- Centos7 yum安装 Docker
- CentOS7 yum安装Mariadb10.*
- Centos7 yum 安装 mysql
- 学习AIDL,这一篇差不多了
- 2016ACM-ICPC Regional Dalian
- oracle中的exists 和not exists 用法
- http java实现
- Android自定义炫酷进度条(闪电能量条)
- centos7 yum安装redis
- css 选择器
- SqlServer 等值连接,左连接,右连接
- css引入的字体库
- 使用main函数的参数,实现一个整数计算器
- RF-常用关键字-get time
- 設定Android Studio 去看AOSP code
- Hadoop学习笔记—12.MapReduce中的常见算法
- python cv2.imread()、cv2.imshow()、cv2.imwrite()