Configure the startup service in ubuntu

Source: Internet
Author: User

Ubuntu does not have the boot configurator ntsysv like RedHat or CentOS
But it also has a very convenient tool: rcconf needs to be installed separately
Installation Method: sudo apt-get install rcconf
Enter sudo rcconf in the command status.
The running interface is similar to that of the Red Hat ntsysv.

The following situations may occur during use:
1, the interface shows garbled, if it is remote login with putty, please set the language encoding to UTF-8
2. Set a service to start/stop and select OK to exit, but enter the interface again, and the options are still found.
Solution: Run sudo rcconf.
3. Even if you use sudo rcconf for execution, you can see that the configuration has been changed, but the program is still started/stopped.
Solution: modify the permissions of the/var/lib/rcconf/services file, grant 755 or 777 permissions, and use sudo rcconf to execute the configuration again.
 
In addition to using rcconf, you can also use Ubuntu's built-in update-rc.d
Usage update-rc.d XXX stop/start
Example update-rc.d avahi-daemon stop

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.