Skip to content

Instantly share code, notes, and snippets.

@ruochenxu92
Created October 10, 2017 21:28
Show Gist options
  • Save ruochenxu92/ed43f2b73c3141d3fab74d992137cbdd to your computer and use it in GitHub Desktop.
Save ruochenxu92/ed43f2b73c3141d3fab74d992137cbdd to your computer and use it in GitHub Desktop.
Install Open JDK at linux
sudo apt-get update
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
java -version
@ruochenxu92
Copy link
Author

ruochenxu92 commented Oct 10, 2017

#run java server on linux with open to world with port 8080
JETTY_HOST=0.0.0.0 java -server -jar xxxx.jar

@ruochenxu92
Copy link
Author

sudo apt-get update
sudo apt-get install openjdk-8-jdk -y
sudo update-alternatives --config java
java -version

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