准备安装包

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

apache为tomcat安装包

 

linux 中搭建nginx+ tomcat+ memcache

 

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

linux 中搭建nginx+ tomcat+ memcache

安装效果如下即可

linux 中搭建nginx+ tomcat+ memcache

 

安装tomcat

解压即可 

打开如下图为成功

linux 中搭建nginx+ tomcat+ memcache

编辑默认发布文件

linux 中搭建nginx+ tomcat+ memcache

 

linux 中搭建nginx+ tomcat+ memcache

测试结果

linux 中搭建nginx+ tomcat+ memcache

 

linux 中搭建nginx+ tomcat+ memcache

 

 

 

配置nginx

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

模块路径如下

linux 中搭建nginx+ tomcat+ memcache

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

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

linux 中搭建nginx+ tomcat+ memcache

 

make  make instal l

 

配置nginx文件

 

linux 中搭建nginx+ tomcat+ memcache

 

安装memcache

yum  install  memcache

启动服务

linux 中搭建nginx+ tomcat+ memcache

添加jar文件

linux 中搭建nginx+ tomcat+ memcache

配置文件

linux 中搭建nginx+ tomcat+ memcache

关闭开启后可以存储数据

停止node1后自动存储至node2上

linux 中搭建nginx+ tomcat+ memcachelinux 中搭建nginx+ tomcat+ memcache

相关文章:

  • 2021-07-02
  • 2021-11-05
  • 2021-08-18
  • 2022-01-16
  • 2021-07-04
  • 2021-08-09
猜你喜欢
  • 2021-05-07
  • 2021-09-15
  • 2022-01-16
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案