完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
create myservice.service file in /lib/systemd/system/
like this:
save it reload services:
see status:
start service:
stop service:
restart service:
at last, please enable your service to make it autostart
you can use systemctl command to list and see all services status You can see something at here: http://beaglebone.cameon.net/home/autostarting-services http://www.nunoalves.com/open_source/?p=308 英文实在不行了,上中文吧: 整个思路是这样的,先编写service文件,编写完成之后用systemctl start命令去启动一下,并用systemctl status看一下是否启动成功了。然后可以再试试停止和重启,如果这些都对的话就可以用systemctl enable命令让它自启动。重启试试,重启之后可以用systemctl status看看是否启动来,也可以直接用systemctl命令看看所有的service状态。 总之多使用systemctl status命令来调试你编写的service。 |
|
相关推荐 |
|
只有小组成员才能发言,加入小组>>
167个成员聚集在这个小组
加入小组BBB通过sd卡启动ubuntu16.04后不能升级下载联网的问题
4727 浏览 2 评论
3431 浏览 0 评论
7898 浏览 5 评论
673浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 12:25 , Processed in 0.918915 second(s), Total 55, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2701