Skip to content

Instantly share code, notes, and snippets.

@codethereforam
Last active December 28, 2021 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codethereforam/0e92035c3e44a77334f4ffeb11c8df25 to your computer and use it in GitHub Desktop.
Save codethereforam/0e92035c3e44a77334f4ffeb11c8df25 to your computer and use it in GitHub Desktop.
deploy Spring Boot

install software

  • centos install java: yum install java-1.8.0-openjdk-headless.x86_64

deploy

  1. package: mvn clean package
  2. copy to remote server: scp ./xxx.jar root@xxx:/home
  3. installation as System V: ln -s /home/foo.jar /etc/init.d/foo
  4. start:service foo start
  5. path:
    • configuration file:/home/foo.conf
      RUN_ARGS="--spring.datasource.password= --spring.redis.password="
      
    • log file:/var/log/foo.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment