CentOS 5 安装 Resin 4
搜索resin
先要安装JDK6
下载resin:
cd ~
wget http://www.caucho.com/download/resin-4.0.27.tar.gz
解压:
tar -xvf resin-4.0.27.tar.gz
mkdir -p /usr/local/resin
mv resin-4.0.27 /usr/local/resin
mkdir -p /var/www
mkdir -p /var/log/resin
mkdir -p /etc/resin
配置
./configure –prefix=/usr/local/resin \
–with-resin-root=/var/www \
–with-resin-log=/var/log/resin \
–with-resin-conf=/etc/resin \
–with-java-home=/usr/java/default
注意:\后面不能有空格
报no acceptable C compiler found in $PATH,少了gcc
yum install gcc
再一次./configure…
Resin Configuration summary:
RESIN_HOME : /usr/local/resin
root : /var/www
conf : /etc/resin
log : /var/log/resin
plugins : common resin_os resinssl
init : /etc/init.d/resin
JAVA_HOME: /usr/java/default
+ 64-bit JNI in -I/usr/java/default/include -I/usr/java/default/include/linux
+ JNI CFLAGS:
+ epoll() for keepalives
+ not using OpenSSL
编译安装
make && make install
make install时报错,如果是文件重复是没有问题的,不要管他
….
/etc/init.d/resin installed.
vim /etc/init.d/resin 修改JAVA_HOME和RESIN_HOME,如果配置了./configure和JAVA_HOME,这儿也是不需要改的
卸载
rm -rf /usr/local/resin
rm -rf /var/www
rm -rf /var/log/resin
rm -rf /etc/resin
服务
service resin start|stop
程序应该应该放在/usr/local/resin/webapps/ROOT目录下