Musa Hamada
Musa Hamada

Reputation: 1

Port 6379 is occupied by a process with PID '-' in wsl2

I want to initiate redis-server on port 6379 but i got this: Could not create server TCP listening socket :6379: bind: Address already in use And here is the output of netstat -tunlp : tcp 0 0 127.0.0.1:6379 0.0.0.0: LISTEN - How to kill this process ...?

Upvotes: -1

Views: 1507

Answers (2)

geezee
geezee

Reputation: 1

This works for me:

sudo systemctl disable redis

restart wsl

sudo systemctl start redis-server.service

Upvotes: 0

tts.035
tts.035

Reputation: 41

Try to restart WSL by using wsl --shutdown and then try again.

Or maybe some windows app on your computer is using this port and is preventing Linux from getting information about this process.

Upvotes: 2

Related Questions