What are these errors in Redis?

Hello, help a beginner solve the problem with Redis

Run the command redis-server
In response to receiving
# Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
* Max number of open files set to 10032
# Opening port 6379: bind: Address already in use

How to solve these errors?
Thanks in advance
July 2nd 19 at 17:45
1 answer
July 2nd 19 at 17:47
Well, actually what he says.
You complain that he was not informed what configuration file with server settings to use.
He says that since it is not said where to take the settings, it will use the default settings.
And then finds that the port 6379 is already busy doing something else (probably the same server that is already running).
To solve these error please tell us what operating system, there are data manipulation?
If you look at netstat-natp

tcp 0 0 127.0.0.1:44461 127.0.0.1:6379 TIME_WAIT -
tcp 0 0 127.0.0.1:44488 127.0.0.1:6379 TIME_WAIT -
tcp 0 0 127.0.0.1:44590 127.0.0.1:6379 TIME_WAIT - - alexanne26 commented on July 2nd 19 at 17:50
what to do with it?( - alexanne26 commented on July 2nd 19 at 17:53
view running if You have redis-server already
ps ax | grep redis - marie.Gutmann commented on July 2nd 19 at 17:56
and TIME_WAIT mean that some process on Your machine has recently created a connection to the port 6379 - marie.Gutmann commented on July 2nd 19 at 17:59
And look who opened port 6379
netstat-lptun - marie.Gutmann commented on July 2nd 19 at 18:02
:

1802 ? Ssl 0:19 /usr/local/bin/redis-server /etc/redis/6379.conf
8123 pts/0 S+ 0:00 grep --color=auto redis

tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 1802/redis-server - alexanne26 commented on July 2nd 19 at 18:05
: Congratulations, You are already running redis server, why run it again?
to edit the server configuration edit the file /etc/redis/6379.conf
To control (restart/start/Stop) the server, depending on the OSes, like so
service redis-server stop
service redis-server start
service redis-server restart
But depending on the OS command may be others, that's why I asked what OS - marie.Gutmann commented on July 2nd 19 at 18:08
:
I have tried re-running Redis? Operating system is Ubuntu, so I'm a noob) Thanks, that helped. - alexanne26 commented on July 2nd 19 at 18:11
: Well then, it seems like the service command
redis as a service might be called differently
to list all daemons chkconfig
next you are going to find redis
like so
chkconfig |grep redis
I drive a demon called redis redis_6379
to all commands you may need
sudo command
if You are under the root - marie.Gutmann commented on July 2nd 19 at 18:14

Find more questions by tags RedisLinux