- 系统环境:CentOS6.0x86_64
- Nginx版本:Nginx-1.2.6
- Resin版本:Resin-4.0.33
- JDK版本: JDK-1.6.0_18
- #首先下载需要安装的软件:【JDK可以去java官网下载并安装】
- wget http://nginx.org/download/nginx-1.2.6.tar.gz
- wget http://www.caucho.com/download/resin-4.0.33.tar.gz
- tar zxvf nginx-1.2.6.tar.gz
- cd nginx-1.2.6/
- ./configure --user=www --group=www --add-module=../ngx_cache_purge-1.4
- \--prefix=/usr/local/nginx\--with-http_stub_status_module --with-http_ssl_module
- make && make install
- tar –xzvf resin-4.0.33.tar.gz
- cd resin-4.0.33 &&./configure --prefix=/usr/local/resin
- \--with-resin-log=/data/logs/resin/ --with-java-home=/usr/java/jdk1.6.0_18/
- make &&make install
- #cd /usr/local/resin/conf/下
- #添加如下代码,在本机配置两个实例端口为8080、8081
- <cluster id="app1">
- <!-- define the servers in the cluster -->
- <server-multi id-prefix="app1" address-list="${app1_servers}" port="6800"/>
- <!-- the default host, matching any host name -->
- <host id="" root-directory=".">
- <web-app id="/" root-directory="/var/www/html/app1"/>
- </host>
- </cluster>
- <cluster id="app2">
- <!-- define the servers in the cluster -->
- <server-multi id-prefix="app2" address-list="${app2_servers}" port="6801"/>
- <!-- the default host, matching any host name -->
- <host id="" root-directory=".">
- <web-app id="/" root-directory="/var/www/html/app2"/>
- </host>
- </cluster>
- # app-tier Triad servers: app-0 app-1 app-2
- app1_servers : 127.0.0.1:6800
- app2_servers : 127.0.0.1:6801
- # Use overrides for individual server control, for example: app-0.http : 8081
- app1.http : 8080
- app2.http : 8081
- /usr/local/resin/bin/resinctl start 即可
- 然后查看resin 端口 netstat –tnl 我们会看到8080、8081端口
相关推荐
泛微 ecology nginx+resin集群部署说明文档,详细讲解ecology 集群部署的实施方式方法及步骤。
ffmpeg+nginx+nginx-rtmp-module搭建个人直播平台。 使用说明(ffmpeg+nginx+rtmp-module已经整合,支持HTTP,具体配置查看conf/nginx.conf): 1.解压后,运行nginx_start.bat。(查看监控状态 ...
Apache + nginx + resin 详细配置
NULL 博文链接:https://xiaoshan5634.iteye.com/blog/963307
RabbitMQ+Zookeeper+Dubbo+Nginx+Mysql+Redis搭建.txtRabbitMQ+Zookeeper+Dubbo+Nginx+Mysql+Redis搭建.txtRabbitMQ+Zookeeper+Dubbo+Nginx+Mysql+Redis搭建.txt
大型电商项目实战1:Redis+Rest+Linux+Nginx+Spring+SpringMVC实现JAVA高并发秒杀系统,baidu链接,谢谢
Nginx + uwsgi + web.py 搭建web服务器, 也包含一整套python服务器后台框架代码,简单方便,容易搭建。
基于CentOS 5.4搭建nginx+php+spawn-fcgi+mysql高性能php平台
用FFmpeg+nginx+rtmp搭建环境实现推流
超详细Nginx+Tomcat+Redis搭建高性能负载均衡集群Session共享搭建说明,按文档步骤可轻松搭建并实现session共享
Nginx+Tomcat高性能负载均衡集群搭建(模板)
nginx+apache+mysql+php+memcached+squid搭建门户网站
resin+nginx+使用说明文档,还附带有常用的配置文档。
Centos+Nginx+UWSGI+Django搭建高性能WEB服务器 很不错的资料,需要的可以下载看看
海康视频平台rtsp转码成...通过nginx+ffmpeg+videojs+java解析代码 最终把整体的项目展示出来,需要的同学可以参考一下,csdn中刚写好的《java 对接海康视频平台 nginx+ffmpeg转流服务,videojs实现播放》文章可以参考
构架Nginx+PHP(Fastcgi)+MySQL+Memcache高性能web服务器
基于java搭建的流媒体服务器(nginx+ffmpeg)可运行在linux上,具体文章说明:https://blog.csdn.net/weixin_40263855/article/details/87917484
Nginx+Uwsgi+Django(python3)+Vue部署,一步步实现。网上找了N多篇文章都没成功,特意记录,以免其他同学踩坑
Win+Nginx+PHP+MySQL环境搭建.docx