Solve the problem that the/etc/rc. Local server does not run in Linux.

Source: Internet
Author: User

Not long ago, due to project needs to write boot to start otherProgramBecause of busy work, the shell script has been delivered to the technical support staff after debugging, and I have not paid attention to it.

Later on, several servers were suddenly restarted. At this time, the leaders asked how the boot script didn't work, and the script was also approved. Well, it's worth it!

Then, check the cause,

The manual execution is correct. After the permission and script problems are eliminated, it is very depressing. How can this problem be executed in the startup project.

Check the Linux boot process information. Google, read some information about startup and startup, and found that the startup program level is 3.

Decisively shun Teng Moua, found this directory/etc/rc. d/rc3.d, and suddenly realized it.

My RC. the local file is in/etc/rc. local (it is written here on the Internet and I made it online), and I checked that the system points to RC. the local file path is/etc/rc. d/RC. local

Later, configure the boot script to/etc/rc. d/rc. Local (or point s99local to/etc/rc. Local). Restart and check!

Summary: I am not familiar with the Linux system. This is a long process. I have more time to read this book.

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.