Hussein Salman
Hussein Salman

Reputation: 8246

Redis on windows server: no config file specified

I installed redis using chocolaty. Then, It was working normally, however I cannot start it again.

Running redis-server: reports a problem in config file

enter image description here

Specifying Config File

enter image description here

Running the command:

enter image description here

But the problem persists, if I try connecting to the client:

enter image description here

Upvotes: 6

Views: 25152

Answers (5)

Mohamed Beshri Amer
Mohamed Beshri Amer

Reputation: 361

I had the same problem in Windows 10 and Windows 11 I am using Angular , Redius , ASP.NET Core sometime the Port is used so I just write these two commands in PoweShell on Adminstration Mode "run as administrator"

net stop winnat
net start winnat

Upvotes: 0

redis-server --port 6380 --slaveof 127.0.0.1 6379 it happened when i tried it too

Upvotes: 0

sathishkumar
sathishkumar

Reputation: 1816

You could follow this page https://redis.io/topics/config

Try to start with the below command

redis-server --port 6380 --slaveof 127.0.0.1 6379

Upvotes: 15

alaboudi
alaboudi

Reputation: 3423

I think you have to run redis-server.exe redis.windows.conf in your command prompt and it will work. I think the windows version needs you to specify the config file for it to work (which you can see is in the same directory)

Upvotes: 5

Related Questions