finder-web????????搭建
PS:1-3步可以無視忍抽。
1. 創(chuàng)建java目錄并進(jìn)入
mkdir /usr/local/java
cd /usr/local/java
2.下載java并解壓
(ps:如果沒有安裝wget积蔚,先安裝)
wget http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz?AuthParam=1530517376_c22e1f6623893d22a7c36578bab4e251](http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz?AuthParam=1530517376_c22e1f6623893d22a7c36578bab4e251)
tar – xzvf jdk-8u171-linux-x64.tar.gz -C /usr/local/java
yum install -y wget
3. 配置java
export JAVA_HOME=/usr/local/java
export JAVA_BIN=$JAVA_HOME/bin
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
source /etc/profile
//測試java是否安裝成功
java -version
4. 進(jìn)入/usr/local
cd /usr/local
1. 下載tomcat并解壓
(ps:如果沒有安裝wget步责,先安裝)
wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.32/bin/apache-tomcat-8.5.32.tar.gz](https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.32/bin/apache-tomcat-8.5.32.tar.gz)
tar xzvf apache-tomcat-8.5.32.tar.gz -C /usr/local
mv apache-tomcat-8.5.32 tomcat
cd tomcat
6. 刪除ROOT目錄并重建
rm -rf webapps/ROOT
mkdir webapps/ROOT
chown -R root:root webapps/ROOT
chmod -R 755 webapps/ROOT
7. 下載finder-web并解壓
(ps:如果沒有安裝unzip瞻凤,先安裝)
wget http://www.finderweb.net/download/finder-web-2.4.2.war](http://www.finderweb.net/download/finder-web-2.4.2.war)
mv finder-web-2.4.2.war finder-web-2.4.2.zip
unzip -o -d webapps/ROOT finder-web-2.4.2.zip
yum install -y unzip zip
8. 啟動tomcat
bin/startup.sh