1)下载resin4
2)解压
3)
4)
5)
6)
7)启动
//访问http://localhost:8080 可能会404
7.1)修改resin的网站根目录
7.1.1)打开resin的启动文件查看配置文件在哪
找到
7.1.2)打开resin配置文件
7.1.3)重启
7.1.4 ) 访问 http://localhost:8080 一切正常
8)更改默认网站目录
8.1)创建自己的目录
8.2 ) 创建自己的jsp
新建
保存
8.3)更改
8.4) 重启 service resin restart
9)关闭
wget http://www.caucho.com/download/resin-4.0.15.tar.gz2)解压
tar zxvf resin-4.0.15.tar.gz3)
cd resin-4.0.154)
./configure5)
make6)
make install7)启动
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 restart7.1.4 ) 访问 http://localhost:8080 一切正常
8)更改默认网站目录
8.1)创建自己的目录
mkdir -p /data/limaoyuan8.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
Resin 4.x 安装与配置
本文介绍如何安装 Resin 4.x 并进行基本配置,包括下载、解压、编译安装等步骤,并详细说明了如何更改 Resin 的默认网站根目录。
225

被折叠的 条评论
为什么被折叠?



