安装完成后续工作
1、申请试用60天版license()
2、按需求修改license文件,例如server-count,expire-date
Production
adm@ibm.com (adm)
100
1276811283000
4432571283000
4432571283000
3、将license文件复制到~/resin3/licenses目录
$mkdir ~/resin3/licenses
$cp ~/Documents/resin-pro.license ~/resin3/licenses/
4、准备工作基本就绪,可以启动了
$java -jar ~/resin3/lib/resin.jar start
Resin/3.1.10 started -server '' for watchdog at 127.0.0.1:6600
查看启动日志文件
$cat ~/resin3/log/jvm-default.log
Resin-3.1.10 (built Tue, 23 Feb 2010 02:57:09 PST)
Copyright(c) 1998-2008 Caucho Technology. All rights reserved.
resin-pro.license -- 100 Production servers adm@ibm.com (adm)
Starting Resin on Sun, 20 Jun 2010 07:08:12 +0800 (CST)
[07:08:13.650] {main} Proxy Cache disk-size=1024M memory-size=64M
[07:08:13.659] {main} PingThread[] starting, checking []
[07:08:13.799] {main}
[07:08:13.799] {main} Mac OS X 10.6.4 x86_64
[07:08:13.800] {main} Java(TM) SE Runtime Environment 1.6.0_20-b02-279-10M3065, EUC_CN, zh
[07:08:13.800] {main} Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279, 64, mixed
[07:08:13.801] {main} jmx-remote disabled. jmx-remote requires at least one enabled management
[07:08:13.963] {main} WebApp[] active
[07:08:14.033] {main} WebApp[/resin-admin] active
[07:08:14.232] {main} WebApp[/resin-doc] active
[07:08:14.233] {main} Host[] active
[07:08:14.237] {main} Loaded Socket JNI library.
[07:08:14.241] {main} hmux listening to ereg.:6800
[07:08:14.245] {main} http listening to *:8008
[07:08:14.246] {main} Server[id=,cluster=app-tier] active
[07:08:14.247] {main} Resin started in 1603ms
$ cat ~/resin3/log/watchdog-manager.log
[2010/06/20 07:08:11.576]
[2010/06/20 07:08:11.577] Mac OS X 10.6.4 x86_64
[2010/06/20 07:08:11.577] Java(TM) SE Runtime Environment 1.6.0_20-b02-279-10M3065, EUC_CN, zh
[2010/06/20 07:08:11.577] Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279, 64, mixed mode, Apple Inc.
[2010/06/20 07:08:11.581]
[2010/06/20 07:08:11.592] Host[resin-admin] active
[2010/06/20 07:08:11.595] Socket JNI library is not available.
[2010/06/20 07:08:11.595] Resin will still run but performance will be slower.
[2010/06/20 07:08:11.595] To compile the Socket JNI library on Unix, use ./configure; make; make install.
[2010/06/20 07:08:11.598] hmux listening to ereg.:6600
[2010/06/20 07:08:11.603] Server[id=,cluster=] active
[2010/06/20 07:08:11.652] WebApp[] active
[2010/06/20 07:08:11.688] WatchdogProcess[Watchdog[],1] starting Resin
注意红色字体部分:
从jvm日志看,已经成功启动了pro版,server-count为100,并且JNI库已经装入,但从watchdog日志看JNI不可用。实际安装已经没有问题,只是需要设定LD_LIBRARY_PATH
$export DYLD_LIBRARY_PATH=~/resin3/libexec64
$java -jar ~/resin3/lib/resin.jar restart
$ cat ~/resin3/log/watchdog-manager.log
[2010/06/20 07:08:11.576]
[2010/06/20 07:08:11.577] Mac OS X 10.6.4 x86_64
[2010/06/20 07:08:11.577] Java(TM) SE Runtime Environment 1.6.0_20-b02-279-10M3065, EUC_CN, zh
[2010/06/20 07:08:11.577] Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279, 64, mixed mode, Apple Inc.
[2010/06/20 07:08:11.592] Host[resin-admin] active
[2010/06/20 07:08:11.595] Socket JNI library is not available.
[2010/06/20 07:08:11.595] Resin will still run but performance will be slower.
[2010/06/20 07:08:11.595] To compile the Socket JNI library on Unix, use ./configure; make; make install.
[2010/06/20 07:08:11.598] hmux listening to ereg.:6600
[2010/06/20 07:08:11.603] Server[id=,cluster=] active
[2010/06/20 07:08:11.652] WebApp[] active
[2010/06/20 07:08:11.688] WatchdogProcess[Watchdog[],1] starting Resin
[2010/06/20 07:22:10.435] Watchdog stop:
[2010/06/20 07:22:10.436] WatchdogProcess[Watchdog[],1] stopping Resin
[2010/06/20 07:22:16.842]
[2010/06/20 07:22:16.843] Mac OS X 10.6.4 x86_64
[2010/06/20 07:22:16.843] Java(TM) SE Runtime Environment 1.6.0_20-b02-279-10M3065, EUC_CN, zh
[2010/06/20 07:22:16.844] Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279, 64, mixed mode, Apple Inc.
[2010/06/20 07:22:16.848]
[2010/06/20 07:22:16.862] Host[resin-admin] active
[2010/06/20 07:22:16.865] Loaded Socket JNI library.
[2010/06/20 07:22:16.868] hmux listening to ereg.:6600
[2010/06/20 07:22:16.872] Server[id=,cluster=] active
[2010/06/20 07:22:16.955] WebApp[] active
[2010/06/20 07:22:16.984] WatchdogProcess[Watchdog[],1] starting Resin
一切OK?
还有~/resin3/bin/httpd.sh好像有问题,其实还需要设置环境变量JAVA_HONE或JAVA_EXE
$export JAVA_EXE=java
$~/resin3/bin/httpd.sh restart
阅读(3527) | 评论(2) | 转发(0) |