Redis startup and management in a Linux environment
Command under the Redis root directory
Quick Start default port./redis-server. /redis.conf
Start the Redis management side./redis-cli
Cleanup Cache Command Flushall
Configure additional Redis ports :
1, the bin directory redis.conf file copy more than one, the file name to increase the port number, good mark, such as redis6380.conf
2. Open edit the file, change bind 127.0.0.1 to bind 192.168..123; change port 6379 to Port 6380
3. Start the port./redis-server. /redis6380.conf
4. Start the management port./redis-cli-h 192.168.1.123-p 6380
Using CMD to manage Redis under Windows environment
Enter the Redis root directory and execute the following command
Start Redis service Redis-server.exe redis.windows.conf
Turn on Redis client redis-cli.exe-h 192.168.0.186-p 6379
Redis.conf Related Configurations
comment out the phrase "bind local IP",
Set the protection mode Protected-mode to No (if enabled, the client that enters Redis from another computer will prompt for protected mode)
Set the daemonize to Yes (background running after startup, that is, the Redis boot interface will not appear, and the current remote will be turned on.)
Use and configuration of Redis