Home >Backend Development >PHP Tutorial >Configuring startup service under ubuntu_PHP tutorial

Configuring startup service under ubuntu_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:45:021655browse

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...
Statement:
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