In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to set up linux boot self-start", the explanation content in the article is simple and clear, easy to learn and understand, please follow the idea of Xiaobian slowly in-depth, together to study and learn "how to set linux boot self-start" bar!
Linux boot settings from the boot method: 1, in the "/etc/rc.local" file to add the boot command "/usr/./ hello.sh "or"cd /opt && ./ hello.sh"。2. Add a self-boot script to the directory "/etc/init.d".
This tutorial operates on CentOS 6 and Dell G3 computers.
First, add a self-starting command to the rc.local file
Execute the command: edit "/etc/rc.local" and add the command you want to boot
Run the program script: Then add the full path of the program to be executed to the last line of the file.
For example, to execute hello.sh every time you boot, this script is placed under/usr, so you can add a line "/usr/./" to "/etc/rc.local" hello.sh ", or" cd /opt && ./ hello.sh "
Note that your command should be added before: exit 0
Add a self-boot script to the/etc/init.d directory
Linux has a lot of files under "/etc/rc.d/init.d", each file can see the content, in fact, some shell scripts or executable binary files
When Linux boots, it loads programs that run in the/etc/init.d directory, so we can put scripts that we want to run automatically in this directory. System services are started in this way.
Thank you for reading, the above is "linux how to set the boot from the start" of the content, after the study of this article, I believe that everyone on linux how to set the boot from the start of this problem has a deeper understanding, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.