install resin4.0.29 for linux
1.下载resin,resin普通版本和pro版本主要区别是pro支持缓存和负载均衡。pro因为有强大的cache功能,独立作为web服务器处理静态页面性能都可以和apache有一比。但普通版本独立作为web服务器性能就要差一些。当然可以使用apache+resin的方案借助apache的缓存功能提高性能。 但负载均衡就是普通版不能比的了。
1.tar -vzxf resin-4.0.x.tar.gz
2.
./configure --prefix='pwd' \
--prefix=/opt/resin-4.0.23 \
--with-java-home=/usr/jdk1.6.0_29 \
--with-resin-root=/opt/resin-4.0.23 \
--with-resin-log=/opt/resin-4.0.23/log \
--with-resin-conf=/opt/resin-4.0.23/conf \
--enable-64bit #需要在resin.xml中加入<jvm-arg>-d64</jvm-arg>
make make install
3.创建后台账户
<resin:set var="resin_admin_external" value="false"/>的value改为true
http://localhost:8080/resin-admin/ 填入你的账号
将conf下的admin-users.xml.generated文件重命名为admin-users.xml 重启
启用SSL
./configure --prefix=/usr/yofogo/server/resin-pro-4.0.48 --with-java-home=/usr/yofogo/java --with-resin-root=/usr/yofogo/server/resin-pro-4.0.48 --with-resin-log=/usr/yofogo/server/resin-pro-4.0.48/log --with-resin-conf=/usr/yofogo/server/resin-pro-4.0.48/conf --enable-ssl --with-openssl=/usr --enable-64bit Resin Configuration Summary: RESIN : 4.0.48 home : /usr/yofogo/server/resin-pro-4.0.48 root : /usr/yofogo/server/resin-pro-4.0.48 conf : /usr/yofogo/server/resin-pro-4.0.48/conf log : /usr/yofogo/server/resin-pro-4.0.48/log plugins : common resin_os resin resinssl init : /etc/init.d/resin JAVA_HOME : /usr/yofogo/java JNI : 64-bit include : -I/usr/yofogo/java/include -I/usr/yofogo/java/include/linux CFLAGS : cflags_shlib : -fpic ld_shlib : gcc ldflags_shlib : -shared -fPIC -m64 libs_shlib : epoll() for keepalives OPENSSL : OpenSSL 1.0.1e-fips 11 Feb 2013 include : /usr/include lib : /usr/lib libraries : -lssl -lcrypto
参考:
http://caucho.com/resin-4.0/admin/starting-resin-install.xtp#InstallingResinonUnixorMacOSX
http://www.caucho.com/resin-4.0/admin/starting-resin.xtp#quickstart
http://www.caucho.com/resin-4.0/admin/starting-resin-command-line.xtp