用xshell让.jar程序在后台运行(nohup与&)

目的 在xshell中运行.jar服务后,在关闭xshell后服务也停止了。需要让.jar服务在后台运行,关闭xshell不影响服务的运行。 解决方法 使用命令:nohup command & 其中:nohup就是不挂起的意思( no hang up) 【如:nohup java -Dspring.datasource.url="jdbc:postgresql://ip:5432/数据库名" -j
相关文章
相关标签/搜索