当前位置:网站首页>Redis installation (Ubuntu)
Redis installation (Ubuntu)
2022-07-25 09:29:00 【__ Samual】
One 、 download
step 1:
stay Ubuntu Open the terminal , Enter the following command , download Redis Installation package :
wget http://download.redis.io/releases/redis-4.0.9.tar.gzExample :

step 2:
Decompress the installation package , And move it to usr/local⽬ Record
The order is as follows :
decompression :
tar xzf redis-4.0.9.tar.gzMove :
sudo mv ./redis-4.0.9 /usr/local/redis/ Example : 
step 3:
Get into redis⽬ record , Compile the generated
command :
cd /usr/local/redis/sudo makeExample :

step 4:
test
sudo make teststep 5:
install , take redis The command to install to /usr/local/bin/⽬ record
sudo make installstep 6:
After installation , We go into the catalogue /usr/local/bin View in
cd /usr/local/bin
ls -allExample :


- redis-server redis The server
- redis-cli redis Command line client
- redis-benchmark redis Performance testing tools
- redis-check-aof AOF File repair tool
- redis-check-rdb RDB Document retrieval tools
step 7:
To configure ⽂ Pieces of , Move to /etc/⽬ Record
To configure ⽂ Pieces of ⽬ Recorded as /usr/local/redis/redis.conf
sudo cp /usr/local/redis/redis.conf /etc/redis/
Two 、 To configure
Redis The configuration information of is in
/etc/redis/redis.confNext .see
sudo vi /etc/redis/redis.conf
Core configuration options
- binding ip: If you need remote access , This can be ⾏ notes , Or bind ⼀ A reality ip
bind 127.0.0.1
- End ⼝, The default is 6379
port 6379
Is it running as a daemons ⾏
- If you use daemons to run ⾏, It's not a command ⾏ Blocking , Similar to service
- If the ⾮ The daemons run ⾏, The current terminal is blocked
- Set to yes Represents daemons , Set to no Express ⾮ Daemon
- Recommended setting as yes
daemonize yes
data ⽂ Pieces of
dbfilename dump.rdb
- data ⽂ Piece storage path
dir /var/lib/redis
- ⽇ Records ⽂ Pieces of
logfile "/var/log/redis/redis-server.log"
- database , The default is 16 individual
database 16
- Master slave copy , Similar to dual backup .
slaveof
边栏推荐
- ~5 ccf 2021-12-2 序列查询新解
- 换电脑后如何配置SSH
- Go foundation 1
- 卷积神经网络的兴趣简单介绍
- C language and SQL Server database technology
- Go foundation 4
- The jar package has been launched on Alibaba cloud server and the security group has been opened, but postman still can't run. What should we do
- 【代码源】每日一题 分割(nlogn&n解法)
- [De1CTF 2019]SSRF Me
- @5-1 CCF 2019-12-1 报数
猜你喜欢

@3-2 CCF 2020-12-2 期末预测之最佳阈值

~2 ccf 2022-03-1 未初始化警告

学习 Redis linux 安装Redis

无法再web服务器上启动调试,web服务器未能找到请求资源

How can technologists start their personal brand? Exclusive teaching of top five KOLs

idea实用tips---如今将pom.xml(红色)改为pom.xml(蓝色)
![[GYCTF2020]Ez_ Express](/img/ce/02b90708f215715bb53cacfd4c21f0.png)
[GYCTF2020]Ez_ Express

*6-2 CCF 2015-03-3 节日

~4.1 剑指 Offer 05. 替换空格
![[GKCTF 2021]easynode](/img/f0/1daf6f83fea66fdefd55608cbddac6.png)
[GKCTF 2021]easynode
随机推荐
~3 ccf 2022-03-2 出行计划
~2 ccf 2022-03-1 未初始化警告
[GYCTF2020]Node Game
~1 ccf 2022-06-2 寻宝!大冒险!
What are stand-alone, cluster and distributed?
Detailed explanation of the use of nanny scanner class
What is the difference between mongodb and redis
作业7.15 shell脚本
[GYCTF2020]Ez_ Express
作业7.19 顺序表
在Ubuntu中安装MySQL并创建新用户
Week summary
[GKCTF 2021]easynode
Redis string 结构命令
Click to hide the column in wechat applet, and then click to show it
¥1-1 SWUST oj 941: 有序顺序表的合并操作的实现
【代码源】每日一题 添加括号
OverTheWire-Bandit
Redis list 结构命令
SSM框架整合,简单案例