Linux program runs automatically upon startup-general Linux technology-Linux technology and application information. The following is a detailed description. Linux program runs automatically upon startup
1. The automatically running programs are classified as follows (by Li Yangming ):
/Etc/rc. local add your running program to the end, which is started upon startup.
/Etc/bash_profile login start
. Bashrc started after login
2. As an industrial automation program, of course, it is required to automatically run the program in the case of industrial power supply. Therefore, we choose the boot solution. The specific method is as follows:
Edit this file/etc/rc. local, that is, vi/etc/rc. local. Add the program you have installed in the system to this file!
3. For example: I want to automatically run the/var/ftp/up/server program at startup. After executing the vi/etc/rc. local Command, add the file at the end of the file opened by vi.
/Var/ftp/up/server can be automatically started! Even if the user does not log on to the linux system, the program still runs.
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