当前位置:网站首页>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 了 .
边栏推荐
- How idea starts run dashboard
- 《微服务设计》读书笔记(上)
- Subclass hides the function with the same name of the parent class
- leetcode_ Power of Four
- Using multipleoutputs to output multiple files in MapReduce
- Markdown file titles are all reduced by one level
- CString在多线程中的问题
- Driver and application communication
- WinDbg analysis dump file
- WinDbg分析dump文件
猜你喜欢

VS2017通过IP调试驱动(双机调试)

Create gradle project

Halcon and WinForm study section 1

Visual upper system design and development (Halcon WinForm) -5 camera

Halcon and WinForm study section 2

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

整形和浮点型是如何在内存中的存储

详解指针进阶2

Popular understanding of ovo and ovr

CString的GetBuffer和ReleaseBuffer使用说明
随机推荐
Final review points of human-computer interaction
Automatic generation of client code from flask server code -- Introduction to flask native stubs Library
Creation and destruction of function stack frames
Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"
子类隐藏父类的同名函数
Redis在Windows以及Linux系统下的安装
百度智能云助力石嘴山市升级“互联网+养老服务”智慧康养新模式
Srs4.0+obs studio+vlc3 (environment construction and basic use demonstration)
CString在多线程中的问题
Introduction series of software reverse cracking (1) - common configurations and function windows of xdbg32/64
突破100万,剑指200万!
Microservice - fuse hystrix
Unity功能——Unity离线文档下载及使用
Please be prepared to lose your job at any time within 3 years?
QT use qzxing to generate QR code
Go language self-study series | golang switch statement
Go语言自学系列 | golang中的if else if语句
互斥对象与临界区的区别
Get the executable path through the process PID (queryfullprocessimagename)
秒杀系统2-Redis解决分布式Session问题