510 views
Liunx-服务安装

安装Resion3.1.8

JDK下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

Resion下载地址:http://www.caucho.com/download/resin-3.1.8.tar.gz

一、安装jdk-6u27-linux-x64.bin

安装步骤:

[code]sh jdk-6u27-linux-x64.bin[/code]

将安装完的jdk1.6.0_27目录移动到/usr/local/下

vi /etc/profile 在最后面加入以下内容:

[code]

JAVA_HOME=/usr/local/jdk1.6.0_27

JAVA_BIN=/usr/local/jdk1.6.0_27/bin

PATH=$PATH:$JAVA_HOME/bin

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export JAVA_HOME JAVA_BIN PATH CLASSPATH

[/code]

然后[code] source /etc/profile[/code]

[code] cd /usr/bin

ln -s -f /usr/local/jdk1.6.0_27/jre/bin/java

ln -s -f /usr/local/jdk1.6.0_27/bin/javac[/code]

测试:

[code]

java

javac

[/code]

二、安装Resion

[code]tar zxf resin-3.1.8.tar.gz

cd resin-3.1.8

./configure –prefix=/usr/local/resion –with-java=/usr/local/jdk1.6.0_27/

make&&make install

[/code]

启动:

/usr/local/resion/bin/http.sh start

正常情况下,会提示

Resin/4.0.24 started -server ‘app-0’ for watchdog at 127.0.0.1:6600

这时就启动成功了。

注:启动稍微有点慢tail -f /usr/local/resion/log/jvm-default.log看启动日志

Leave a Reply

影子专属博客 赣ICP备17013143号