目前,为了将我的程序部署到我的 ubuntu 服务器,我必须执行以下步骤。
1. Compile the code using Gradle
2. Using FileZilla to move the jar to my server.
3. Connect to my server and find the process to kill it
4. restart the program.
我很好奇是否有任何替代方案可以让我自己尝试。例如以某种方式将我的 jar “部署”到服务器并让它自动重新启动进程。
最佳答案
您可以尝试使用Jenkins
用于自动部署。
关于java - 将 jar 部署到 unix 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62055541/