Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

redis server does not start

Tags:

redis

nosql

Hi I have the following problem with redis,

  • I have installed redis on Ubuntu 12.10 with

    sudo apt-get install redis-server

However, then comes the start of the message server

[6793] February 6 21:46:54 # Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server / path / to / redis.conf' [6793] 6 February 6379 21:46:54 # Opening port: bind: Address already in use

What can I do that the server starts?

like image 884
viv1d Avatar asked Oct 25 '25 17:10

viv1d


2 Answers

You should stop the current instance by using the following command.

/etc/init.d/redis-server stop
like image 129
Siyavash Avatar answered Oct 27 '25 11:10

Siyavash


The default port for Redis, 6793, is already being used, so you'll need to find out what is using that port.

You can check by running: lsof -i :6793

You'll then need to either kill whatever is using that port or specify a different port for Redis using a config file.

like image 42
RayViljoen Avatar answered Oct 27 '25 11:10

RayViljoen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!