①: Enter the redis-3.0.7 (folder to store the source code)
②: Copy redis.conf to Bin directory
③: The view card matches the permissions of the past redis.conf, as shown below:
➣:-rw-r--r--: The owner has permission to read and write, and the other person has read-only permissions.
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
④: Modify Permissions chmod 777 redis.conf (chomd777, everyone has read and write and Execute permissions)
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
⑤: Modify redis.conf configuration file: VI redis.conf
➣:daemonize No (default), change to Yes, meaning whether to start the background.
➣:esc +: Wq----> Save
➣: Background Start command: In the bin directory,./redis-server redis.conf
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
⑥: See if it starts: Ps-aux|grep Redis
➣: After starting redis-server in the background, start./REDIS-CLI, you can get the contents of get Key1, and the Redis server will start forever.
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
⑦:➣: How to close the./REDIS.CLI shutdown
➣: cannot be closed with kill, because data may be lost.
➣: Using./REDIS.CLI Shutdown,redis will save the data before closing