Skip to content

Instantly share code, notes, and snippets.

@kassadin
Last active April 19, 2017 04:56
Show Gist options
  • Save kassadin/746f6e7e4bc93943be5251025fead4e9 to your computer and use it in GitHub Desktop.
Save kassadin/746f6e7e4bc93943be5251025fead4e9 to your computer and use it in GitHub Desktop.
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
## ubuntu 14.04 清华镜像
#sudo curl -O https://gist.githubusercontent.com/kassadin/bcb1e07863f40f61be5dc5561149856f/raw/8c74bd0d66002940129ce284b816d9af071e6c08/sources.list
sudo wget -P /etc/apt/ https://gist.githubusercontent.com/kassadin/bcb1e07863f40f61be5dc5561149856f/raw/8c74bd0d66002940129ce284b816d9af071e6c08/sources.list
sudo apt-get -y update
sudo apt-get -y install zip unzip git
# sdkman nedd zip unzip
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version
# sdkman auto answer
# rm -rf ~/.sdkman/etc/config
mv ~/.sdkman/etc/config ~/.sdkman/etc/config.bak
wget -P ~/.sdkman/etc/ https://gist.githubusercontent.com/kassadin/b22670d5cdcc08917c0dd7520748e19c/raw/9a65b01c5b0f76f0313480ec1fd99ad6d6403f6d/config
sdk install java 8u121
# sdk install springboot
# sdk install maven
# sdk install kotlin
git clone https://github.com/spring-io/initializr.git
cd initializr
./mvnw clean install
cd initializr-service
../mvnw spring-boot:run
@kassadin
Copy link
Author

# cd initializr-service
../mvnw package

从服务器复制文件到本地

scp [email protected]:/home/ubuntu/initializr/initializr-service/target/initializr-service.jar . /

java -jar initializr-service.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment