Installation [Redis] windows redis services

First, download

https://github.com/MicrosoftArchive/redis/releases

Redis supports 32-bit and 64-bit. This according to the actual circumstances of your system platform selection, here we download  Redis-x64-xxx.zip archive to the D drive redis folder.

 

Decompression:

 

Two, Redis temporary service

1 . Open cmd, enter the directory you unzipped to start the temporary service: redis-server.exe redis.windows.conf 

(Note: Using this command will create a temporary service Redis, Redis service name and status will not appear in the window Service list, this window is closed, the service will automatically turn off.)

 

2 . Open another cmd window, the client calls: redis-cli.exe -h 127.0.0.1 -p 6379

 

 

Three, Redis custom windows installation service

 1 . Redis into the installation package directory, installation services

  redis-server.exe --service-install redis.windows.conf --service-name redisserver1 --loglevel verbose

 

 win + r -> services.msc, you can see the service installed successfully

安装服务:redis-server.exe --service-install redis.windows.conf --service-name redisserver1 --loglevel verbose

Start Service: redis-server.exe --service-start --service-name redisserver1

Stop Service: redis-server.exe --service-stop --service-name redisserver1

Uninstall service: redis-server.exe --service-uninstall - service-name redisserver1

 

Fourth, the master and slave servers

1. Create a new file under a directory named redis2 disc d, the folder things redis redis2 copied to the folder, the redis-windows.conf configuration file The change ip and port number, and then follow the steps above to install a services to

 

 

 

 2. Use redis Desktop Manager (Download: https://redisdesktop.com/ ), see two libraries redis

 

 

 

3. Set the password to remove the # #requirepass foobared change their password

4. Set a good save to make the settings work, you need to restart the service redis

5. Similarly the port number and ip

 

 

 

6. After a password is required to restart 

 

Guess you like

Origin www.cnblogs.com/li-sx/p/11875417.html