Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Windows because of "bind 127.0.0.1" #119

Open
alesnov-clgx opened this issue Aug 28, 2020 · 1 comment
Open

Error on Windows because of "bind 127.0.0.1" #119

alesnov-clgx opened this issue Aug 28, 2020 · 1 comment

Comments

@alesnov-clgx
Copy link

The minimal configuration like
RedisServer redisServer = new RedisServer(6379);
redisServer.start();

results in an error Can't start redis server. Check logs for details.
When I debug AbstractRedisInstance.awaitRedisServerReady(), I see the following error is logged:
[22264] 27 Aug 19:10:56.673 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No such file or directory

If I just try to run redis-server-2.8.19.exe from the command line, with the config file that contains only "bind 127.0.0.1", it produces exactly the same error. Without this config file, redis-server-2.8.19.exe starts.
But it seems impossible to build without this config line, because that's the first thing the build() method does, unconditionally.

@StefanXiepj
Copy link

StefanXiepj commented Jul 20, 2023

This issue because another server already started, you can check it in window os using this command :

$ netstat -ano | grep 6379
  TCP    0.0.0.0:6379           0.0.0.0:0              LISTENING       22508
  TCP    [::]:6379              [::]:0                 LISTENING       22508

and then kill it:

$ taskkill -F -PID "22508"
成功: 已终止 PID 为 22508 的进程。

In mac OS, you can do it like :

ps -ef | grep 6379

and then kill it:

kill -9 <pid>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants