redis-server not starting in ubuntu14.04: Bind address already in use

1,074 views
Skip to first unread message

Arun Singh

unread,
Oct 5, 2015, 6:28:03 AM10/5/15
to Redis DB
I started redis server on ubuntu by typing this on terminal: $redis-server

This results in following > http://paste.ubuntu.com/12688632/

    aruns ~ $ redis-server
    27851:C 05 Oct 15:16:17.955 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
    27851:M 05 Oct 15:16:17.957 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
    27851:M 05 Oct 15:16:17.957 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
    27851:M 05 Oct 15:16:17.958 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
    27851:M 05 Oct 15:16:17.958 # Creating Server TCP listening socket *:6379: bind: Address already in use

How can I fix this problem, it there any manual or automated process to fix this binding ? In which file do I have to make changes.



For more Info on ports in use: see the output of "netstat -tulpen" > http://pastebin.com/vXBsKgi3

Jan-Erik Rediger

unread,
Oct 5, 2015, 6:59:53 AM10/5/15
to redi...@googlegroups.com
As stated in IRC already: something is already running on port 6379
(another Redis instance?)

Find out the pid (and name) with "netstat -tlpn" (you probably need to
run it as root).
Then check what application it is and if you're sure you don't use it,
stop it or kill it.
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages