#下载jdk-8u40-linux-x64.tar.gz
cd /usr/local/src
tar -zxvf jdk-8u40-linux-x64.tar.gz
vim /etc/profile
#在最后添加
JAVA_HOME=/usr/local/src/jdk1.8.0_40
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile
#tomcat安装 apache-tomcat-7.0.41.tar.gz
cd /usr/local/src
tar -zxvf apache-tomcat-7.0.41.tar.gz
cd apache-tomcat-7.0.41
./bin/startup.sh
./bin/shutdown.sh
#查看tomcat日志
tail -f /usr/local/src/apache-tomcat-7.0.41/logs/catalina.out
#jenkins搭建
#JENKINS.IO下载jenkins.war 2.67版.8080端口,不要冲突
java -jar jenkins.war
#生成密码 /root/.jenkins/secrets/initialAdminPassword
447b7029cab44b7cb3d03a14d3d388d4
install suggested plugins