linux 中搭建nginx+ tomcat+ memcache

准备安装包

nginx good为扩展模块 提供sticky功能

apache为tomcat安装包

jdk为tomcat需要的环境  rpm安装即可

安装效果如下即可

安装tomcat

解压即可 

打开如下图为成功

编辑默认发布文件

测试结果

配置nginx

通过源码安装  可以添加sticky模块

模块路径如下

./configure  --prefix=/usr/local/lnmp/nginx  --with-http_ssl_module  --with-http_stub_status_module --user=nginx --group=nginx --with-threads  

添加模块语法由--help查看

 

make  make instal l

配置nginx文件

 

 

安装memcache

yum  install  memcache

启动服务

添加jar文件

配置文件

关闭开启后可以存储数据

停止node1后自动存储至node2上

猜你喜欢

转载自blog.csdn.net/iaMay_____/article/details/81461097