What do you mean with "TSR"? Do you mean "Terminate and Stay Resident", a term from MS-DOS twenty years ago, which means a program that stays running in the background?
For which operating system?
On Unix-like operating systems, you can start a Java program in the background in exactly the same way as you'd run other programs in the background. You can use nohup to make the program continue to run when you close the terminal window.
发布评论
评论(1)
“TSR”是什么意思?你的意思是“Terminate and Stay Resident”,这个术语来自二十年前的MS-DOS,意思是一个程序在后台保持运行?
适用于哪个操作系统?
在类 Unix 操作系统上,您可以在后台启动 Java 程序,其方式与在后台运行其他程序完全相同。您可以使用
nohup
使程序在关闭终端窗口时继续运行。在 Windows 上,有一些工具可用于将 Java 程序作为 Windows 服务运行。看看 将 Java 作为 Windows 服务/Unix 守护进程启动的开源软件。
What do you mean with "TSR"? Do you mean "Terminate and Stay Resident", a term from MS-DOS twenty years ago, which means a program that stays running in the background?
For which operating system?
On Unix-like operating systems, you can start a Java program in the background in exactly the same way as you'd run other programs in the background. You can use
nohup
to make the program continue to run when you close the terminal window.On Windows, there are tools available to run your Java program as a Windows service. Have a look at Open Source Software to start up Java as Windows Service/Unix Daemon, for example.