何5290 发表于 2016-1-21 12:26:10

linux安装resin4

1)下载resin4
wget http://www.caucho.com/download/resin-4.0.15.tar.gz

2)解压 tar zxvf resin-4.0.15.tar.gz
3)cd resin-4.0.15
4)./configure
5)make
6)make install
7)启动service resin start
//访问http://localhost:8080 可能会404
7.1)修改resin的网站根目录
    7.1.1)打开resin的启动文件查看配置文件在哪
   cat /etc/init.d/resin
   找到
   RESIN_CONF="-conf /etc/resin/resin.xml"
    7.1.2)打开resin配置文件
   <web-app id="/" root-directory="***resinhome*****/webapps/ROOT"/>
    7.1.3)重启 service resin restart
    7.1.4 ) 访问 http://localhost:8080 一切正常
8)更改默认网站目录
8.1)创建自己的目录
mkdir -p /data/limaoyuan
8.2 ) 创建自己的jsp
新建 vim myindex.jsp
   <%@ page session="false"%>
<html>
<head><title>my index</title></head>
<body>
limaoyuan's index
</body>
</html>
   保存 :wq!
   8.3)更改 /etc/resin/resin.xml 中 <web-app id="/" root-directory="/data/limaoyuan"/>
   8.4) 重启 service resin restart
9)关闭 service resin stop
页: [1]
查看完整版本: linux安装resin4