Use Nginx reverse proxy tomcat server

outline 1. Tomcat BasicConfiguration 1. Provide SysV scripts for Tomcat 2. catalina script explanation 3. Telnet login management Tomcat 4. ConfigurationTomcat virtual host 5.Tomcat graphical management interface 6. Deployment of JSP website case Two, NginxreverseproxyTomcatserver > 1. Nginx will request reverseproxy to backend Tomcat 2. Nginx caches images locally 3. Nginx separates requests from static and dynamic Note, description of experimental environment, operating system: CentOS 6.4 x86_64, software version: jdk-7u40, apache-tomcat-7.0.42, Nginx-1.4.2, please download the software used in the blog here: http://yunpan.cn/QGBCLwrZnpLMS. 1. Tomcat BasicConfiguration 1. Provide SysV scripts for Tomcat Note, in the previous blog post, we have demonstrated the installation of Tomcat, and we will not demonstrate it here. For bloggers who are not clear, you can refer to this blog post, http://freeloda.blog.51cto.com/2033581/1299644, on In a blog post, we did not add the SysV script. In this blog post, we will add it. Let’s demonstrate it in detail below. [root@tomcat ~]# vim /etc/init.d/tomcat #!/bin/sh # Tomcat init script for Linux. # # chkconfig: 2345 96 14 # description: The Apache Tomcat servlet/JSP container. CATALINA_HOME=/usr/local/tomcat #Pay attention to your script path export CATALINA_HOME # export CATALINA_OPTS=”-Xms128m -Xmx256m” exec $CATALINA_HOME/bin/catalina.sh $* Next, let’s increase the execution permission and add the…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索