Redis Configuration back-end boot

Source: Internet
Author: User
Tags redis redis server

①: 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




Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.