(ii) Redis installation and configuration (2)

Source: Internet
Author: User
Tags aacc

Set Startup information

Copy the startup script file in the source package (under the Utils directory in the source package ) to the/ETC/RC.D/INIT.D directory, such as:

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/82/FD/wKioL1dn-6KTylEFAAA5a0pd29k242.jpg-wh_500x0-wm_3 -wmp_4-s_470354201.jpg "title=" 1.jpg "alt=" Wkiol1dn-6ktylefaaa5a0pd29k242.jpg-wh_50 "/>

To modify the script information:

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/82/FD/wKiom1dn-6yxhZv-AACc-uCTWs0671.jpg-wh_500x0-wm_3 -wmp_4-s_408622423.jpg "title=" 2.jpg "alt=" Wkiom1dn-6yxhzv-aacc-uctws0671.jpg-wh_50 "/>

Execution Program ( EXEC) path is the default installation path, if we change the installation path, this also needs to be modified.

configuration file ( CONF) The default path is /etc/redis/ so we created this folder and copied the configuration in the past, but note that CONF 's file name is 6379.conf, Because there is a variable inside the path.

Modify configuration file to support daemon boot , default is no, need to change to Yes. If you do not modify it, the Redis boot will occupy a terminal interface, which will run in the background after the modification.

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/82/FD/wKiom1dn-7WD7CpvAAER5K8idjo396.jpg-wh_500x0-wm_3 -wmp_4-s_1418717069.jpg "title=" 3.jpg "alt=" Wkiom1dn-7wd7cpvaaer5k8idjo396.jpg-wh_50 "/>

Modify The PID and log paths , such as:

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/FD/wKioL1dn-77ArevVAABes1c1crc117.jpg-wh_500x0-wm_3 -wmp_4-s_1372927210.jpg "title=" 4.jpg "alt=" Wkiol1dn-77arevvaabes1c1crc117.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/82/FD/wKioL1dn-8bjw4eBAABL12f3bDA136.jpg-wh_500x0-wm_3 -wmp_4-s_1008021153.jpg "title=" 5.jpg "alt=" Wkiol1dn-8bjw4ebaabl12f3bda136.jpg-wh_50 "/>

Create /var/redis/run and /var/redis/log directories, such as:

For the reasons why you want to build under the/var path, please take the FHS definition of the Linux directory. Just to say here, the/var path is used after the program runs in the system, so FHS recommends that you mount a partition for/Var, which will have cache, Log, lock files, and so on. Of course, if you want to use a different directory is also possible.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/FD/wKiom1dn-87BTFjnAAAqEuV32DY626.jpg-wh_500x0-wm_3 -wmp_4-s_2200148204.jpg "title=" 6.jpg "alt=" Wkiom1dn-87btfjnaaaqeuv32dy626.jpg-wh_50 "/>

To modify the local database snapshot storage path , such as:

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/82/FD/wKioL1dn-9XTvQS2AABn9V1mPu4300.jpg-wh_500x0-wm_3 -wmp_4-s_526332731.jpg "title=" 7.jpg "alt=" Wkiol1dn-9xtvqs2aabn9v1mpu4300.jpg-wh_50 "/>

Create a directory, such as:

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/82/FD/wKiom1dn--OCR6ZXAAApiDTa_zU765.jpg-wh_500x0-wm_3 -wmp_4-s_3284074560.jpg "title=" 8.jpg "alt=" Wkiom1dn--ocr6zxaaapidta_zu765.jpg-wh_50 "/>

Not to be continued ...

This article is from the "Little Demon's Home" blog, so be sure to keep this source http://littledevil.blog.51cto.com/9445436/1791187

(ii) Redis installation and configuration (2)

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.