当前位置:网站首页>Redis installation under windows and Linux systems
Redis installation under windows and Linux systems
2022-07-03 15:51:00 【I have no ice to fall】
One 、redis install
1、Windows System installation
- Installation package download , link :
https://pan.baidu.com/s/13A1mDApAct31bYyRXOfaNg?pwd=l7kq
Extraction code :l7kq - decompression
2、Linux System installation
- Installation package download
https://download.redis.io/releases/, Or I have Baidu online disk :
link :https://pan.baidu.com/s/1Z0LGJewCnVQidZLbTixPzQ?pwd=qxlv
Extraction code :qxlv - Upload the installation package to Linux System , I use it
finalshellUpload
- Unzip the installation package
tar -zxvf redis-4.0.0.tar.gz -C /usr/local - Install build dependency
yum install gcc-c++ - compile redis, Enter the redis Below directory , Execute command compilation :
make - Into it src Catalog , perform :
make install
Two 、 Start and connect
1、Windows System
- start-up : Click on redis-server.exe, Or the command line goes to redis Under the table of contents , perform redis-server
- Connect : Click on redis-cli.exe, Or command line entry redis Under the table of contents , perform redis-cli
2、Linux System
- Start the service : Enter redis Of src Under the table of contents , Carry out orders :
./redis-server. After installation, the service runs in the foreground by default , Configure the background to run in redis and src The peer directory has aredis.configfile , The inside ofdaemonizeChange the parameter to yes - Connect : Enter redis Of src Under the table of contents , Carry out orders :
./redis-cli
3、 ... and 、 Modify the permissions
1、Windows System
- Change Password : open
redis.windows.configfile , findrequirepass foobared, End its comments , Put the back of foobared Replace it with your password . Or connection redis, Enter the command :config set requirepass 1234, appear OK The modification was successful , Connect later redis Enter command when :redis-cli -a password. - Open connection permission : stay
redis.windows.configFound in filebind 127.0.0.1, Just comment it out .
2、Linux System
- Change Password : stay
redis.confFile to findrequirepass foobared, End its comments , Put the back of foobared Replace it with your password . First turn off all services and then restart the services , By order :redis-cli -a passwordConnect - Open connection permission : Found in configuration file :
bind 127.0.0.1, Comment it out , Because no comment represents the default local connection . Restart the service , If you still cannot connect, the port may not be open , to open up 6379 port :firewall-cmd --zone=public --add-port=6379/tcp --permanent, Refresh :firewall-cmd --reload, Can pass :firewall-cmd --zone=public --list-portsCheck whether the port is opened successfully , Now other servers can connect to this redis 了 .
边栏推荐
- 需要知道的字符串函数
- 秒杀系统1-登录功能
- Wechat payment -jsapi: code implementation (payment asynchronous callback, Chinese parameter solution)
- Jvm-02-class loading subsystem
- Go language self-study series | if else statement in golang
- Please be prepared to lose your job at any time within 3 years?
- 秒杀系统3-商品列表和商品详情
- Semi supervised learning
- Jvm-04-runtime data area heap, method area
- 详解指针进阶2
猜你喜欢

QT use qzxing to generate QR code

找映射关系

C language brush questions ~leetcode and simple questions of niuke.com

Visual upper system design and development (Halcon WinForm) -5 camera
![[200 opencv routines] 217 Mouse interaction to obtain polygon area (ROI)](/img/04/460734209ec315c5c02cb3fae4bf0e.png)
[200 opencv routines] 217 Mouse interaction to obtain polygon area (ROI)

Unityshader - materialcapture material capture effect (Emerald axe)

Reading notes of "micro service design" (Part 2)

从 flask 服务端代码自动生成客户端代码 -- flask-native-stubs 库介绍

Unity function - unity offline document download and use

Srs4.0+obs studio+vlc3 (environment construction and basic use demonstration)
随机推荐
About text selection in web pages and counting the length of selected text
Microservice - declarative interface call openfeign
QT common sentence notes
Three dimensional reconstruction of deep learning
找映射关系
Use percent sign in CString
Go语言自学系列 | golang中的if else语句
Reading notes of "micro service design" (Part 2)
Microservice - fuse hystrix
Subclass hides the function with the same name of the parent class
VS2017通过IP调试驱动(双机调试)
互斥对象与临界区的区别
Reentrantlock usage and source code analysis
驱动与应用程序通信
一些事情的反思
CString的GetBuffer和ReleaseBuffer使用说明
Redis high availability and persistence
CString在多线程中的问题
Download and install common programs using AUR
Detailed explanation of string function and string function with unlimited length