###安装依赖包:

yum install gcc gcc++ openssl openssh


###安装jdk:

tar -zxvf jdk-7u45-linux-x64.gz

mv jdk1.7.0_45 ../soft/


###linux 下的java环境变量的添加:

vim /etc/profile/


export JAVA_HOME=/opt/soft/jdk1.7.0_45

export JRE_HOME=/opt/soft/jdk1.7.0_45/jre

export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH

export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH


###生效环境变量:

source /etc/profile


### 测试java是否安装成功:

java -version


###出现如下内容,java安装成功

java version "1.7.0_45"

Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

[root@vm1 bin]# vim /etc/profile


###下载resin:

wget http://www.caucho.com/download/resin-4.0.37.tar.gz


###解压安装resin

tar -zxvf resin-4.0.37.tar.gz

cd resin-4.0.37

./configure --prefix=/opt/soft/resin/ --enable-64bit

make && make install


###启动resin:

/opt/soft/resin/bin/resin.sh start


###访问resin服务:

http://192.168.80.157:8080/


###去掉以下行的#号:

vim /opt/soft/resin/conf/resin.properties


web_admin_external : true


###注册用户

admin

che100


###注册之后会生成admin-users.xml.generated 修改配置文件:

cp /opt/soft/resin/conf/admin-users.xml.generated  /opt/soft/resin/conf/admin-users.xml



###访问resin主页,进入管理页面

http://192.168.80.157:8080/    

点   Administration is available at /resin-admin.