让 jar 在 windows 服务上运行 写代码的大聪明 2021-02-19 853 阅读1分钟 需要借助一款软件 nssm 这是它的 官网 下载对应操作系统的版本,然后用命令行启动软件 nssm.exe install hellojava2 如图所示 然后点击 install service 即可