Linux deployment java project lessons - does not take effect
Major premise: the previous deployment project was based on docker, and this time the deployment project is deployed directly on linux
Question: There is nothing wrong with deploying the first project, but I found a bug and changed the project. When rewriting and typing into a jar, I deployed it again, but it didn’t take effect! ! !
Solution: Every redeployment needs to kill the running process, and then re-execute the command
Because the jar was directly mirrored before, so I didn’t encounter this kind of problem, so record it
Related commands
- Query the process ID of a Java service
Display ****.jar isjps
- kill process id
kill 进程id