viv1d
viv1d

Reputation: 349

redis server does not start

Hi I have the following problem with redis,

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?

Upvotes: 4

Views: 11585

Answers (4)

Pratik Charwad
Pratik Charwad

Reputation: 737

I would recommend you to check the log file for the troubleshooting possible errors. Usually located at /var/log/redis/redis.log

Upvotes: 0

不辞长做岭南人
不辞长做岭南人

Reputation: 481

pidof redis-server can get you the process id of redis-server; OR lsof -i:6379 can get you the process id of the running instance with the default listening port 6379.

Upvotes: 0

Siyavash
Siyavash

Reputation: 472

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

/etc/init.d/redis-server stop

Upvotes: 3

RayViljoen
RayViljoen

Reputation: 1331

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.

Upvotes: 1

Related Questions