http://wiki.ubuntu.org.cn/Nginx
sudo apt-get install nginx
sudo /etc/init.d/nginx start
sudo dpkg -i XX.deb 配置tomcat upstream tomcat{ server 192.168.1.238:8081; } server { listen 80; server_name 192.168.1.238; charset utf-8; #access_log logs/host.access.log main; proxy_connect_timeout 5; proxy_read_timeout 3600; proxy_send_timeout 3600; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://tomcat; } }