Installation and basic use of redisclient under Windows, configuring Redis and Visual Client

Source: Internet
Author: User
Tags download redis set set custom name redis desktop manager install redis redis server

First,   Window under Installation

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

Redis supports 32-bit and 64-bit. This need according to the actual situation of your system platform choice, here we download Redis-x64-xxx.zip compressed package to C drive, after decompression, the folder renamed to Redis.

Running the service side

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 Redis-cli.exe.

C:\redis>redis-cli.exe

127.0.0.1:6379> Ping

PONG

The above indicates that we have successfully installed Redis.

Second, restart

given that Redis is likely to be synchronizing the in-memory data to the hard disk, forcing the Redis process to terminate may result in data loss, and the proper way to stop Redis should be to send the shutdown command to Redis and shut down the Redis server through the client. The method is:

C:\redis>redis-cli.exe

127.0.0.1:6379> shutdown

Not connected

when Redis receives the shutdown command, it disconnects all client connections and then performs persistence based on the configuration and finally exits.

[17796] 14:53:18.771 # User requested shutdown ...

[17796] 14:53:18.771 * Saving the final RDB snapshot before exiting.

[17796] 14:53:18.803 * DB saved on disk

[17796] 14:53:18.803 # Redis is now ready to exit, Bye bye ...

Third,Redis Install as a Windows service

1. go to the Redis directory and execute the Redis-server--service-install redis.windows-service.conf, as shown in the following:

Note: Don't look for the wrong, usually redis.windows-service.conf, not redis.windows.conf. The latter is a configuration file that is used by a non-system service startup program.

2.has been successful (the service does not start and needs to be started by itself), view.

3. Uninstall Command

Redis-server--service-uninstall

Iv. Modifying configuration items such as database passwords

using a text editor, use this notepad++, open the Redis service profile redis.windows-service.conf. Find the place containing the Requirepass typeface, append a row, enter Requirepass 12345. This is the password required to access Redis, which can be used without setting a password in general test situations. However, even as a local access, it is recommended to set a password. Here is a simple 12345来 demo.

Set the password to find can login, but unable to execute the command

Enter the authorization command auth password

v.use of REDIS clients

The visual client that manages Redis is currently more than three popular: Redis client; Redis Desktop Manager; Redis Studio. Here we present the download and installation and basic usage of Redis Client.

Redisclient is a GUI tool for Redis clients, written using Java SWT and Jedis, which allows developers to browse the Redis database. The software supports Simplified Chinese, which is very suitable for domestic users and can be used directly without the need of Chinese. Redisclient Redis data in a Resource Manager interface style to users, can help redis developers and maintenance personnel to easily build, modify, delete, query Redis data, do not need to know the Redis command. Allows users to easily edit data, can cut, copy, paste Redis data, you can import, export Redis data, you can sort the redis data.

1, the use of server management, support server password Authentication

2. manage Redis Data according to your preferences

Manage Redis data, including:

new Redis Data: Strings string, List of lists, hash hashes, set set, ordered set sorted set.

:http://www.uzzf.com/soft/78115.html

Unzip directly after download, no need to install,

Open After starting the Redis service, run the. exe file directly, enter the information connection, name is the custom name, where password, if the Redis service is the default configuration password, do not fill To change the password, fill in the new password

after the successful interface as follows, the default number of databases is DB0-DB15, select the database (if the command line operation, the default is the Operation Db0, to specify a different library, you need select 1 (1 for the database subscript), the new data type you want to build, not like a relational database , and there is no concept of a table.

Installation and basic use of redisclient under Windows, configuring Redis and Visual Client

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.