Centos 7中编译安装resin过程

一、安装resin要先安装jdk

安装过程请参考:https://blog.csdn.net/wlh525/article/details/98638418

二、安装resin

1、下载地址:http://www.caucho.com/download/resin-4.0.24.tar.gz

2、将安装包上传至linux服务器中(路径随意,但第三方安装的软件建议安装在opt目录下),解压

# tar -zxvf resin-4.0.24.tar.gz                   #解压

3、提前安装好gcc和openssl,否则会编译出错

# yum -y install openssl openssl-devel

4、编译安装resin

# cd resin-4.0.24/
# ./configure --prefix=/opt/resin --with-java-home=/opt/jdk
# make && make install

 

三、一些配置

1、查看resin的版本号:

# cd /opt/resin/lib
# java -classpath ./resin.jar com.caucho.Version

 

 2、配置文件

2.1、Resin4配置文件发生了较大变化,分为:

        app-default.xml  web应用配置

       cluster-default.xml  集群配置

       health.xml -- 非pro版不支持  

       resin.xml

       resin.properties  会被修改的变量

2.2、 Resin4启动默认有三个端口:

        watch dog 用的6600 (配置文件里没有)

        Http端口:8080 (对应app.http)

        Server监听端口: 127.0.0.1:6800 (对应app_servers )

2.3、 自定义端口(resin.properties)

  resin.properties中修改server端口 

# vim /opt/resin/resin.properties
将端口改为6801进行测试
# /opt/resin/bin/resin.sh restart

 

 resin.properties中修改http端口   

3、浏览器方位:http://ip:8080端口

 
发布了18 篇原创文章 · 获赞 2 · 访问量 2914

猜你喜欢

转载自blog.csdn.net/wlh525/article/details/103021919