Introduction:
Common commands
1. Start without Configuration
Src/redis-Server
2. Start with configuration
Src/redis-server redis. conf
3. Start with configuration and logs
Src/redis-server redis. conf 1> log. log 2> errlog. Log
1 is the standard output, 2 is the error output
4. redis is started with Linux
In VI/etc/rc. Local, addCode:
/Root/install/redis-2.4.9/src/redis-Server
5. Client Connection
Src/redis-cli
6. Stop the redis Service
Src/redis-cli Shutdown
Other operation commands, including addition, deletion, modification, and query
1. retrieve all the currently matched keys
Keys *
2. Whether the current key exists
Exists Larry
3. Delete the current key
Del LV
4. Set the expiration time
Expire
5. Rename the key
Rename
6. Clear the current database
Flushdb
7. Get server parameter configuration
Config get
8. Exit the connection.
Quit