当前位置:网站首页>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 gcctest gcc Is the installation successful
gcc --versiondownload redis.tar.gz To opt Under the table of contents
decompression
tar -zxvf redis.tar.gzAfter decompression, enter Redis Directory using make Command to compile
makeIf 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 installThe 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.confModify the configuration file , Open background startup
daemonize no -> yesStart 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
边栏推荐
- Code Review关注点
- Cadre du Paddle: aperçu du paddlelnp [bibliothèque de développement pour le traitement du langage naturel des rames volantes]
- ClickOnce does not support request execution level 'requireAdministrator'
- Ali test open-ended questions
- SPIR-V初窺
- Leetcode1961. Check whether the string is an array prefix
- dried food! Accelerating sparse neural network through hardware and software co design
- How to get the PHP version- How to get the PHP Version?
- False breakthroughs in the trend of London Silver
- Folio.ink 免费、快速、易用的图片分享工具
猜你喜欢

XSS learning XSS lab problem solution

【SSRF-01】服务器端请求伪造漏洞原理及利用实例
![NLP fourth paradigm: overview of prompt [pre train, prompt, predict] [Liu Pengfei]](/img/11/a01348dbfcae2042ec9f3e40065f3a.png)
NLP fourth paradigm: overview of prompt [pre train, prompt, predict] [Liu Pengfei]

Electrical data | IEEE118 (including wind and solar energy)

Basic operations of databases and tables ----- primary key constraints

National intangible cultural heritage inheritor HD Wang's shadow digital collection of "Four Beauties" made an amazing debut!

Threedposetracker project resolution

Open source | Ctrip ticket BDD UI testing framework flybirds

C web page open WinForm exe

Huawei Hrbrid interface and VLAN division based on IP
随机推荐
ORA-00030
Unity VR solves the problem that the handle ray keeps flashing after touching the button of the UI
Force buckle 1020 Number of enclaves
selenium 元素定位(2)
Loop structure of program (for loop)
竞价推广流程
【全网最全】 |MySQL EXPLAIN 完全解读
Crawler request module
leetcode刷题_平方数之和
500 lines of code to understand the principle of mecached cache client driver
Redis-字符串类型
干货!通过软硬件协同设计加速稀疏神经网络
CocoaPods could not find compatible versions for pod 'Firebase/CoreOnly'
A picture to understand! Why did the school teach you coding but still not
PHP error what is an error?
[flask] official tutorial -part2: Blueprint - view, template, static file
Mathematical modeling learning from scratch (2): Tools
Basic operations of databases and tables ----- primary key constraints
A glimpse of spir-v
internship:项目代码所涉及陌生注解及其作用