Resin学习笔记

1.jdk环境变量设置

  cat <<EOF>>/etc/profile
  export JAVA_HOME=/usr/local/jdk
  export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
  export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOMR/bin
  export RESIN_HOME=/usr/local/resin
  EOF

 

2. 定义server

  <server id='asling' address='192.168.0.61' port='6911' watchdog-port='6921'>
  <http address="*" port="8080"/>
  <jvm-arg>-Xmx256m</jvm-arg>
  <jvm-arg>-Xss1m</jvm-arg>
  <jvm-arg>-Xdebug</jvm-arg>
  <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
  <memory-free-min>1M</memory-free-min>
  <thread-max>256</thread-max>
  <socket-timeout>65s</socket-timeout>
  <keepalive-max>128<keepalive-max>
  <keepalive-timeout>15s</keepalive-timeout>
  </server>

 

 3. Resin整合Apache

    安装支持库

    yum install -y zlib libxml libjpeg freetype libpng gd curl libiconv zlib-devel libxml2-devel lib-jpeg-devel freetype-devel libpng-devel gd-devel curl-devel pcre pcre-devel

 

   编译安装apache(目前测试只支持httpd-2.2.31,配合resin版本为3.1.13)

./configure --prefix=/usr/local/apache --enable-deflate --enable-headers --enable-modules=so --enable-so --with-mpm=worker --enable-rewrite

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

  

   

 

 

 


你可能感兴趣的:(Resin学习笔记)