Below you will find pages that utilize the taxonomy term “tomcat”
June 13, 2011
CentOS 5.5 Nginx+JDK+MySQL+Tomcat(jsp)
"一.安装Nginx\nhttp://blog.haohtml.com/archives/6051\n二.安装jdk\nhttp://blog.haohtml.com/archives/9765\n三、安装apache tomcat 1、下载apache tomcat并安装tomcat\nwget 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/\n2、配置tomcat的server.xml文件,并启动或停止tomcat\n#vim /usr/local/tomcat/conf/server.xml\n查找appBase=”webapps”,修改为appBase=”/www”,其中/www 即为网页的根目录。 安装完成后,启 …"
September 13, 2010
用Tomcat绑定多域名
"一、首先将端口改为80端口\n打开server.xml文件\n将其中的8080端口改为80,即:\nmaxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″\nenableLookups=”false” redirectPort=”8443″ acceptCount=”100″\nconnectionTimeout=”20000″ disableUploadTimeout=”true” /\u0026gt;\n改为:\nmaxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″\nenableLookups=”false” redirectPort=”8443″ acceptCount=”100″\nconnectionTimeout=”20000″ disableUploadTimeout=”true” /\u0026gt;\n二、然后更改默认访问站点:\n即\n默认的是localhost\n现在将其改为任意本机上绑定域名,如改为:\n这样做是为了防止进入Tomcat的默认管理页面!\n三、最后配置,即在前加入以下代 …"