后台运行jar包方法:
- 1、nohup java -jar shareniu.jar &
nohup意为后台不挂断运行,与是否账号退出无关
- 2、nohup java -jar shareniu.jar >spring.log &
后台运行,并将相关日志输出到spring.log
转自:https://blog.csdn.net/jisu30miao1225/article/details/80111045
后台运行jar包方法:
nohup意为后台不挂断运行,与是否账号退出无关
后台运行,并将相关日志输出到spring.log
转自:https://blog.csdn.net/jisu30miao1225/article/details/80111045