1 package and put your jar file onto the server, Xshell with “rz” command would be very simple.
by the way, “sz” for download
2 jar package starts up and output log file
sudo nohup java -jar ./xxxx.jar >xxxxx.log 2>&1 &
if you don’t want to wipe out current logs, use:
sudo nohup java -jar ./xxxx.jar >>xxxxx.log 2>&1 &
">>"stands for continuing writing
本文介绍如何使用Xshell通过rz命令上传jar文件到服务器,简化Java应用程序的部署过程。同时,提供两种方法来启动jar包并设置日志输出,一种会覆盖现有日志,另一种则追加到现有日志中。
5348

被折叠的 条评论
为什么被折叠?



