您好,新朋友。点击以下按钮加入我们!
nohup /root/uml-64/vmlinux ubda=/root/uml-64/centos6 eth0=tuntap,tap0 mem=256m & 这样加入rc.local无效
暂无方法,我也没试出来。
/bin/su root -c "/usr/bin/screen -dmS vmlinux bash -c '/root/uml-64/run.sh; exec bash'" 上面的语句加入rc.local 然后创建/root/uml-64/run.sh 文件,并修改为可执行文件 文件内容为 #!/bin/sh /root/uml-64/vmlinux ubda=/root/uml-64/centos6 eth0=tuntap,tap0 mem=256m 文件内容根据自己的路径进行修改 ps:非原创,是在www.91yun.org上看到liuje的留言
@koala 说道: /bin/su root -c "/usr/bin/screen -dmS vmlinux bash -c '/root/uml-64/run.sh; exec bash'" 上面的语句加入rc.local 然后创建/root/uml-64/run.sh 文件,并修改为可执行文件 文件内容为 #!/bin/sh /root/uml-64/vmlinux ubda=/root/uml-64/centos6 eth0=tuntap,tap0 mem=256m 文件内容根据自己的路径进行修改 ps:非原创,是在www.91yun.org上看到liuje的留言
赞
是的, 我来了. 我花了整整三天, google了2-3百个网页学习/测试, 最后才成功的.
分享给大家 !! 因为我也很需要开机自动运行的功能 ~~
评论
暂无方法,我也没试出来。
/bin/su root -c "/usr/bin/screen -dmS vmlinux bash -c '/root/uml-64/run.sh; exec bash'"
上面的语句加入rc.local
然后创建/root/uml-64/run.sh 文件,并修改为可执行文件
文件内容为
#!/bin/sh
/root/uml-64/vmlinux ubda=/root/uml-64/centos6 eth0=tuntap,tap0 mem=256m
文件内容根据自己的路径进行修改
ps:非原创,是在www.91yun.org上看到liuje的留言
赞
是的, 我来了. 我花了整整三天, google了2-3百个网页学习/测试, 最后才成功的.
分享给大家 !! 因为我也很需要开机自动运行的功能 ~~