2018年6月13日

摘要: 一.环境介绍 Linux: CentOS 7 64位系统 Nginx: 版本1.9.5 Tomcat: 版本7.0 Redis: 3.0.4 使用nginx做负载均衡, 2台tomcat应用服务器, 使用redis统一存储session 准备2台linux服务器 服务器A: ip 192.168.1 阅读全文
posted @ 2018-06-13 18:10 猫咪233 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 第一步:下载redis安装包 wget http://download.redis.io/releases/redis-4.0.6.tar.gz 1 2 3 4 5 6 7 8 9 10 11 [root@iZwz991stxdwj560bfmadtZ local]# wget http://dow 阅读全文
posted @ 2018-06-13 18:08 猫咪233 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 前提:已经配置好静态IP 以防万一,先安装好iptables服务(不管你装没装,先执行,免得后面添乱) [root@localhost ~]# yum install iptables-services [root@localhost ~]# systemctl mask firewalld.ser 阅读全文
posted @ 2018-06-13 16:24 猫咪233 阅读(622) 评论(0) 推荐(0) 编辑
摘要: upstream tomcat { server 127.0.0.1:82;}location / { proxy_pass http://tomcat;}如上配置,反向代理后,使用http://test.xxx.com/访问,但是页面中的链接变成了:http://tomcat:82/xxxx.ht 阅读全文
posted @ 2018-06-13 16:21 猫咪233 阅读(906) 评论(0) 推荐(0) 编辑

导航