当前位置:网站首页>Linux redis-6.2.6 stand alone deployment
Linux redis-6.2.6 stand alone deployment
2022-07-21 20:11:00 【Two little ones】
Catalog
2. The following error occurs during compilation
Preface
Redis Yes 4 Patterns :
Pattern | advantage | shortcoming |
stand-alone | Simple deployment | Not very reliable 、 Capacity of the bottleneck 、QPS bottleneck |
Master slave copy | More reliable , Read / write separation | Fault recovery is complex , The write and save of the main database is limited by a single machine |
Sentinel mode | Cluster deployment is simple , High reliability | The principle is complicated ,slave There is a waste of resources , Can't solve the problem of separation of reading and writing |
Cluster pattern | Data dynamic storage solt, Scalable , High availability | The client dynamically perceives back-end changes , Batch operation supports querying |
One 、 download 、 compile
# download
wget http://download.redis.io/releases/redis-6.2.6.tar.gz
# decompression
tar xzf redis-6.2.6.tar.gz
# compile
cd redis-6.2.6
make
1. Possible exceptions :
1.make cc: Command not fund
reason : System not installed gcc Environmental Science
programme : install gc, Recompile after installation
yum install gcc
2. The following error occurs during compilation
reason :gcc Version is too low
programme : upgrade gcc edition
# View version
gcc -v
# upgrade
yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash
Two 、 To configure
vi redis.conf
bind 0.0.0.0 # Set the bound host ip,0.0.0.0 Listen to all addresses
protected-mode no # Turn off safe mode , Allow Internet access
daemonize yes # Background start
3、 ... and 、 start-up
./redis-server ../redis.conf
summary
That's all redis Stand alone deployment mode , I will update another one when I have a chance 3 Deployment methods of .
边栏推荐
- Development tools supporting data + code generation, yyds
- QT notes - qmetaenum class
- 解决Oracle数据库查询单表排序顺序错误问题之一
- 原子引用解决ABA问题
- Rewrite hashcode() to compare whether the classes are the same
- 10 lines of code to realize wechat applet payment function, and use applet cloud development to realize applet payment function (including source code
- 14. 你能说说进程与线程的区别吗
- The JSON tool converts objects to JSON format strings
- Automatic packet capturing tool web scraper
- Okaleido tiger NFT is about to log in to binance NFT platform, and the future market continues to be optimistic
猜你喜欢
How to choose sentinel vs. hystrix current limiting?
Iwemeta: Shi Yuzhu's golden sauce wine: OEM factories have been shut down. Who is producing it?
@Scheduled 定时任务详解
Share the experience of big factories, come quickly
解决Oracle数据库查询单表排序顺序错误问题之一
1451 - Cannot delete or update a parent row 具有多个外键约束 删除子表数据行的问题
Reasons why fastjson @jsonfield format does not take effect
Trigonometric formula of 3D mathematics
QT notes - qmetaenum class
JSON工具类
随机推荐
Lst list deletion and modification
Metauniverse iwemeta: the new cover of time magazine, metauniverse will change everything
(4) Transactions
MySQL之DQL(数据查询语言)- 表连接查询
Wechat public number Development Access, Application for Test number for Local Development Using Wechat public Platform
uniapp开发app解决uni.pageScrollTo不生效
Docker installation mysql8 in CentOS 8
《构建之法》笔记---第六章 敏捷流程
微信公众号开发接入,利用微信公众平台申请测试号进行本地开发
MySql update语句或者delete语句 where条件没走索引会锁表
Database design introduction to database system (Fifth Edition)
MATLAB 自然样条函数(Spline,非MATLAB内置函数)
2022.7.21DAY611
Pycharm创建SQLite数据库
MySQL DML (data manipulation language)
URL 和 URI
自动抓包工具 web scraper
解决:Connections could not be acquired from the underlying database!
ES6的数组、对象拷贝
Unity ECS test demo