Solve the problem of setting/etc/rc. Local in centos 7.0

Source: Internet
Author: User

After centos7 is installed, modify RC. Local as usual to add the boot command. However, the command is invalid after restart, And the restart Command remains unchanged.

Check the system RC. Local Service running status

Systemctl | grep "RC. Local" # rc-local.service loaded active running/etc/rc. d/rc. Local compatibility

Normal operation found

View the RC. Local file.

Vim/etc/rc. Local

Found such a sentence

Please note that you must run 'chmod + x/etc/rc. d/rc. local' to ensure

Since/etc/rc. local is/etc/rc. d/RC. local soft connection, so you must ensure/etc/rc. local and/etc/rc. d/RC. local has x permission (executable)

Execute Command

Chmod + x/etc/rc. d/rc. Local

Restart, everything works, and the problem is solved.

Solve the problem of setting/etc/rc. Local in centos 7.0

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.