nohup java -jar Register.jar >temp.txt &      运行jar包,日志打印到temp.txt

tailf temp.txt                  打开temp.txt,文本有变化会及时显示(可以关闭或切换,对程序无影响)

jobs                      查看当前页正在运行的程序

fg 1                      关闭编号为1的程序

 

ps:与screen配合使用效果极佳

相关文章:

  • 2022-01-31
  • 2021-12-02
  • 2022-12-23
  • 2022-01-09
  • 2022-02-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
  • 2022-12-23
  • 2021-08-31
  • 2021-06-12
  • 2021-06-03
相关资源
相似解决方案