SHORTCUT-REDIS-CLI.SH: General REDIS-CLI Terminal Operations Management Shortcut script (source continuous update)

Source: Internet
Author: User
Tags log log
This is a creation in Article, where the information may have evolved or changed.

Shortcut-redis-cli

General REDIS-CLI Terminal Operations Management shortcut script Version 1.0.0

SHORTCUT-REDIS-CLI.SH: General REDIS-CLI Terminal Operations Management Shortcut Connection script (continuous update)

"Main use"

Quick use of REDIS-CLI terminal connection and switching in different operation and maintenance scenarios

copyright:2016 Jack Liu (Liu Jianqiu Qiu)

License:mit

Version:version 1.0.0

Email:ceophp@163.com

qq:1099729311 404691073 (work used) Created Init by date:2016-03-18

"Writing Reason"

Actual work almost daily use of REDIS-CLI management Redis instances, some repetitive operating habits with the shell script process execution, before writing a redis-cli shortcut connection script, save a lot of unnecessary time, last night to spare time to expand a part of the function, The script is simple, and there is time to add more useful features and batch Redis instance capabilities to multi-instance management. A small number of servers are temporarily implemented with the Shell to meet general operational requirements. The subsequent pumping time is compiled into binary execution with the Golang implementation, and the execution efficiency is high.

Script 1.0.0 only implements the underlying functionality, and subsequent pumping time updates are focused on specific scenario business batches

For REDIS-CLI operations often have to repeatedly knock commands, many business scenarios, the general Redis GUI management tools can not be very good to deal with a few pain points:

1. Whether the computer or remote IP management, for the operation containing the password, to repeatedly enter the password, and high-strength password for security settings complex, manual input efficiency is low, and to repeat the system paste operation, more cumbersome.

2. On-line production isolation environment, visual GUI class management software to transit through Proxy Server management is not convenient and very insecure, many operations are not suitable for the scene, occupy the link resources. 3. In the CLI mode frequently through the bastion Machine (springboard) to manage internal isolated Redis instance server, IP and password authentication input repeated operation process, error-prone (subsequent script updates to manage N instances and batch management).

...

"Disclaimer"

If you are unfamiliar with the script, do not operate directly on the production server. Be sure to test the environment before you use it!

The script does not confuse the code, according to its own business scenario free expansion, test error can be used online.

"Main function Points"

Version 1.0.0:

(1) Fast and easy to use REDIS-CLI connect to any Redis instance (with or without requirepass password)

(2) connection mode selection:

Local mode:

(host:127.0.0.1)

Remote mode:

Manually set the specified IP and port number (required option)

(3) configuration item Basic check:

Local mode: Default basic Redis Configuration item provides partial general security Configuration check (Basic configuration item check only)

Remote mode: Check port number configuration, do not provide cross-server (considering commonality, security and other factors, temporarily do not upload this part of the function, there is need to contact me)

"Next release plan"

1. Improve script execution validation and script state handling

2. Enable interactive selection management of remote target servers (on multi-server Redis instances)

3. Distributed Redis Instance Management Basics:

Add a Redis Process server configuration list: $ (PWD)/etc/server_list.conf (tentative name), providing interactive

The script provides at least three parameter commands: View the remote IP list, view the script version, view

4. Log module:

Added basic operations script Operations log log and error log tracking

(usually work relatively busy, will spare time to update, email or QQ at any time to communicate)

GitHub Connection: HTTPS://GITHUB.COM/Q89/SHORTCUT-REDIS-CLI#SHORTCUT-REDIS-CLI

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.