当前位置:网站首页>Install redis
Install redis
2022-07-06 01:39:00 【Freezing point contract】
Redis install
Install the package to get
http://redis.io
http://redis.cn/( At home )
ubuntu System installation Redis
sudo apt-get install redis-server
Installation steps
install gcc:
yum install gcc sudo apt-get install gcc
test gcc Is the installation successful
gcc --version
download redis.tar.gz To opt Under the table of contents
decompression
tar -zxvf redis.tar.gz
After decompression, enter Redis Directory using make Command to compile
make
If not ready C Language compiling environment ,make Will report a mistake Jemalloc/jemalloc.h: There is no such document
Solution : function make distclean
install
make install
The installation directory :/usr/local/bin
- redis-benchmark: Performance testing tools , You can run it in your own book , Look at the performance of your book
- redis-check-aof: Fix the problem AOF file ,rdb and aof Later on
- redis-check-dump: Fix the problem dump.rdb file
- redis-sentinel:Redis Cluster use
- redis-server:Redis Server start command
- redis-cli: client , Operation entrance
start-up
Run the command :redis-server( The front desk starts )
Background start : Copy redis.conf Go to other directories
cp /opt/redis/redis.conf /ect/redis.conf
Modify the configuration file , Open background startup
daemonize no -> yes
Start the service :redis-server /etc/redis.conf
Access the service
redis-cli
Test whether the connection with the server is normal , Conduct redis-cli, Carry out orders ping, Show pang It means that the connection is unblocked
ping
Close the service
- redis-cli shutdown Or enter redis-cli Terminal execution shutdown
port 6379 To come from
- According to the person's name :Merz( Mobile phone keyboard 9 GongGe )
- redis Default 16 A database , Similar array subscript from 0 Start , Initial default use 0 Signal library
- Use select dbid To switch databases
Adoption of Technology
memcached: Multithreading + lock
Redis: A single thread + multiple IO Multiplexing technology
memcached Cannot persist data to disk , and redis Sure
边栏推荐
- Paddle framework: paddlenlp overview [propeller natural language processing development library]
- 国家级非遗传承人高清旺《四大美人》皮影数字藏品惊艳亮相!
- Format code_ What does formatting code mean
- 电气数据|IEEE118(含风能太阳能)
- Folio. Ink is a free, fast and easy-to-use image sharing tool
- Threedposetracker project resolution
- Basic process and testing idea of interface automation
- Basic operations of databases and tables ----- unique constraints
- dried food! Accelerating sparse neural network through hardware and software co design
- You are using pip version 21.1.1; however, version 22.0.3 is available. You should consider upgradin
猜你喜欢
[flask] official tutorial -part1: project layout, application settings, definition and database access
Force buckle 9 palindromes
Alibaba canal usage details (pit draining version)_ MySQL and ES data synchronization
3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
Unity | two ways to realize facial drive
Cookie concept, basic use, principle, details and Chinese transmission
Superfluid_ HQ hacked analysis
leetcode刷题_验证回文字符串 Ⅱ
[flask] official tutorial -part3: blog blueprint, project installability
Mongodb problem set
随机推荐
[detailed] several ways to quickly realize object mapping
Huawei Hrbrid interface and VLAN division based on IP
ctf. Show PHP feature (89~110)
National intangible cultural heritage inheritor HD Wang's shadow digital collection of "Four Beauties" made an amazing debut!
Paddle框架:PaddleNLP概述【飛槳自然語言處理開發庫】
SPIR-V初窺
3D model format summary
【全網最全】 |MySQL EXPLAIN 完全解讀
晶振是如何起振的?
False breakthroughs in the trend of London Silver
[机缘参悟-39]:鬼谷子-第五飞箝篇 - 警示之二:赞美的六种类型,谨防享受赞美快感如同鱼儿享受诱饵。
NLP fourth paradigm: overview of prompt [pre train, prompt, predict] [Liu Pengfei]
Maya hollowed out modeling
阿里测开面试题
Luo Gu P1170 Bugs Bunny and Hunter
Folio.ink 免费、快速、易用的图片分享工具
selenium 元素定位(2)
module ‘tensorflow. contrib. data‘ has no attribute ‘dataset
Unity VR resource flash surface in scene
A Cooperative Approach to Particle Swarm Optimization