时间:2024-10-18 23:21:08
1、编写startup.sh,自动启动jar包的脚本,这里以/home/java为例
3、编辑/etc/rc.local,加上一行
5、使用reboot命令重启服务器,待重启后通过命令查看是否运行了java