In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to boot linux, I hope you have learned a lot after reading this article, let's discuss it together!
1. / etc/rc.local
The rc.local is executed after all the system initialization is completed, so we can write the startup script into it.
This is the easiest way to edit "/ etc/rc.local" and enter the shell command that starts the program (to enter the full path of the command).
Rc.local starts the root account by default. The way to start using other accounts is:
Su-admin-c'/ bin/sh / usr/local/rsync/rsync.sh'
II. Registration system services
Services included in the operating system, such as ssh,ftp, etc., boot automatically.
But if I want to add an installed service as a system service, I can execute the following command:
Put the startup script in the directory / etc/rc.d/init.d
Chkconfig-- add service name
(first, add as a system service, notice that there are two horizontal bars in front of add)
Chkconfig-leve startup level service name on
(note: level 3 represents startup in command line mode, level 5 represents startup in the graphical interface, and on means enabled)
Chkconfig-leve startup level service name off
(note: off means to turn off self-startup)
For example: chkconfig-level 3 mysql on (description: let the mysql service in command line mode, start with the system)
You can also use the chkconfig-- del service name to delete the system service
If you want to see which services are added as system services, you can use the command:
Chkconfig-list/chkconfig
If you want to see which programs are added as self-starting, you can use the command:
Cat / etc/rc.local (see which program paths have been added to this file)
After reading this article, I believe you have a certain understanding of how to boot linux, want to know more about it, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.