嵌入式linux下如何设置开机就启动自己的应用程序
2014-09-07 23:27
453 查看
1. 更改/etc/rc.d/rc.local文件内容(有可能没有,可以创建一个哦)
gedit /etc/rc.d/rc.local
文件的内容:(&表示后台运行)
#!/bin/sh -e
./root/TEST &
./root/TEST1 &
./root/TEST2 &
exit 0
2、设置可执行权限:
chmod 777 /etc/rc.d/rc.local
3、设置软链接:
ln -s /etc/rc.d/rc.local /etc/rc.local
4、. 开启rc-local.service
systemctl start rc-local.service
5. reboot即可看到效果了。
参考:/article/9107987.html
http://linux.chinaitlab.com/administer/792497.html
http://www.2cto.com/os/201307/225689.html
/article/9107987.html
gedit /etc/rc.d/rc.local
文件的内容:(&表示后台运行)
#!/bin/sh -e
./root/TEST &
./root/TEST1 &
./root/TEST2 &
exit 0
2、设置可执行权限:
chmod 777 /etc/rc.d/rc.local
3、设置软链接:
ln -s /etc/rc.d/rc.local /etc/rc.local
4、. 开启rc-local.service
systemctl start rc-local.service
5. reboot即可看到效果了。
参考:/article/9107987.html
http://linux.chinaitlab.com/administer/792497.html
http://www.2cto.com/os/201307/225689.html
/article/9107987.html
相关文章推荐
- 如何在注册表中设置某项应用程序为开机时自动启动?
- 如何给自己编写的程序隐蔽的设置开机启动
- 嵌入式ARM linux系统如何设置开机启动应用程序?
- 【转】如何编写Symbian 3rd 应用程序,让手机开机自启动
- [转]office outlook 2007 如何设置开机自动启动
- Ubuntu 10.04LTS 设置开机/登录自动启动应用程序
- C#如何设置应用程序启动的对象
- 为自己的应用程序设定开机自动启动
- 两个小知识:C#如何设置开机启动时自动执行程序|C# WinForm打开超链接
- 在linux下如何设置开机自动启动程序?
- office outlook 2007/2010 如何设置开机自动启动
- 如何贴加自己的应用程序到WINCE内核中,并且随系统启动而启动!
- android launcher 相关知识 开机启动 wallpape 图标的脱拽 如何取得Android已安装的应用程序
- 如何设置才能让Linux开机自动启动SVN
- vs2008安装部署程序时如何设置程序开机启动
- 如何贴加自己的应用程序到WINCE内核中,并且随系统启动而启动!
- 如何将Linux下的应用程序VLC设置为开机自启动?
- 如何设置xp系统开机(关机)启动声音以及画面
- MFC 设置应用程序开机启动
- 【转】vs2008安装部署程序时如何设置程序开机启动