标签:nginx+tomcat web站(linux) jsp 服务器
Nginx+Tomcat web站(Linux)
1、Nginx+Tomcat Web站
2、JDK+Apache Tomcat (jsp)服务器配置(Windows)
OS
IP
子网掩码
路由网关
Centos6.6
nginx
Eth0:192.168.26.211
255.255.252.0
192.168.25.3
Eth1:192.168.30.3
24
Centos6.6
tomcat
Eth0:192.168.30.1
24
Win7
client
Eth0:192.168.25.159
255.255.252.0
192.168.25.3
node1:设置IP:ifconfig eth0 192.168.30.1/24 up
ip a
node2:双网卡
ifconfig eth0 192.168.26.211/22 up
ifconfig eht1 192.168.30.3/24 up
ip a
安装NGINX:
配置 nginx配置文件:vim /etc/nginx/nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main ‘$remote_addr - $remote_user [$time_local] "$request" ‘