Redis startup mode
F: default startup mode, startup mode to load the configuration files redis.conf Redis installation folder
R: full command redis-server ./redis.conf as shown below
Basically start over the way in the development and use of small operation and maintenance, teaching and demo use more, it is not recommended to start this way, but not recommended for use in generating environment
Loading a configuration file to start F
R: complete command follows redis-server ./reids_6388.conf shown below
More start-up mode can be configured according to the configuration file assign different ports or different services, and then start the service
basic DEVOPS activities, are some of the basic configuration file copy, in order to prevent losses caused by tampering or misuse profile Therefore, when using Redis, try not to modify the default configuration file redis.conf
F client connection RedisServer
R & lt complete command follows redis-cli -h 192.168.1.1 -p 63xx as shown
-h ip address on behalf of the server where server
-p representing the port number of the service opening
Appears above ip: port number> indicates a successful connection, otherwise the port configuration check the configuration file for any irregularities
Stop Service RedisServer F
R as a complete shutdown command as shown in FIG
shutdown two parameters
SAVE persistent current data to the memory database file
NOSAVE not persisted