#!/bin/bash
#rc.local config file created by use
miredo
ifconfig
cd /home/sam/myapps/XX-Net-3.12.11
./start
exit 0
本文介绍了一种在Linux环境下使用systemd执行rc.local的方法,通过编写bash脚本来启动特定的应用程序,如miredo、ifconfig等,并在/home/sam/myapps目录下运行XX-Net-3.12.11。此脚本确保了应用程序在系统启动时能够自动运行。
#!/bin/bash
#rc.local config file created by use
miredo
ifconfig
cd /home/sam/myapps/XX-Net-3.12.11
./start
exit 0
1883
519
1174

被折叠的 条评论
为什么被折叠?