liunx在线安装jdk8 与 tomcat8
linux在线安装jdk1.8: https://blog.csdn.net/qq_37345604/article/details/80556639
liunx在线安装jdk8
1.判断liunx中是否存在jdk, 存在就删除,不存在就是没有反应
rpm -qa|grep gcj
2.先要安装wget
yum -y install wget
3.直接在线下载jdk8
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-secure backup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk- 8u131-linux-x64.rpm
4.安装jdk
rpm -ivh jdk-8u131-linux-x64.rpm
liunx在线安装tomcat8
1.进入linux中的所在文件夹,输入下载命令
wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.28/bin/apache-tomcat-8.5.2 8.tar.gz
2.解压tomcat命令
tar -zxvf apache-tomcat-8.5.28.tar.gz
3.进入tomcat文件夹bin, 启动tomcat命令 cd apache-tomcat-8.5.28/bin
./startup.sh
4.启动时查看启动日志命令
tail -f logs/catalina.out