一、安裝jdk8java
$ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer $ sudo apt-get install oracle-java8-set-default
二、安裝tomcat8web
(1)安裝vim
apt-get install tomcat8
(2)啓動,中止,從新啓動tomcat
systemctl start tomcat8 systemctl stop tomcat8 systemctl restart tomcat8
三、測試並使用tomcatoracle
四、修改端口號 cd /var/lib/tomcat8/conf vim server.xml .net