ONBOOT=yes
5、安裝wget
(1)安裝 yum -y install wget
(2) 查看版本 wget --version或 wget -V
一、安裝jdk 配置
(1)安裝 yum -y install java-1.8.0-openjdk
(2) java -version
(3) etc目錄 進入 vi profile 最后一行加上
配置是以上內容不要出錯 此處usr誤寫成 user 后面執行 文件時會報錯
(4)添加軟連接
進入/usr/lib/jvm
ln
配置生效 source /etc/profile
二、安裝配置tomcat
/
(1)進入到/usr/local目錄下
下載 wget https://mirror.bit.edu.cn/apache/tomcat/tomcat-9/v9.0.33/bin/apache-tomcat-9.0.33.tar.gz
(2)解壓
tar zxvf apache-tomat-9.0.33.tar.gz
(3)啟動tomcat
cd bin
apache下的bin目錄下 判斷是否啟動 ps -ef | grep java
啟動 sh startup.sh & 暫停 ctrl +c
關閉 sh shutdowm.sh
(4)cur瀏覽器工具 測試是否安裝 curl --help
安裝: yum -y install curl
(5)curl http://localhost:8080/index.jsp
運行jsp / usr local ap--- bin
配置路徑 / etc vi profile