当前位置:网站首页>Installing redis on Linux
Installing redis on Linux
2022-06-28 07:34:00 【Huangyuewang】
1. obtain redis resources
mkdir /application
cd /application
wget http://download.redis.io/releases/redis-6.2.6.tar.gz
2. decompression
tar xzvf redis-6.2.6.tar.gz
3. install
cd redis-6.2.6
make
cd src
make install PREFIX=/application/redis
4. Move the configuration file to the installation directory
cd ../
mkdir /application/redis/etc
mv redis.conf /application/redis/etc
5. To configure redis Start for background
vi /application/redis/etc/redis.conf // take daemonize no Change to daemonize yes
Add Intranet ip, find :bind 127.0.0.1 172.16.166.122
6. take redis Add to startup
vi /etc/rc.local // Add content to it :
/application/redis/bin/redis-server /application/redis/etc/redis.conf ( It means to call this section to start redis The order of )
7. Turn on redis
/application/redis/bin/redis-server /application/redis/etc/redis.conf
Common commands
/application/redis/bin/redis-server /application/redis/etc/redis.conf // start-up redis
pkill redis // stop it redis
uninstall redis:
rm -rf /application/redis // Remove installation directory
rm -rf /usr/bin/redis-* // Delete all redis Related command script
rm -rf /application/redis-6.2.6 // Delete redis Unzip folder
边栏推荐
- Yesterday, I went to a large factory for an interview and asked me to do four arithmetic operations. Fortunately, I am smart enough
- Self discipline challenge 30 days
- This keyword details
- R 和 rgl 绘制 3D 结
- R 语言 Kolmogorov-Smirnov 检验 2 个样本是否遵循相同的分布。
- "Three routines" of digital collection market
- What is a consistent hash? What scenarios can it be applied to?
- 力扣515.在每棵树行中找最大值
- Jinshan cloud team shared | 5000 words to understand how Presto matches with alluxio
- A gadget can write crawlers faster
猜你喜欢

什么是EC鼓风机(ec blower fan)?

Jinshan cloud team shared | 5000 words to understand how Presto matches with alluxio

A gadget can write crawlers faster

卸载重装最新版mysql数据库亲测有效

GoLand IDE and delve debug Go programs in kubernetes cluster

云原生(待更新)

阿里云服务器创建快照、回滚磁盘

"Three routines" of digital collection market

剑指Offer||:链表(简单)

PLC -- 笔记
随机推荐
代码提交规范
推荐系统系列精讲(第五讲): 排序模型的调优实践
Is it safe to open an account on Dongfang fortune
How bacnet/ip gateway collects data of building centralized control system
flutter 实现摇一摇功能
华为云计算之物理节点CNA安装教程
Ice - resources
大型项目中的Commit Message规范化控制实现
NDK cross compilation
Hack the box:routerspace
Using interceptor and cache to complete interface anti brushing operation
Is it safe for flush to open an account online
Evolution of vivo push platform architecture
逆波兰表达式求值<难度系数>
hack the box:RouterSpace题解
Construction and exploration of vivo database and storage platform
Jetpack - defects of livedata component and Countermeasures
ABAP 技能树
ACM笔记
XML serialization backward compatible