I am trying to install redis, according to the instructions here : https://redis.io/download, but getting the error :
Creating Server TCP listening socket *:6379: bind: Address already in use
when I run command ps -ef|grep redis
i see :
nomi 1168 947 0 2434 ? 00:00:00 grep --color=auto redis
I type kill 1168
where 1168 is my PID and the process is not killed:
"bash: kill: (1168) - No such process"
next time i run the command ps -ef|grep redis
i get diffrent PID number for example :
1170
How can I remove this process?
ps -ef | grep redis
is simply showing the grep command, not aredis
process. By the time you try to kill it, it has already stopped running. It appears that you have some other process listening to power 6379. Trysudo lsof -i -P -n | grep LISTEN
to see what is using that port.sudo lsof -i -P -n | grep 6379
to check if something is attached to that particular socketnetstat -tulpn