Running redis in Linux shows Culd not create server Tcp listening socke*:6379: bind: Address already in use?

Problem Description:

When running redis-server on Ubuntu, the time: Culd not create server Tcp listening socke*:6379: bind: Address already in use The solution is as follows:

solution:

1. Find the relevant process information of the redis process through the instructions given below

ps -ef | grep redis

 The query results are as follows:

2. Use the following kill command to kill the relevant process, take the first step as an example: <PID> in the figure below is 94937, 952473, etc.

kill -9 <PID> 

The execution results are as follows:

Command ps -ef | grep redis again to find the relevant process information of the redis process 

As shown in the figure above, the relevant process information has been killed. Then restart the redis service.

 3. After the above steps are completed, restart the redis-server service

As shown above, it proves that the redis-server service has been started successfully! 

Guess you like

Origin blog.csdn.net/weixin_52890053/article/details/131784643