当前位置:网站首页>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
边栏推荐
- 【已解决】如何生成漂亮的静态文档说明页
- Basic operations of databases and tables ----- unique constraints
- Spir - V premier aperçu
- 3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
- Leetcode 208. Implement trie (prefix tree)
- selenium 等待方式
- Unity | two ways to realize facial drive
- 阿里测开面试题
- [detailed] several ways to quickly realize object mapping
- Unity VR resource flash surface in scene
猜你喜欢
How to upgrade kubernetes in place
NiO related knowledge (II)
02.Go语言开发环境配置
Ordinary people end up in Global trade, and a new round of structural opportunities emerge
Cookie concept, basic use, principle, details and Chinese transmission
Numpy array index slice
selenium 等待方式
C web page open WinForm exe
普通人下场全球贸易,新一轮结构性机会浮出水面
Leetcode skimming questions_ Verify palindrome string II
随机推荐
Basic operations of database and table ----- delete data table
[Jiudu OJ 09] two points to find student information
MUX VLAN configuration
【详细】快速实现对象映射的几种方式
Basic operations of databases and tables ----- non empty constraints
[technology development -28]: overview of information and communication network, new technology forms, high-quality development of information and communication industry
Leetcode 剑指 Offer 59 - II. 队列的最大值
Unity VR resource flash surface in scene
ClickOnce does not support request execution level 'requireAdministrator'
Win10 add file extension
Flutter Doctor:Xcode 安装不完整
【SSRF-01】服务器端请求伪造漏洞原理及利用实例
selenium 等待方式
What is weak reference? What are the weak reference data types in ES6? What are weak references in JS?
阿裏測開面試題
How does the crystal oscillator vibrate?
Mathematical modeling learning from scratch (2): Tools
Huawei Hrbrid interface and VLAN division based on IP
Ali test open-ended questions
Paddle framework: paddlenlp overview [propeller natural language processing development library]