当前位置:网站首页>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
边栏推荐
- About error 2003 (HY000): can't connect to MySQL server on 'localhost' (10061)
- NiO related knowledge (II)
- [ssrf-01] principle and utilization examples of server-side Request Forgery vulnerability
- Docker compose配置MySQL并实现远程连接
- Paddle框架:PaddleNLP概述【飛槳自然語言處理開發庫】
- Reasonable and sensible
- 晶振是如何起振的?
- 2022 Guangxi Autonomous Region secondary vocational group "Cyberspace Security" competition and its analysis (super detailed)
- 【详细】快速实现对象映射的几种方式
- Redis守护进程无法停止解决方案
猜你喜欢
leetcode刷题_平方数之和
[机缘参悟-39]:鬼谷子-第五飞箝篇 - 警示之二:赞美的六种类型,谨防享受赞美快感如同鱼儿享受诱饵。
leetcode刷题_验证回文字符串 Ⅱ
leetcode刷题_反转字符串中的元音字母
Folio.ink 免费、快速、易用的图片分享工具
UE4 unreal engine, editor basic application, usage skills (IV)
Mongodb problem set
leetcode-两数之和
Accelerating spark data access with alluxio in kubernetes
Basic operations of databases and tables ----- non empty constraints
随机推荐
干货!通过软硬件协同设计加速稀疏神经网络
[flask] official tutorial -part1: project layout, application settings, definition and database access
ClickOnce 不支持请求执行级别“requireAdministrator”
Comments on flowable source code (XXXV) timer activation process definition processor, process instance migration job processor
[network attack and defense training exercises]
[技术发展-28]:信息通信网大全、新的技术形态、信息通信行业高质量发展概览
selenium 元素定位(2)
[flask] official tutorial -part2: Blueprint - view, template, static file
NumPy 数组索引 切片
竞价推广流程
【SSRF-01】服务器端请求伪造漏洞原理及利用实例
Leetcode3. Implement strstr()
Leetcode 208. Implement trie (prefix tree)
[ssrf-01] principle and utilization examples of server-side Request Forgery vulnerability
Paddle框架:PaddleNLP概述【飛槳自然語言處理開發庫】
安装Redis
Initialize MySQL database when docker container starts
Open source | Ctrip ticket BDD UI testing framework flybirds
Threedposetracker project resolution
[solved] how to generate a beautiful static document description page