1. springboot project labeled jar placed in a directory of linux.
2. Create a new nohup.log file.
3. Use the vi command to create a new file and start.sh wrote the following:
1 #!/bin/sh 2 nohup java -jar springbootHelloWorld.jar --server.port=8082 > nohup.log 2&>1 &
Exit Save
4. Run start.sh file using the command sh start.sh