【LINUX】在ubuntu中安装tomcat

#instal jdk
apt install openjdk-8-jdk -y

#enter install path
cd /home/a/

#copy tomcat package
cp /mnt/hgfs/Share/apache-tomcat-9.0.93.tar.gz .

#unpress tomcat package
tar -xf apache-tomcat-9.0.93.tar.gz 

#enter bin path
cd apache-tomcat-9.0.93/bin

#start the server
./startup.sh 

#test home page of server
curl http://localhost:8080

你可能感兴趣的:(linux,运维,服务器)