Reputation: 349
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?
Upvotes: 4
Views: 11585
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
Reputation: 472
You should stop the current instance by using the following command.
/etc/init.d/redis-server stop
Upvotes: 3
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