当前位置:网站首页>Redis error reporting and common configurations
Redis error reporting and common configurations
2022-06-22 22:23:00 【Catfish MINT_ she】
install redis
Download link : If the download is unsuccessful, you can download it on the official website by yourself https://download.redis.io/releases
wget https://download.redis.io/releases/redis-6.2.1.tar.gz?_ga=2.213148948.1866727870.1617073678-1341157963.1617073678
--2021-03-30 11:19:41-- https://download.redis.io/releases/redis-6.2.1.tar.gz?_ga=2.213148948.1866727870.1617073678-1341157963.1617073678
Check to see if startup succeeded
ps -aux | grep redis
netstat -nltp
Test whether you can connect to redis The server
redis The architecture is C/S framework , In our execution redis-server When the server has been started , If you want to test whether you can connect to the server, you can use the following command to test :
redis-cli // This is a redis The client connection commands provided to us
To configure redis
Modify the port :
{
Own actual installation path }/redis/redis.conf
port 6379
Change Password :
{
Own actual installation path }/redis/redis.conf
Before the change :# requirepass foobared
After modification :requirepass admin123 // Change the password you want to set
More settings IP You can visit :
Method 1 : Can be directly annotated bind
Method 2 :bind 0.0.0.0
Settings section IP Accessible :192.168.2.39 192.168.2.38
After the above settings are completed, you need to set another step :
protected-mode no # take yes Modified into no
Report a mistake :The program ‘redis-server’ is currently not installed. To run ‘redis-server’ please ask your administrator to install the package ‘redis-server’
After installation redis after , Enter the command redis-server Times wrong :The program 'redis-server' is currently not installed. To run 'redis-server' please ask your administrator to install the package 'redis-server'
terms of settlement :
Execute the following commands before starting :sudo make install
Cause of error :redis-server The installation did not succeed , The official website recommends that you execute the above command before starting sudo make install
Error reporting II :Could not connect to Redis at 127.0.0.1:0: Connection refused
The default password is not supported after changing the password redis-cli Connect to the server , Need a command :
redis-cli -p Set your own port
Such as :redis-cli -p 11489
Error reporting 3 :(error) NOAUTH Authentication required.
After setting the password and port , Input redis-cli -p 11489 after , Will let us enter our own user name for authentication , If the authentication is not performed, the above error will be reported :
Screenshot of error reporting :
terms of settlement :
127.0.0.1:10419> auth "xxx" // Specific server login
OK
restart redis
redis-server redis.conf
redis-conf : As redis Server side configuration file , Relevant information can be configured here , Such as : password 、 Port, etc
redis-server: Server start command
边栏推荐
- 自监督表征预训练之掩码图像建模:CAE 及其与 MAE、BEiT 的联系
- 【路径规划】第一周: 大杂烩
- Implementation of depth traversal adjacency table in Figure 6-7
- Lesson 033: exception handling: you can't always be right 2 | after class test questions and answers
- 欧洲的龙之城|国家地理全球最浪漫最安全的目的地
- SPA项目开发之CRUD+表单验证
- pycharm 配置远程连接服务器开发环境
- Redis-分布式锁
- RealNetworks vs. Microsoft: the battle in the early streaming media industry
- 【几何法视觉】4.2 分段线性变换
猜你喜欢

Redis core technology and practice: learning summary directory

6-6 图的广度遍历-邻接矩阵实现

6-7 图的深度遍历-邻接表实现

勒索病毒横行下设备该如何进行加密防护

【李沐】 如何读论文【论文精读】

Microsoft edge browser will support network speed measurement, built-in calculator and unit conversion tool

【ROS 入门学习 】CmakeList.txt 和Packages.xml释义

RapidEye快鸟、SPOT卫星遥感影像数据

SPA项目开发之登录注册

There are 15 necessary knowledge points for the second level cost engineer before the exam! I wish you success!
随机推荐
Niuke's height in the 52nd monthly race B (thinking problem simulation problem)
Implementation of depth traversal adjacency matrix of figure 6-5
自监督表征预训练之掩码图像建模:CAE 及其与 MAE、BEiT 的联系
【几何法视觉】4.2 分段线性变换
【路径规划】第一周: 大杂烩
Microsoft edge browser will support network speed measurement, built-in calculator and unit conversion tool
Analysis of open API design specification
Task management of embedded development foundation (thread management)
[recommended by Zhihu knowledge master] castle in UAV - focusing on the application of UAV in different technical fields
SPA项目开发之CRUD+表单验证
≥ server2012r2 system, disable some planned tasks of the system
6-1 operation set of binary search tree
Install MySQL for Linux (package succeeded!!)
[GWCTF 2019]mypassword XSS
RapidEye快鸟、SPOT卫星遥感影像数据
Cryptography series: certificate format representation of PKI X.509
Lesson 030: file system: introduce a big thing | after class test questions and answers
A case of 94 SQL optimization (the writing method used is often rejected)
LinkedList 源码解析
[ongoing update...] 2021 National Electronic Design Competition for college students (III) interpretation of the anonymous four axis space developer flight control system design