当前位置:网站首页>Error when redis is started: could not create server TCP listening socket *: 6379: bind: address already in use - solution
Error when redis is started: could not create server TCP listening socket *: 6379: bind: address already in use - solution
2022-06-26 14:29:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
The last hint :6379 The address is already in use (6379 yes redis Default port )
As shown in the figure, I input the instructions myself ./redis-server Show Redis The service has been started
1) Three parts of normal solutions
① Find by command redis process , See all the process details about it .
ps -ef | grep redisroot 3086 1 0 Apr24 ? 00:00:07 ./bin/redis-server *:6379
root 3531 3467 0 01:00 pts/0 00:00:00 grep -i redis Pictured above : The process number is 3086 That is to say redis The server
② Use kill Kill the process
kill -9 3086 ③ Enter the restart command
./redis-server2) If you can't find the same query as me redis Process number , Port number occupied , Input command does not respond ,
problem ①./redis-server Cannot be opened Redis . Display occupied ; problem ②shutdown It can't be closed ; problem ③ If the password is entered correctly, it will always show that there is a lack of authority recognition ;
How to solve ?how?
① Restart the cloud server After restart
It can be used normally
Expansion and supplement :lsof command , usage :lsof -i: Port number , such as redis Default port number 6379, Just use
lsof -i:6379lsof(list open files) Is a list of the current system open file tools . stay linux In the environment , Everything exists in the form of documents , Files provide more than just regular data access , You can also access network connections and hardware .
Love life, love life, love yourself
2020.02.22
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/133825.html Link to the original text :https://javaforall.cn
边栏推荐
- One article of the quantification framework backtrader read observer
- [ahoi2005] route planning
- [cqoi2015] task query system
- Server create virtual environment run code
- ArcGIS secondary development method - layer related operations (add, modify)
- C language | the difference between heap and stack
- Setup instance of layout manager login interface
- Bug STL string
- Experience sharing of mathematical modeling: comparison between China and USA / reference for topic selection / common skills
- fileinput.js php,fileinput
猜你喜欢

9 regulations and 6 prohibitions! The Ministry of education and the emergency management department jointly issued the nine provisions on fire safety management of off campus training institutions

常用控件及自定义控件

New specification of risc-v chip architecture

RISC-V 芯片架构新规范

How to convert data in cell cell into data in matrix

A must for programmers, an artifact utools that can improve your work efficiency n times

Leaflet load day map

ThreadLocal giant pit! Memory leaks are just Pediatrics

量化框架backtrader之一文读懂observer观测器

Codeforces Global Round 21A~D
随机推荐
Sword finger offer 05.58 Ⅱ string
Educational Codeforces Round 117 (Rated for Div. 2)E. Messages
布局管理器~登录界面的搭建实例
Introduction to granular computing
BP neural network for prediction
Online bull Blogger
Gartner 2022年顶级战略技术趋势报告
Record: why is there no lightning 4 interface graphics card docking station and mobile hard disk?
近期比较重要消息
Complete diagram / Euler loop
Matlab programming related knowledge
Bug STL string
Pychar remotely connects to the server to run code
From Celsius to the three arrows: encrypting the domino of the ten billion giants, and drying up the epic liquidity
Flex & Bison 开始
C language | file operation and error prone points
First k large XOR value problem
Installation tutorial about origin2019
MySQL | basic commands
[cqoi2015] task query system