当前位置:网站首页>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
finalshell
Upload - 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.config
file , The inside ofdaemonize
Change 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.config
file , 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.config
Found in filebind 127.0.0.1
, Just comment it out .
2、Linux System
- Change Password : stay
redis.conf
File 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 password
Connect - 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-ports
Check whether the port is opened successfully , Now other servers can connect to this redis 了 .
边栏推荐
- 详解指针进阶2
- socket. IO build distributed web push server
- How to use annotations such as @notnull to verify and handle global exceptions
- Introduction series of software reverse cracking (1) - common configurations and function windows of xdbg32/64
- VC下Unicode和ANSI互转,CStringW和std::string互转
- 几种常见IO模型的原理
- 互斥对象与临界区的区别
- Puppet automatic operation and maintenance troubleshooting cases
- The difference between mutually exclusive objects and critical areas
- Create gradle project
猜你喜欢
Jvm-09 byte code introduction
函数栈帧的创建和销毁
CString的GetBuffer和ReleaseBuffer使用说明
使用AUR下载并安装常用程序
Popular understanding of decision tree ID3
Detailed pointer advanced 1
Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"
App mobile terminal test [5] file writing and reading
如何使用 @NotNull等注解校验 并全局异常处理
关于网页中的文本选择以及统计选中文本长度
随机推荐
Semi supervised learning
秒殺系統3-商品列錶和商品詳情
A Fei's expectation
[系统安全] 四十三.Powershell恶意代码检测系列 (5)抽象语法树自动提取万字详解
do{}while()的妙用
String functions that you need to know
How are integer and floating-point types stored in memory
Jvm-05-object, direct memory, string constant pool
How to use annotations such as @notnull to verify and handle global exceptions
Detailed explanation of string function and string function with unlimited length
找映射关系
坚持输出需要不断学习
Puppet automatic operation and maintenance troubleshooting cases
Detailed pointer advanced 2
Location of software installation information and system services in the registry
分布式事务(Seata) 四大模式详解
Microservice sentinel flow control degradation
Microservice API gateway
Go language self-study series | if else if statement in golang
Approval process design