java -Dfile.encoding=utf-8 -jar D:\***.jar
详细:
https://blog.csdn.net/xxfamly/article/details/80827438
运行
nohup java -jar memory-0.0.1-SNAPSHOT.jar >/usr/local/jar/memory.out 2>&1 &
关闭后台进程
先查看后台进程
pid ps -aux 1
记住进程pid,然后kill命令关闭
kill [pid]