环境介绍

Redis部署

下载地址:
官网下载

关闭防火墙和SELINUX

systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i '/^SELINUX=/s/enforcing/disabeld/' /etc/selinux/config

解压安装:

tar -zxf redis-6.2.4.tar.gz 
cd redis-6.2.4/
yum -y install make gcc
make MALLOC=libc

成功如下:
Redis部署
配置 redis.conf:

bind 127.0.0.1 -::1           #允许访问地址
port 6379                     #端口
requirepass 123456            #连接密码
daemonize yes                 #是否要用守护线程的方式启动

启动服务并验证:

src/redis-server ./redis.conf
src/redis-cli -h 127.0.0.1 -p 6379
127.0.0.1:6379> auth 123456
127.0.0.1:6379> get *

Redis部署

相关文章:

  • 2021-08-16
  • 2021-10-13
  • 2021-11-09
  • 2022-01-11
  • 2021-11-24
  • 2022-02-17
  • 2021-06-22
  • 2022-12-23
猜你喜欢
  • 2021-04-05
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案