java
jdk
/etc/profile文件中加入如下内容:
export JAVA_HOME=/usr/java/jdk1.8.0_121
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:$PATH
tomcat
http://apache.fayea.com/tomcat/tomcat-8/v8.5.11/bin/apache-tomcat-8.5.11.tar.gz
tar -zxv -f apache-tomcat-8.5.11.tar.gz
mv apache-tomcat-8.5.11 tomcat
/usr/java/tomcat/bin/startup.sh
/usr/java/tomcat/bin/shutdown.sh
vi /etc/sysconfig/iptables
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
service iptables restart
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="admin" password="123456" roles="manager-gui,admin-gui"/>
zookeeper
wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.4.9/zookeeper-3.4.9.tar.gz
tar -zxv -f zookeeper-3.4.9.tar.gz
mv zookeeper-3.4.9 zookeeper
tickTime=2000
dataDir=/usr/java/zookeeper/data
dataLogDir=/usr/java/zookeeper/dataLog
clientPort=2181
/etc/profile文件中加入如下内容:
export ZOOKEEPER_HOME=/usr/java/zookeeper
export PATH=.:$ZOOKEEPER_HOME/bin:$JAVA_HOME/bin:$PATH
-A INPUT -p tcp -m state --state NEW -m tcp --dport 2181 -j ACCEPT