Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install redis as windows service

I've just installed redis on windows with MSOpenTech port. Everything is fine but the windows service. In order to run cmd, I need to create Redis command line arguments which I don't know how to achieve.

How can I solve this problem?

This is the instruction:

Running Redis as a Service

In order to better integrate with the Windows Services model, new command line arguments have been introduced to Redis. These service arguments require an elevated user context in order to connect to the service control manager. If these commands are invoked from a non-elevated context, Redis will attempt to create an elevated context in which to execute these commands. This will cause a User Account Control dialog to be displayed by Windows and may require Administrative user credentials in order to proceed.

Installing the Service

--service-install 

This must be the first argument on the redis-server command line. Arguments after this are passed in the order they occur to Redis when the service is launched. The service will be configured as Autostart and will be launched as "NT AUTHORITY\NetworkService". Upon successful installation a success message will be displayed and Redis will exit.

This command does not start the service.

For instance:

redis-server --service-install redis.windows.conf --loglevel verbose 

Uninstalling the Service

--service-uninstall  
like image 210
user3925697 Avatar asked Oct 06 '14 09:10

user3925697


People also ask

Can you install Redis on Windows?

You can run Redis on Windows 10 using Windows Subsystem for Linux(a.k.a WSL2). WSL2 is a compatibility layer for running Linux binary executables natively on Windows 10 and Windows Server 2019.

How do I know if Redis is installed on Windows?

At the end, if you want to know that it's installed and working fine, you can download the Redis Desktop Manager (github.com/uglide/RedisDesktopManager or via Chocolatey). By default, the Host is localhost running on port 6379.


1 Answers

In dir where you installed redis instead of

redis-server --service-install redis.windows.conf--loglevel verbose 

do

redis-server --service-install redis.windows.conf --loglevel verbose 

(i.e. Add a space before "--loglevel")

like image 126
Zri Avatar answered Oct 08 '22 18:10

Zri