Linux system starts automatically run the command method

Put a script containing the command in your /etc directory.

Create a script such as "startup.sh" using your favorite text editor.

Save the file in your /etc/init.d/ directory.

Change the permissions of the script (to make it executable) by typing "chmod +x /etc/init.d/mystartup.sh".

Guess you like

Origin www.cnblogs.com/lialin/p/11320066.html