当前位置:网站首页>Redis 环境安装
Redis 环境安装
2022-04-22 11:02:00 【xiaoweiwei99】
文章目录
1. 下载redis安装包
node01(主节点)服务器执行以下命令下载redis安装包
[root@node01 ~]# cd /export/soft/
[root@node01 soft]# wget http://download.redis.io/releases/redis-3.2.8.tar.gz
2. 解压redis压缩包到指定目录
node01执行以下命令进行解压redis
[root@node01 ~]# cd /export/soft
[root@node01 soft]# tar -zxvf redis-3.2.8.tar.gz -C ../servers/
3. 安装C程序运行环境
node01执行以下命令安装C程序运行环境
[root@node01 ~]# yum -y install gcc-c++
4. 安装较新版本的tcl
[root@node01 ~]# yum -y install tcl
5. 进行编译redis
node01执行以下命令进行编译:
[root@node01 ~]# cd /export/servers/redis-3.2.8/
[root@node01 redis-3.2.8]# make MALLOC=libc 或者使用命令 make 进行编译
[root@node01 redis-3.2.8]# make test && make install

6. 修改redis配置文件
[root@node01 ~]# cd /export/servers/redis-3.2.8/
[root@node01 redis-3.2.8]# mkdir -p /export/servers/redis-3.2.8/logs
[root@node01 redis-3.2.8]# mkdir -p /export/servers/redis-3.2.8/redisdata
[root@node01 redisdata]# vim redis.conf
bind node01
daemonize yes
pidfile /var/run/redis_6379.pid
logfile "/export/servers/redis-3.2.8/logs/redis.log"
dir /export/servers/redis-3.2.8/redisdata
7. 启动redis
node01执行以下命令启动redis
[root@node01 ~]# cd /export/servers/redis-3.2.8/src
[root@node01 src]# redis-server ../redis.conf
8. 连接redis客户端
node01执行以下命令连接redis客户端
[root@node01 ~]# cd /export/servers/redis-3.2.8/src
[root@node01 src]# redis-cli -h node01
版权声明
本文为[xiaoweiwei99]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_46416934/article/details/124340010
边栏推荐
- 找国企、央企、上市公司投资人,我选择塔米狗!
- 2022 年度广东省职业院校学生专业技能大赛网络安全(中职组)赛项样题
- C language example 100 (IV)
- A simple PLC motion control project
- 中职网络空间安全技能大赛P100-使用内存取证技术追踪Meterpreter会话
- Symfony3. 4. The database reverse generation entity has been solved
- php 获取IP以分钟限制提交次数,适用于验证码获取过于频繁
- Matlab to solve the problem of repeated activation license LIC file
- Convolutional neural network
- [data mining] use Excel to mine the equity relationship and count the distribution and trend of different types of kinship in listed companies according to the year [visual presentation]
猜你喜欢
随机推荐
基于PyQt5实现数据动态可视化
[leetcode] the first mock exam of two tree traversal iteration method.
Use bitnami PostgreSQL docker image to quickly set up stream replication clusters
Matlab 2009 installation tutorial
企业如何计算客户终身价值?
文章84:投资最重要的事是安全框架:猪周期结束,畜牧成为两市唯一确定板块(框架思维)
CVPR 2022 | 用Transformer学习多假设表示!3D人体姿态估计的新框架!
华为云IoT专家团张俭:22岁就已成为华为高级工程师,代码是我对这个世界想说的话
卷积神经网络
Secondary vocational network security D - file upload
塔米狗知识|新三板公司股权转让的流程
重点来了,最全Web3行话指南你掌握了吗?
错误:PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。“+文件路径“的解决方案
Right click menu of cesium map (cesium chapter. 72)
ADB 命令知多少?详细 ADB 命令大全来啦
蔡国强烟花NFT首发,白天烟花一样精彩
The wrong statistics of the table causes the optimizer to select the wrong execution plan
2022渗透岗位面试(思路篇)
Summary of information theory (I)
Symfony3. 4. The database reverse generation entity has been solved









