Created
October 10, 2017 21:28
-
-
Save ruochenxu92/ed43f2b73c3141d3fab74d992137cbdd to your computer and use it in GitHub Desktop.
Install Open JDK at linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
#run java server on linux with open to world with port 8080
JETTY_HOST=0.0.0.0 java -server -jar xxxx.jar