Redis get mode and install (Windows)

Source: Internet
Author: User
Tags install redis

Windows redis:https://github.com/msopentech/redis/releases

Linux Redis:https://github.com/phpredis/phpredis

Open a cmd window using the CD command to switch directories to C:\redis run redis-server.exe redis.windows.conf .

If you want to be convenient, you can add the path of Redis to the environment variables of the system, so as to save the path again, the latter redis.windows.conf can be omitted, if omitted, the default is enabled. After entering, the following interface is displayed:

At this time another cmd window, the original do not close, otherwise you will not be able to access the server.

Switch to the Redis directory to run the redis-cli.exe-h 127.0.0.1-p 6379 .

You can do a simple test after entering.

Set name Laowangok Get name " Laowang "

The above is a simple installation of redis but what if the shutdown will shut down the service and add it to the system service, even if it's turned off.

Set up service commands

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

After entering the command no error, indicating success, refresh the service, you will see a more Redis service.

3. Common Redis service commands.

Uninstall Service: Redis-server--service-uninstall

Open service: Redis-server--service-start

Stop service: Redis-server--service-stop

4. Start the service

5. Test Redis

The installation test was successful.

Here just do simple installation, deployment services use, more in-depth use can go to Redis Chinese network to see the http://www.redis.net.cn/Blog Park also has a lot of deep use, because my blog system needs to use, do a point.

There is a document in the downloaded unpacking package, with detailed instructions,

Redis get mode and install (Windows)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.