Generated with spring initializr
mvn install
java -jar ./target/springhello-0.0.1-SNAPSHOT.jar
7000
- server's ssh portuser
- server's user127.0.0.1
- server's ip./target/springhello-0.0.1-SNAPSHOT.jar
- path of application's jar
scp -p 7000 ./target/springhello-0.0.1-SNAPSHOT.jar [email protected]:/home/user
tmux new-session -d -s "springhello" java -jar springhello-0.0.1-SNAPSHOT.jar
tmux ls
- show sessionstmux a name_of_the_session
- attach to sessionctrl + b
+:detach
- detach current session