CentOS 5.5 Nginx+JDK+MySQL+Tomcat(jsp)

一.安装Nginx

http://blog.haohtml.com/archives/6051

二.安装jdk

http://blog.haohtml.com/archives/9765

三、安装apache tomcat
1、下载apache tomcat并安装tomcat

wget http://labs.renren.com/apache-mirror/tomcat/tomcat-7/v7.0.14/bin/apache-tomcat-7.0.14.tar.gz
tar zxvf apache-tomcat-7.0.14.tar.gz
mv apache-tomcat-7.0.14 /usr/local/tomcat
cp -rf /usr/local/tomcat/webapps/* /www/

2、配置tomcat的server.xml文件,并启动或停止tomcat Continue reading

用Tomcat绑定多域名

一、首先将端口改为80端口
打开server.xml文件
将其中的8080端口改为80,即:
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
改为:
<Connector port="80" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" /> Continue reading