dk版本:7u60 tomcat版本:7.0.54
新建用户aiwm 密码为aiwm@CUWO
useradd aiwm
passwd aiwm
切换到root用户,直接修改/etc/passwd文件 aiwm:x:501:501::/opt/:/bin/bash或者usermod -d /opt aiwm
安装步奏:
1.挂载vdb到/opt目录下面:
mkfs.ext4 /dev/vdb
mount /dev/vdb /opt
2.安装jdk:
在/opt新建aiwm/Java文件夹并把jdk安装包上传至Java目录
tar zxvf jdk-7u60.tar.gz
vim /etc/profile添加
export JAVA_HOME=/usr/java/jdk1.7.0_60
export CLASSPATH=/usr/java/jdk1.7.0_60/lib
export PATH=$JAVA_HOME/bin:$PATH
进入/usr/bin
cd /usr/bin
做软连接
ln -s -f /opt/aiwn/java/jdk1.7.0_60/jre/bin/java
3.安装tomcat
将tomcat上传至/opt/awim/tomcat并解压
tar zxvf apache-tomcat-7.0.54.tar.gz
mv apache-tomcat-7.0.54 tomcat_1
将DocumentPreview上传至/opt/aiwm/tomcat/tomcat_1/webapp
tar zxvf apache-tomcat-7.0.54.tar.gz
mv apache-tomcat-7.0.54 tomcat_2
将DocumentPreview上传至/opt/aiwm/tomcat/tomcat_2/webapp
更改tomcat_2的监听端口
vim /opt/awim/tomcat/tomcat_2/conf/server.xml
将8080,8443分别改为8081和8444
<Connector port="8010" protocol="AJP/1.3" redirectPort="8444" />
192.168.1.4部署
scp -r root@192.168.1.2:/opt/aiwm/tomcat /opt/aiwm/
修改tomcat的jvm
原文地址:http://chicozy.blog.51cto.com/8521389/1626452