部署resin3的一些注意事项

作者: 2hei 发表于2007年11月18日 20:47
版权声明: 可以转载, 转载时务必以超链形式标明文章原始出处和作者信息及版权声明
http://www.2hei.net/mt/2007/11/resin-tart-in-linux.html

一直使用resin2.x版本,不过一直没有太多深入研究,最近在升级resin3版本时遇到很多问题,无意中发现一些大的网站后台也在使用resin,具体是谁我这里就不详细说明了,不过看到的都是比较老的版本,2.1.3甚至更老的2.0.4,配置了负载,并且与apache结合使用。

下面是从resin3文档在linux下使用时总结的一些东西:

Deployment Directories When deploying, it's a good idea to create a bit of structure to make Resin and website upgrades easier and more maintainable.

1、Create a user to run Resin (e.g. resin or another non-root user)

2、Link /usr/local/share/resin to the current Resin version. This is $RESIN_HOME.

3、Create a deployment root, e.g. /var/www, owned by the resin user. This is $RESIN_ROOT.

4、Put the modified resin.conf in /etc/resin/resin.conf

5、Put the site documents in /var/www/webapps/ROOT.

6、Put any .war files in /var/www/webapps.

7、Put any virtual hosts in /var/www/hosts/www.foo.com.

8、Output logs will appear in /var/www/log.

9、Create a startup script and configure the server to start it when the machine reboots.

10、start/stop and the watchdog process

unix> java -jar /usr/local/share/resin/lib/resin.jar \

         -conf /etc/resin/resin.conf \

         start

Configure the location of Java in JAVA_HOME

Configure the location of Resin in RESIN_HOME

Configure your web site directory in RESIN_ROOT

Select a server and pid file if you have multiple Resin servers. Start and stop the Resin daemon.

当然你可以自己写启动resin的脚本,也可以让resin跟随系统启动而一起启动。

| | Comments (0) | TrackBacks (0)

发表一个评论

关于这篇文章

这篇文章由2hei2007年11月18日 20:47发布.

上一篇:几张漂亮的Freebsd桌面图片

下一篇:apache2 install with useful modules

回到首页 或者查看归档文章

  • Powered by FeedBurner
  • Add to Google Reader or Homepage
  • Add to My AOL
  • Subscribe in NewsGator Online
  • del.icio.us/2heidel.icio.us/2hei
  • Subscribe to feed feeds