blank的编程之路


  • 首页

  • 归档

  • 搜索
consul atomikos mybatisplus druid nexus nas named bind mysqldump acme.sh Dockerfile rsync keepalived swarm kibana ubuntu linux scp bugfix https ssl certbot curl gogs adminer harbor yum portainer python kubernetes idea java springboot maven docker-compose redis nginx mysql brew git chocolatey jenkins elasticsearch docker haproxy rabbitmq centos

yum 安装 redis 6

发表于 2019-04-01 | 分类于 运维 | 0 | 阅读次数 407

安装并启用 redis repo 源 安装 reids

yum install -y epel-release yum-utils &&\
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm &&\
yum-config-manager --enable remi &&\
yum install -y redis

启动 redis 配置开机自启

systemctl start redis && systemctl enable redis

设置redis 服务器密码

vim /etc/redis.conf

################################## SECURITY ###################################

# Require clients to issue AUTH <PASSWORD> before processing any other
# commands.  This might be useful in environments in which you do not trust
# others with access to the host running redis-server.
#
# This should stay commented out for backward compatibility and because most
# people do not need auth (e.g. they run their own servers).
#
# Warning: since Redis is pretty fast an outside user can try up to
# 150k passwords per second against a good box. This means that you should
# use a very strong password otherwise it will be very easy to break.
#
#### 反注释  requirepass 字段 为 redis 服务器配置密码  
requirepass passwd

重启redis服务使修改生效

systemctl restart redis
  • 本文作者: blank
  • 本文链接: https://blankhang.com/2019/04/01/1554106507064
  • 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!
# consul # atomikos # mybatisplus # druid # nexus # nas # named # bind # mysqldump # acme.sh # Dockerfile # rsync # keepalived # swarm # kibana # ubuntu # linux # scp # bugfix # https # ssl # certbot # curl # gogs # adminer # harbor # yum # portainer # python # kubernetes # idea # java # springboot # maven # docker-compose # redis # nginx # mysql # brew # git # chocolatey # jenkins # elasticsearch # docker # haproxy # rabbitmq # centos
yum 安装 官方elasticsearch 6.X/7.x
为centos7 开启ROOT远程链接 及 重置ROOT密码
© 2023 blank
Everything is energy and everything has a frequency