1、部署jdk8
jdk包地址:https://pan.baidu.com/s/1QNGpapGuex00F6HQ5pynHg
tar -xzf jdk-8u60-linux-x64.tar.gz #安装jdk8 mkdir -p /usr/java/ mv jdk1.8.0_60 /usr/java/ sed -i.ori '$a export JAVA_HOME=/usr/java/jdk1.8.0_60 export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export CLASSPATH=.$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar' /etc/profile #这里可以用sed命令插入环境变量。 . /etc/profile
2、部署maven
maven包地址:https://pan.baidu.com/s/1gW271Ega4rsDOBP0sGTnKA
tar xf apache-maven-3.3.9-bin.tar.gz -C /usr/local/ mv /usr/local/apache-maven-3.3.9 /usr/local/maven sed -i.ori2 '$a export MAVEN_HOME=/usr/local/maven export PATH="$MAVEN_HOME/bin:$PATH"' /etc/profile . /etc/profile
3、部署tomcat8
tomcat8包地址:https://pan.baidu.com/s/1ofWg7k4umuiWpDdtZ4pqLw
tar xf apache-tomcat-8.0.27.tar.gz -C /usr/local/ mv /usr/local/apache-tomcat-8.0.27 /usr/local/tomcat echo 'export TOMCAT_HOME=/usr/local/tomcat'>>/etc/profile . /etc/profile
# 快速修改tomcat端口
sed -i 's#8005#8011#;s#8080#8081#' /usr/local/tomcat1/conf/server.xml #修改默认8005关闭tomcat的端口和8080http连接监听端口
sed -i 's#8005#8012#;s#8080#8082#' /usr/local/tomcat2/conf/server.xml
4、部署ant
ant包地址:https://pan.baidu.com/s/166vsbDpD4aAyzV-LHTWXhQ
tar xf apache-ant-1.9.6-bin.tar.gz -C /usr/local/ mv /usr/local/apache-ant-1.9.6 /usr/local/ant sed -i.ori2 '$a export ANT_HOME=/usr/local/ant export PATH="$ANT_HOME/bin:$PATH"' /etc/profile . /etc/profile
5、solr7安装
安装参考链接:https://blog.csdn.net/two_people/article/details/78983621