Redis installation configuration under Windows

Time:2020-2-15

Redis installation configuration under Windows

Redis is generally run in Linux. Here is the installation and configuration of redis under windows

The Windows version seems to have stopped updating and can be used as an understanding.

0x1 installation

GitHub download address: https://github.com/microsoftarchive/redis/releases

The latest version as of the publication of the article is3.2.100findAssetsThere is an MSI version and a zip version. I’m used to downloading the MSI version. There is a graphical installation interface to configure.

There are three options for downloading and installing

  • One is to add the installation directory to the environment variable. It is recommended to check the default
  • One is to set the maximum memory usage. It is recommended to check default
  • One is to set the port number, which is OK by default

After installation, you can open Task Manager and find the service panelResdisService, which can be manually shut down and restarted.

You can also use command line commands

Net stop redis. Close redis service
Net start redis? Start redis service

0x2 remote connection

  • Open theredis.windows-service.conf
  • takebind 127.0.0.1Change tobind 0.0.0.0
  • takeprotected-mode yes Change toprotected-mode yes (remember to remove#No. for configuration to take effect)
  • Save restartredisservice
  • Download another redis Desktop Manager, a cross platform third-party open-source redis graphical connection management tool. Installation complete open. Fill in the IP and port to connect. (no connection to see if the server firewall is openredisPort)
  • Redis installation configuration under Windows

0x3 set password

  • Open theredis.windows-service.conf
  • findrequirepass, enter your password in the space after. (remember to remove the ා sign to make the configuration effective)
  • Save restartredisservice

Recommended Today

ES6 array sorting: more recommended methods and techniques than Es5

Original link: HTTPS: / / dsx2016. COM /? P = 692 WeChat official account: Senior brother 2016 ECMAScript ECMA ScriptyesECMA-262The name of the standardized scripting language. althoughJavaScriptandJScriptAndECMAScriptCompatible, but contains more thanECMA ScriptFunction. The following table is divided into four modules: ECMAScript 1st Edition (ECMA-262)Corresponding to the first edition andES5Previous versions (this article only) ECMAScript 5.1 […]