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.
Find the port that its running on.. In my case..
And then close the port manually
Re-run redis
I read the documentation on http://www.redis.io , I opened the
redis.conf
file to configure theredis-server
, its located at/etc/redis/redis.conf
Instead of sublime editor you can use editor of your choice, viz. nano, vi, emacs, vim, gedit.
In this file I uncommented the
#bind 127.0.0.1
line. Hence, instead of0.0.0.0:6379
now its127.0.0.1:6379
Restart the redis server
It will state, The server is now ready to accept connections on port
6379
This will put your server up, For any more detailed configuration and settings you can follow this redis-server on ubuntu
for me, after lots of problems, this solved my issue:
after finding redis, kill it!
I solved this problem on Mac by just typing redis-cli shutdown, after this just re open the terminal and type redid-server and it will work .
I prefer to use the command param
-ef
,the
-ef
meansthen kill the pid