Configuring startup service under ubuntu_PHP tutorial

WBOY
Release: 2016-07-13 17:45:02
Original
1609 people have browsed it

Ubuntu does not have a boot configurator like RedHat or CentOS like ntsysv
But it also has a very convenient tool: rcconf, but it needs to be installed separately
Installation method: sudo apt-get install rcconf
After completion, enter: sudo rcconf in the command status
The running interface is similar to Red Hat's ntsysv.

You may encounter the following situations during use:
1. The interface displays garbled characters. If you log in remotely using putty, please set the language encoding to UTF-8
2. Set up/deactivate a certain service, select OK to exit, but enter the interface again and find that the options are still the same.
Solution: Use sudo rcconf to execute
3. Even if you use sudo rcconf to execute and enter the interface and find that the configuration has been changed, the program still starts/stops when you start it.
Solution: Modify the permissions of the /var/lib/rcconf/services file to 755 or 777 and use sudo rcconf again to execute the configuration.

In addition to using rcconf, you can also use Ubuntu’s own update-rc.d
Usage update-rc.d XXX stop/start
Example update-rc.d avahi-daemon stop

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478681.htmlTechArticleUbuntu does not have the boot configurator ntsysv like RedHat or CentOS, but it also has a very convenient tool: rcconf However An additional installation method is required: sudo apt-get install rcc...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template