Redis-cli command summary, redis-cli Summary
Redis provides a variety of commands to operate databases and data types. These commands can be used on Linux terminals.
Suppose two redis servers, IP: 192.168.1.101 and 192.168 1.103, how to access Redis on 101 via REDIS-CLI. Before remote connection 103, let's talk about several key parameters of REDIS-CLI:
Usage:
Python redis-cli.py Python3 redis-cli Command-line administration toolDue to the recent test of redis unauthorized access vulnerability, found that the machine does not have Redis installed, can not run redis-
requests (requests per second)
14, –raw and –no-raw
–no-raw requires that the original format be returned. –raw shows the formatting effect.
Part IIThere are many redis-cli orders. Like what
Connection Operations Related commands
1, the default direct connection remote connection-H 192.168.1.20-p 6379
2, Ping: Test the connection is alive if normal will return
Redis provides a variety of commands to operate databases and data types. These commands can be used on Linux terminals. Redis-cli command Summary 1. connection operation-related command quit: close connection auth: Simple Password Authentication 2. value operation command e
and installed.
Download the latest release installation package, decompress it, and install it. We recommend that you add it to the environment variable.Redis Common commands connect to a remote redis Server
1 redis-cli -h hostname/ip [-p port] [-a password]2 3 redis-
Connection: redis-cli-h machine-p port-n DBTurn: Search every time, or throw in thisRedis provides a rich command to manipulate databases and various data types, which can be used on Linux endpoints. In programming, such as using Redis's Java language Pack, these commands have a corresponding method. The following is a summary of the
Problem Description:
Because the REDIS-CLI command is not set to path, every time you want to use it, you need to perform the find command to see where the command is.
# Find/-name REDIS-CLIAfter you find it, it's too much trouble to execute the order.
Solution:
Configure the REDIS-
Redis provides a rich command to manipulate databases and various data types, which can be used on Linux endpoints. In programming, such as using Redis's Java language Pack, these commands have a corresponding method. The following is a summary of the commands provided by Redis.Official website Command list: http://redis.io/c
CentOS SystemInstallation:Yum-y Install RedisBring your own Redisbench test tool1, Redis-benchmarkRedis benchmark information, Redis server performance detectionredis-benchmark-h localhost-p 6379-c 100-n 100000100 concurrent connections, 100,000 requests, detects Redis server performance with host localhost port 6379Benchmark Tool Test Information:Test command:Re
Redis provides a variety of commands to operate databases and data types. These commands can be used on Linux terminals. During programming, such as using the redis Java Language Pack, these commands have corresponding methods. The following is a summary of the
"["option"]=>bool(false)}
command-line variable 3 "using CLI parameters"In addition to using the command line to pass PHP script parameters, you can also pass the PHP CLI parameter to change how it works.
Parameters
Description
-A
Running run interactively interactively
-C
Path reads PHP's. ini file from path
-N
Run dir
Whether it's compiled from source or pre-created versions of PHP, it comes with a PHP executable by default. This executable can be used to run the command-line PHP program.To find this executable file in the system, follow these steps: Windows: Placed in the main PHP installation directory, the file name is Php.exe or (in the old version of PHP) is Php-cli.exe. Linux: Saved in the bin/subdirectory of the PHP installation directory.Note: The CLI mode
Common Redis commands and redis commands
1 Create-store or not-View-delete
Set name maojun; exists name; get name; del name;
2. serialization record
Set name maojun; exists name; dump name; the client is logged out, and exists name and name still exist.
3. Set the survival time for the key-Modify the survival time
Set
mechanism redis is a support for the persistence of the internalDeposit database snapshotting Snapshot mode, default storage mode, default write Dump.rdb binary file, you can configure Redis in n seconds if more than M key has been modified to automatically snapshot Append-only file aof mode, Using AOF, Redis appends each function to the file, and when the
Node: input node, after entering the REPL environment, you can run the Javascsript expression directly, simulate the node outputsh-it-nb0023:static xialei$ node> Console.log ('lallalala'); lallalalaundefinedBABEL-CLI: After the installation of BABEL-CLI, you can directly through the Babel command to Transcode, if the root directory must have. BABELRC--out-file or---out-file---out-dir or---out-dir --- D lib
As a high-end system-level disk/storage array solution, the Veritas VM is powerful and commands a lot. This article summarizes some of the CLI commands commonly used in the maintenance process to make it easy to use.Resources:
VERITAS Volume Manager Command line Interface Administrator ' s Guide
Veritas Volume Manager Quick Start Classic tutorial
The CLI is actually like a cmd window that can enter commands and return results here to collect some useful:
1. View function: Php--rf function_name
2. Accept input: php-r "$name = fgets (STDIN);"
3. Prompt for input: php-r "fwrite (STDOUT, ' Enter your name ');"//Learn C + + syntax knows STD is the standard input and output stream
Combination: Php-r "fwrite (STDOUT, ' Enter your name '); $name = fge
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.