sudo vi /etc/rc.local
cd /home/xxx/myappdir
./build/bin/main
exit0
修改完后用source /etc/rc.local测试下是否能启动程序
然后reboot
启动后不会看到命令行界面,只有GUI界面
sudo vi /etc/rc.local
cd /home/xxx/myappdir
./build/bin/main
exit0
修改完后用source /etc/rc.local测试下是否能启动程序
然后reboot
启动后不会看到命令行界面,只有GUI界面