当前位置:网站首页>Redis7.0 installation steps
Redis7.0 installation steps
2022-06-26 01:51:00 【Maple Leaf sprite s】
Redis Installation
1. download redis
Connect xftp take redis.gz Upload the file to linux in /opt Under the folder
download xshell and xftp(https://www.xshell.com/zh/free-for-home-school/)
see linux Of ip Address
# see ip Address
$ ifconfig
Connect linux And xftp
If connected xftp Failure , You can restart the network card and reconnecttake radis Upload the compressed package to linux On
take redis.gz Folder of to linux Of /opt Under the folder
2. install gcc
$ yum install gcc
3. Get into /opt Unzip the folder
$ cd /opt
$ tar -zxvf redis-7.0.0.tar.gz
4. Get into redis Directory for installation
cd redis-7.0.0
$ make
$ make install
Default installation directory /usr/local/bin
The contents of the installation are
- redis-benchmark : Performance testing tools , It can run in its own essence , Look at the performance of your book
- redis-check-rdb: Fix the problem dump.rdb file
- redis-sentinel:Redis Cluster use
- redis-check-aof: Fix the problem AOF file
- redis-cli: client , Operation entrance
- redis-server:Redis Server start command
5. Background start redis
The first time it starts , To perform 1 and 2, Then start direct execution 3 and 4.
1. Get into redis The catalog of
take redis.conf Copied to the /etc
cp redis.conf /etc/redis.conf
2. Get into /etc/redis.conf
modify redis.conf Of daemonize take no Change it to yes
vim /etc/redis.conf
3. start-up redis, If you can't start it directly, enter /usr/local/bin start-up
$ redis-server /etc/redis.conf
5. Connect redis
$ redis-cli
6. close
shutdown # Direct execution
perhaps
$ ps -ef | grep redis # see PID
$ kill -9 PID #PID: process ID
边栏推荐
猜你喜欢
The 19th - 22nd week of scientific research training - about tnet and memnet
Sweet girl lisixia was invited to be the little host of the global finals of the sixth season perfect child model
Cross validation -- a story that cannot be explained clearly
Textcnn paper Interpretation -- revolutionary neural networks for sense classification
Abnova丨ACTN4 DNA 探针解决方案
轻轻松松理解指针
23. histogram equalization
readv & writev
Sunshine boy chenhaotian was invited to be the spokesperson for the global finals of the sixth season perfect children's model
Postman断言对应脚本的解释
随机推荐
Sweet cool girl jinshuyi was invited to be the spokesperson for the global finals of the sixth season perfect children's model
Explication du script correspondant à l'assertion Postman
Easyexcel read file
xargs 的作用详解
OTA trigger
recvmsg & sendmsg
GUN make (3) Makefile的规则
Postman接口测试之断言
2022 documenter general basic (documenter) exam simulation 100 questions and online simulation exam
GUN make (7) 执行make
Some summary of model compression
web测试
Procédure de désinstallation complète de la base de données Oracle (pas de capture d'écran)
22. pixel remapping
判定积分给业务带来价值的两个指标
17.11 std:: atomic continuation, std:: async in-depth discussion
Worthington胶原蛋白酶的多类型研究
How to search papers in a certain field
RT thread project engineering construction and configuration - (Env kconfig)
关于strlen与sizeof的区别