当前位置: 首页 > news >正文

快速网站排名提升论文网站建设与运营

快速网站排名提升,论文网站建设与运营,建设企业人力资源网站,建设一个网站的基本成本一、部署方法 多实例可以运行多个不同的应用#xff0c;也可以运行相同的应用#xff0c;类似于虚拟主机#xff0c;但是他可以做负载均衡。 方式一#xff1a; 把tomcat的主目录挨个复制#xff0c;然后把每台主机的端口给改掉就行了。 优点是最简单最直接#xff0c;…一、部署方法 多实例可以运行多个不同的应用也可以运行相同的应用类似于虚拟主机但是他可以做负载均衡。 方式一 把tomcat的主目录挨个复制然后把每台主机的端口给改掉就行了。 优点是最简单最直接缺点是会占用更多的物理空间。 方法二 就用一个tomcat然后用这一个tomcat去启动多个tomcat实例出来这样就不用复制多份只用一个tomcat就行但是呢个别的数据目录就得有多个因为你不可能几个共用同一个数据目录的。 优点是更节省你的物理空间缺点是比较复杂。 二、多实例配置过程 这里用方法二作为展示我们来配置三个实例 instance1:                                                                                         /usr/local/tomcat/multi-ins/instance1/{conf,logs,temp,work,webapps} 8081 9001 10001 instance2: /usr/local/tomcat/multi-ins/instance2/{conf,logs,temp,work,webapps} 8082 9002 10002 instance3: /usr/local/tomcat/multi-ins/instance3/{conf,logs,temp,work,webapps} 8083 9003 10003 这里的三个端口以instance 1为例8081对应的是你的8080端口也就是tomcat默认的HTTP服务端口9001对应的是你的8005端口也就是tomcat 的关闭端口用于接收关闭tomcat服务器的命令10001对应的是你的8009端口也就是 tomcat 默认的AJP协议端口主要用于tomcat和其他web服务器之间的通信  1.配置instance18081 9001 10001 创建目录拷贝修改配置—— [rootxxx /]# mkdir -p /usr/local/tomcat/multi-ins/instance1 [rootxxx /]# cp -r /usr/local/tomcat/{conf,logs,temp,work,webapps} /usr/local/tomcat/multi-ins/instance1/ [rootxxx /]# vim /usr/local/tomcat/multi-ins/instance1/conf/server.xml 考虑到在操作的过程中可能出现失误把全部配置搞丢了而且没有做备份在本文章的末尾我会把全配置给粘贴过去不在开头复制是为了避免开头的篇幅过长还请见谅 说明这个配置文件里面的注释符号是!-- 内容 -- 如果之前做过虚拟主机请把他们给注释掉以免影响测试 修改发布目录—— Host namelocalhost  appBase/usr/local/tomcat/multi-ins/instance1/webapps             unpackWARstrue autoDeploytrue         !-- SingleSignOn valve, share authentication between web applications              Documentation at: /docs/config/valve.html --         !--         Valve classNameorg.apache.catalina.authenticator.SingleSignOn /         --         !-- Access log processes all example.              Documentation at: /docs/config/valve.html              Note: The pattern used is equivalent to using patterncommon --         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixlocalhost_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host   修改端口——  Server port9001 shutdownSHUTDOWN   !-- Security listener. Documentation at /docs/config/listeners.html   Listener classNameorg.apache.catalina.security.SecurityListener /  Connector port8081 protocolHTTP/1.1                connectionTimeout20000                redirectPort8443 / !-- Define an AJP 1.3 Connector on port 8009 --     Connector port10001 protocolAJP/1.3 redirectPort8443 / 编写测试网页—— [rootxxx /]# rm -rf /usr/local/tomcat/multi-ins/instance1/webapps/ROOT/* [rootxxx /]# vim /usr/local/tomcat/multi-ins/instance1/webapps/ROOT/index.html instance111111 [rootxxx /]# cat /usr/local/tomcat/multi-ins/instance1/webapps/ROOT/index.html instance111111 编写instance1启动脚本—— [rootxxx]# touch /usr/local/tomcat/multi-ins/instance1/ins1.sh [rootxxx /]# vim /usr/local/tomcat/multi-ins/instance1/ins1.sh #!/bin/bash #instance1 . /etc/init.d/functions export CATALINA_HOME/usr/local/tomcat export CATALINA_BASE/usr/local/tomcat/multi-ins/instance1 case $1 in start)         $CATALINA_HOME/bin/startup.sh         ;; stop)         $CATALINA_HOME/bin/shutdown.sh         ;; restart)         $CATALINA_HOME/bin/shutdown.sh         sleep 2         $CATALINA_HOME/bin/startup.sh esac 这里为了做展示脚本写的比较粗糙见谅见谅 测试脚本—— [rootxxx /]# /usr/local/tomcat/multi-ins/instance1/ins1.sh start        #启动 [rootxxx /]# /usr/local/tomcat/multi-ins/instance1/ins1.sh stop        #关闭 [rootxxx /]# /usr/local/tomcat/multi-ins/instance1/ins1.sh start 2.配置instance28082 9002 10002 创建目录拷贝修改配置—— [rootxxx /]# cp -r /usr/local/tomcat/multi-ins/instance1 /usr/local/tomcat/multi-ins/instance2 [rootxxx /]# vim /usr/local/tomcat/multi-ins/instance2/conf/server.xml 修改发布目录—— Host namelocalhost  appBase/usr/local/tomcat/multi-ins/instance2/webapps             unpackWARstrue autoDeploytrue         !-- SingleSignOn valve, share authentication between web applications              Documentation at: /docs/config/valve.html --         !--         Valve classNameorg.apache.catalina.authenticator.SingleSignOn /         --         !-- Access log processes all example.              Documentation at: /docs/config/valve.html              Note: The pattern used is equivalent to using patterncommon --         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixlocalhost_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host 没别的就是把1改成2就行  修改端口——  Server port9002 shutdownSHUTDOWN   !-- Security listener. Documentation at /docs/config/listeners.html   Listener classNameorg.apache.catalina.security.SecurityListener /  Connector port8082 protocolHTTP/1.1                connectionTimeout20000                redirectPort8443 / !-- Define an AJP 1.3 Connector on port 8009 --     Connector port10002 protocolAJP/1.3 redirectPort8443 / 编写测试网页—— [rootxxx /]# vim /usr/local/tomcat/multi-ins/instance2/webapps/ROOT/index.html instance222222 [rootxxx /]# cat /usr/local/tomcat/multi-ins/instance2/webapps/ROOT/index.html instance222222 编写instance2启动脚本—— [rootxxx /]# mv /usr/local/tomcat/multi-ins/instance2/ins1.sh /usr/local/tomcat/multi-ins/instance2/ins2.sh #!/bin/bash #instance2 . /etc/init.d/functions export CATALINA_HOME/usr/local/tomcat export CATALINA_BASE/usr/local/tomcat/multi-ins/instance2 case $1 in start)         $CATALINA_HOME/bin/startup.sh         ;; stop)         $CATALINA_HOME/bin/shutdown.sh         ;; restart)         $CATALINA_HOME/bin/shutdown.sh         sleep 2         $CATALINA_HOME/bin/startup.sh esac 测试脚本—— 和instance1完全相同不在赘述。 3.配置instance38083 9003 10003 创建目录拷贝修改配置—— [rootxxx /]# cp -r /usr/local/tomcat/multi-ins/instance1 /usr/local/tomcat/multi-ins/instance3 [rootxxx /]# vim /usr/local/tomcat/multi-ins/instance3/conf/server.xml 修改发布目录—— Host namelocalhost  appBase/usr/local/tomcat/multi-ins/instance3/webapps             unpackWARstrue autoDeploytrue         !-- SingleSignOn valve, share authentication between web applications              Documentation at: /docs/config/valve.html --         !--         Valve classNameorg.apache.catalina.authenticator.SingleSignOn /         --         !-- Access log processes all example.              Documentation at: /docs/config/valve.html              Note: The pattern used is equivalent to using patterncommon --         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixlocalhost_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host 没别的就是把1改成3就行  修改端口——  Server port9003 shutdownSHUTDOWN   !-- Security listener. Documentation at /docs/config/listeners.html   Listener classNameorg.apache.catalina.security.SecurityListener /  Connector port8083 protocolHTTP/1.1                connectionTimeout20000                redirectPort8443 / !-- Define an AJP 1.3 Connector on port 8009 --     Connector port10003 protocolAJP/1.3 redirectPort8443 / 编写测试网页—— [rootxxx /]# vim /usr/local/tomcat/multi-ins/instance3/webapps/ROOT/index.html instance333333 [rootxxx /]# cat /usr/local/tomcat/multi-ins/instance3/webapps/ROOT/index.html instance333333 编写instance3启动脚本—— [rootxxx /]# mv /usr/local/tomcat/multi-ins/instance3/ins1.sh /usr/local/tomcat/multi-ins/instance3/ins3.sh #!/bin/bash #instance3 . /etc/init.d/functions export CATALINA_HOME/usr/local/tomcat export CATALINA_BASE/usr/local/tomcat/multi-ins/instance3 case $1 in start)         $CATALINA_HOME/bin/startup.sh         ;; stop)         $CATALINA_HOME/bin/shutdown.sh         ;; restart)         $CATALINA_HOME/bin/shutdown.sh         sleep 2         $CATALINA_HOME/bin/startup.sh esac 测试脚本—— 和instance1完全相同不在赘述。 三、多实例启动脚本 [rootxxx /]# touch /usr/local/tomcat/multi-ins/all_instance.sh [rootxxx /]# vim /usr/local/tomcat/multi-ins/all_instance.sh #!/bin/bash case $1 in start)         for i in {1..3};do                 /usr/local/tomcat/multi-ins/instance$i/ins${i}.sh start         done         ;; stop)         for i in {1..3};do                 /usr/local/tomcat/multi-ins/instance$i/ins${i}.sh stop         done         ;; restart)         for i in {1..3};do                 /usr/local/tomcat/multi-ins/instance$i/ins${i}.sh stop                 sleep 2                 /usr/local/tomcat/multi-ins/instance$i/ins${i}.sh start         done         ;; esac 脚本测试 [rootxxx /]# /usr/local/tomcat/multi-ins/all_instance.sh start        #启动 [rootxxx /]# /usr/local/tomcat/multi-ins/all_instance.sh stop        #停止 [rootxxx /]# /usr/local/tomcat/multi-ins/all_instance.sh restart        #重启 四、多实例部署验证 [rootxxx /]# /usr/local/tomcat/multi-ins/all_instance.sh start [rootxxx /]# firefox 部署成功 五、server.xml配置备份 instance1—— ?xml version1.0 encodingutf-8? !--   Licensed to the Apache Software Foundation (ASF) under one or more   contributor license agreements.  See the NOTICE file distributed with   this work for additional information regarding copyright ownership.   The ASF licenses this file to You under the Apache License, Version 2.0   (the License); you may not use this file except in compliance with   the License.  You may obtain a copy of the License at       http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an AS IS BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License. -- !-- Note:  A Server is not itself a Container, so you may not      define subcomponents such as Valves at this level.      Documentation at /docs/config/server.html  -- Server port9001 shutdownSHUTDOWN   !-- Security listener. Documentation at /docs/config/listeners.html   Listener classNameorg.apache.catalina.security.SecurityListener /   --   !--APR library loader. Documentation at /docs/apr.html --   Listener classNameorg.apache.catalina.core.AprLifecycleListener SSLEngineon /   !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --   Listener classNameorg.apache.catalina.core.JasperListener /   !-- Prevent memory leaks due to use of particular java/javax APIs--   Listener classNameorg.apache.catalina.core.JreMemoryLeakPreventionListener /   Listener classNameorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener /   Listener classNameorg.apache.catalina.core.ThreadLocalLeakPreventionListener /   !-- Global JNDI resources        Documentation at /docs/jndi-resources-howto.html   --   GlobalNamingResources     !-- Editable user database that can also be used by          UserDatabaseRealm to authenticate users     --     Resource nameUserDatabase authContainer               typeorg.apache.catalina.UserDatabase               descriptionUser database that can be updated and saved               factoryorg.apache.catalina.users.MemoryUserDatabaseFactory               pathnameconf/tomcat-users.xml /   /GlobalNamingResources   !-- A Service is a collection of one or more Connectors that share        a single Container Note:  A Service is not itself a Container,        so you may not define subcomponents such as Valves at this level.        Documentation at /docs/config/service.html    --   Service nameCatalina     !--The connectors can use a shared executor, you can define one or more named thread pools--     !--     Executor nametomcatThreadPool namePrefixcatalina-exec-         maxThreads150 minSpareThreads4/     --     !-- A Connector represents an endpoint by which requests are received          and responses are returned. Documentation at :          Java HTTP Connector: /docs/config/http.html (blocking non-blocking)          Java AJP  Connector: /docs/config/ajp.html          APR (HTTP/AJP) Connector: /docs/apr.html          Define a non-SSL HTTP/1.1 Connector on port 8080     --     Connector port8081 protocolHTTP/1.1                connectionTimeout20000                redirectPort8443 /     !-- A Connector using the shared thread pool--     !--     Connector executortomcatThreadPool                port8080 protocolHTTP/1.1                connectionTimeout20000                redirectPort8443 /     --     !-- Define a SSL HTTP/1.1 Connector on port 8443          This connector uses the JSSE configuration, when using APR, the          connector should be using the OpenSSL style configuration          described in the APR documentation --     !--     Connector port8443 protocolHTTP/1.1 SSLEnabledtrue                maxThreads150 schemehttps securetrue                clientAuthfalse sslProtocolTLS /     --     !-- Define an AJP 1.3 Connector on port 8009 --     Connector port10001 protocolAJP/1.3 redirectPort8443 /     !-- An Engine represents the entry point (within Catalina) that processes          every request.  The Engine implementation for Tomcat stand alone          analyzes the HTTP headers included with the request, and passes them          on to the appropriate Host (virtual host).          Documentation at /docs/config/engine.html --     !-- You should set jvmRoute to support load-balancing via AJP ie :     Engine nameCatalina defaultHostlocalhost jvmRoutejvm1     --     Engine nameCatalina defaultHostlocalhost       !--For clustering, please take a look at documentation at:           /docs/cluster-howto.html  (simple how to)           /docs/config/cluster.html (reference documentation) --       !--       Cluster classNameorg.apache.catalina.ha.tcp.SimpleTcpCluster/       --       !-- Use the LockOutRealm to prevent attempts to guess user passwords            via a brute-force attack --       Realm classNameorg.apache.catalina.realm.LockOutRealm         !-- This Realm uses the UserDatabase configured in the global JNDI              resources under the key UserDatabase.  Any edits              that are performed against this UserDatabase are immediately              available for use by the Realm.  --         Realm classNameorg.apache.catalina.realm.UserDatabaseRealm                resourceNameUserDatabase/       /Realm       Host namelocalhost  appBase/usr/local/tomcat/multi-ins/instance1/webapps             unpackWARstrue autoDeploytrue         !-- SingleSignOn valve, share authentication between web applications              Documentation at: /docs/config/valve.html --         !--         Valve classNameorg.apache.catalina.authenticator.SingleSignOn /         --         !-- Access log processes all example.              Documentation at: /docs/config/valve.html              Note: The pattern used is equivalent to using patterncommon --         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixlocalhost_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host       !--Host namewww.sns.com  appBasewebapps             unpackWARstrue autoDeploytrue             Context docBasesns path /         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixwww.sns.com_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host       Host namewww.bbs.com  appBasewebroot             unpackWARstrue autoDeploytrue         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixwww.bbs.com_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host--     /Engine   /Service /Server instance2——  ?xml version1.0 encodingutf-8? !--   Licensed to the Apache Software Foundation (ASF) under one or more   contributor license agreements.  See the NOTICE file distributed with   this work for additional information regarding copyright ownership.   The ASF licenses this file to You under the Apache License, Version 2.0   (the License); you may not use this file except in compliance with   the License.  You may obtain a copy of the License at       http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an AS IS BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License. -- !-- Note:  A Server is not itself a Container, so you may not      define subcomponents such as Valves at this level.      Documentation at /docs/config/server.html  -- Server port9002 shutdownSHUTDOWN   !-- Security listener. Documentation at /docs/config/listeners.html   Listener classNameorg.apache.catalina.security.SecurityListener /   --   !--APR library loader. Documentation at /docs/apr.html --   Listener classNameorg.apache.catalina.core.AprLifecycleListener SSLEngineon /   !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --   Listener classNameorg.apache.catalina.core.JasperListener /   !-- Prevent memory leaks due to use of particular java/javax APIs--   Listener classNameorg.apache.catalina.core.JreMemoryLeakPreventionListener /   Listener classNameorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener /   Listener classNameorg.apache.catalina.core.ThreadLocalLeakPreventionListener /   !-- Global JNDI resources        Documentation at /docs/jndi-resources-howto.html   --   GlobalNamingResources     !-- Editable user database that can also be used by          UserDatabaseRealm to authenticate users     --     Resource nameUserDatabase authContainer               typeorg.apache.catalina.UserDatabase               descriptionUser database that can be updated and saved               factoryorg.apache.catalina.users.MemoryUserDatabaseFactory               pathnameconf/tomcat-users.xml /   /GlobalNamingResources   !-- A Service is a collection of one or more Connectors that share        a single Container Note:  A Service is not itself a Container,        so you may not define subcomponents such as Valves at this level.        Documentation at /docs/config/service.html    --   Service nameCatalina     !--The connectors can use a shared executor, you can define one or more named thread pools--     !--     Executor nametomcatThreadPool namePrefixcatalina-exec-         maxThreads150 minSpareThreads4/     --     !-- A Connector represents an endpoint by which requests are received          and responses are returned. Documentation at :          Java HTTP Connector: /docs/config/http.html (blocking non-blocking)          Java AJP  Connector: /docs/config/ajp.html          APR (HTTP/AJP) Connector: /docs/apr.html          Define a non-SSL HTTP/1.1 Connector on port 8080     --     Connector port8082 protocolHTTP/1.1                connectionTimeout20000                redirectPort8443 /     !-- A Connector using the shared thread pool--     !--     Connector executortomcatThreadPool                port8080 protocolHTTP/1.1                connectionTimeout20000                redirectPort8443 /     --     !-- Define a SSL HTTP/1.1 Connector on port 8443          This connector uses the JSSE configuration, when using APR, the          connector should be using the OpenSSL style configuration          described in the APR documentation --     !--     Connector port8443 protocolHTTP/1.1 SSLEnabledtrue                maxThreads150 schemehttps securetrue                clientAuthfalse sslProtocolTLS /     --     !-- Define an AJP 1.3 Connector on port 8009 --     Connector port10002 protocolAJP/1.3 redirectPort8443 /     !-- An Engine represents the entry point (within Catalina) that processes          every request.  The Engine implementation for Tomcat stand alone          analyzes the HTTP headers included with the request, and passes them          on to the appropriate Host (virtual host).          Documentation at /docs/config/engine.html --     !-- You should set jvmRoute to support load-balancing via AJP ie :     Engine nameCatalina defaultHostlocalhost jvmRoutejvm1     --     Engine nameCatalina defaultHostlocalhost       !--For clustering, please take a look at documentation at:           /docs/cluster-howto.html  (simple how to)           /docs/config/cluster.html (reference documentation) --       !--       Cluster classNameorg.apache.catalina.ha.tcp.SimpleTcpCluster/       --       !-- Use the LockOutRealm to prevent attempts to guess user passwords            via a brute-force attack --       Realm classNameorg.apache.catalina.realm.LockOutRealm         !-- This Realm uses the UserDatabase configured in the global JNDI              resources under the key UserDatabase.  Any edits              that are performed against this UserDatabase are immediately              available for use by the Realm.  --         Realm classNameorg.apache.catalina.realm.UserDatabaseRealm                resourceNameUserDatabase/       /Realm       Host namelocalhost  appBase/usr/local/tomcat/multi-ins/instance2/webapps             unpackWARstrue autoDeploytrue         !-- SingleSignOn valve, share authentication between web applications              Documentation at: /docs/config/valve.html --         !--         Valve classNameorg.apache.catalina.authenticator.SingleSignOn /         --         !-- Access log processes all example.              Documentation at: /docs/config/valve.html              Note: The pattern used is equivalent to using patterncommon --         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixlocalhost_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host       !--Host namewww.sns.com  appBasewebapps             unpackWARstrue autoDeploytrue             Context docBasesns path /         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixwww.sns.com_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host       Host namewww.bbs.com  appBasewebroot             unpackWARstrue autoDeploytrue         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixwww.bbs.com_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host--     /Engine   /Service /Server instance3—— ?xml version1.0 encodingutf-8? !--   Licensed to the Apache Software Foundation (ASF) under one or more   contributor license agreements.  See the NOTICE file distributed with   this work for additional information regarding copyright ownership.   The ASF licenses this file to You under the Apache License, Version 2.0   (the License); you may not use this file except in compliance with   the License.  You may obtain a copy of the License at       http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an AS IS BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License. -- !-- Note:  A Server is not itself a Container, so you may not      define subcomponents such as Valves at this level.      Documentation at /docs/config/server.html  -- Server port9003 shutdownSHUTDOWN   !-- Security listener. Documentation at /docs/config/listeners.html   Listener classNameorg.apache.catalina.security.SecurityListener /   --   !--APR library loader. Documentation at /docs/apr.html --   Listener classNameorg.apache.catalina.core.AprLifecycleListener SSLEngineon /   !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --   Listener classNameorg.apache.catalina.core.JasperListener /   !-- Prevent memory leaks due to use of particular java/javax APIs--   Listener classNameorg.apache.catalina.core.JreMemoryLeakPreventionListener /   Listener classNameorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener /   Listener classNameorg.apache.catalina.core.ThreadLocalLeakPreventionListener /   !-- Global JNDI resources        Documentation at /docs/jndi-resources-howto.html   --   GlobalNamingResources     !-- Editable user database that can also be used by          UserDatabaseRealm to authenticate users     --     Resource nameUserDatabase authContainer               typeorg.apache.catalina.UserDatabase               descriptionUser database that can be updated and saved               factoryorg.apache.catalina.users.MemoryUserDatabaseFactory               pathnameconf/tomcat-users.xml /   /GlobalNamingResources   !-- A Service is a collection of one or more Connectors that share        a single Container Note:  A Service is not itself a Container,        so you may not define subcomponents such as Valves at this level.        Documentation at /docs/config/service.html    --   Service nameCatalina     !--The connectors can use a shared executor, you can define one or more named thread pools--     !--     Executor nametomcatThreadPool namePrefixcatalina-exec-         maxThreads150 minSpareThreads4/     --     !-- A Connector represents an endpoint by which requests are received          and responses are returned. Documentation at :          Java HTTP Connector: /docs/config/http.html (blocking non-blocking)          Java AJP  Connector: /docs/config/ajp.html          APR (HTTP/AJP) Connector: /docs/apr.html          Define a non-SSL HTTP/1.1 Connector on port 8080     --     Connector port8083 protocolHTTP/1.1                connectionTimeout20000                redirectPort8443 /     !-- A Connector using the shared thread pool--     !--     Connector executortomcatThreadPool                port8080 protocolHTTP/1.1                connectionTimeout20000                redirectPort8443 /     --     !-- Define a SSL HTTP/1.1 Connector on port 8443          This connector uses the JSSE configuration, when using APR, the          connector should be using the OpenSSL style configuration          described in the APR documentation --     !--     Connector port8443 protocolHTTP/1.1 SSLEnabledtrue                maxThreads150 schemehttps securetrue                clientAuthfalse sslProtocolTLS /     --     !-- Define an AJP 1.3 Connector on port 8009 --     Connector port10003 protocolAJP/1.3 redirectPort8443 /     !-- An Engine represents the entry point (within Catalina) that processes          every request.  The Engine implementation for Tomcat stand alone          analyzes the HTTP headers included with the request, and passes them          on to the appropriate Host (virtual host).          Documentation at /docs/config/engine.html --     !-- You should set jvmRoute to support load-balancing via AJP ie :     Engine nameCatalina defaultHostlocalhost jvmRoutejvm1     --     Engine nameCatalina defaultHostlocalhost       !--For clustering, please take a look at documentation at:           /docs/cluster-howto.html  (simple how to)           /docs/config/cluster.html (reference documentation) --       !--       Cluster classNameorg.apache.catalina.ha.tcp.SimpleTcpCluster/       --       !-- Use the LockOutRealm to prevent attempts to guess user passwords            via a brute-force attack --       Realm classNameorg.apache.catalina.realm.LockOutRealm         !-- This Realm uses the UserDatabase configured in the global JNDI              resources under the key UserDatabase.  Any edits              that are performed against this UserDatabase are immediately              available for use by the Realm.  --         Realm classNameorg.apache.catalina.realm.UserDatabaseRealm                resourceNameUserDatabase/       /Realm       Host namelocalhost  appBase/usr/local/tomcat/multi-ins/instance3/webapps             unpackWARstrue autoDeploytrue         !-- SingleSignOn valve, share authentication between web applications              Documentation at: /docs/config/valve.html --         !--         Valve classNameorg.apache.catalina.authenticator.SingleSignOn /         --         !-- Access log processes all example.              Documentation at: /docs/config/valve.html              Note: The pattern used is equivalent to using patterncommon --         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixlocalhost_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host       !--Host namewww.sns.com  appBasewebapps             unpackWARstrue autoDeploytrue             Context docBasesns path /         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixwww.sns.com_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host       Host namewww.bbs.com  appBasewebroot             unpackWARstrue autoDeploytrue         Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs                prefixwww.bbs.com_access_log. suffix.txt                pattern%h %l %u %t quot;%rquot; %s %b /       /Host--     /Engine   /Service /Server 谢谢支持
http://www.hkea.cn/news/14498104/

相关文章:

  • 贵州住房和城乡建设局网站沈阳网站建设设计报价
  • 南通通州区城乡建设局网站网站可以做外部链接吗
  • 我的世界做壁纸网站打不开自己做的网站如何管理
  • 营销型网站服务M97 网站建设网络公司整站源码
  • 展示形网站怎么建营销网址大全
  • 吉木萨尔县建设局网站wordpress网站聊天插件
  • 建设银行论坛网站福田附近公司做网站建设多少钱
  • 做棋牌网站合法吗国内做化妆刷的比较好的网站
  • 建设个人网站用什么软件好河北住房与城乡建设部网站
  • 学校网站建设项目可行性分析报告郑州网站网站建设
  • 万全做网站wl17581秦皇岛建设局官方网站
  • 百度网站托管org域名注册条件
  • 淘客手机网站模板微信小程序下载app
  • 制作网页网站哪个好用免费一键搭建发卡网
  • 如何更改网站源码旅游网站 源码 织梦
  • 如何提高网站的收录率和收录量庆阳网站哪里做
  • 做资源下载网站好吗健康中国app下载
  • 吉林省住房和城乡建设厅网站网站js特效
  • 西安seo站内优化店铺网页设计图片
  • 微商城网站建设讯息济南做网站优化哪家好
  • 做网站王仁杰域名网址注册
  • 求个网站这么难吗2021年网站页面关键字在哪里
  • php手机网站源码下载深圳公司网站改版通知
  • 网站配色教程it外包的优点不包括
  • 重庆网站推广平台衡阳做网站的公司
  • 个人网站设计论文摘要wordpress 禁止索引目录
  • 网站专题策划昆山网站建设熊掌号
  • 为什么做电影网站没有流量吗网站购物建设实训心得体会
  • 做网站能注册账号的地宝网南昌分类
  • 苏州高端网站建设企业邢台做网站价位