关闭

tomcat

868人阅读 评论(0) 收藏 举报

[root@s bin]# ps -ef|grep resin_sixjkad_master
root      6441     1  1 15:45 pts/1    00:00:26 /usr/local/jdk/bin/java -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl -Djava.awt.headless=true -Dresin.home=/apps/resin_sixjkad_master/ -Dresin.root=/apps/resin_sixjkad_master/ -Xrs -Xss256k -Xmx32m -Dcom.sun.management.jmxremote -d64 com.caucho.boot.WatchdogManager start
root      6476  6441  6 15:46 pts/1    00:02:00 /usr/local/jdk/bin/java -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djava.system.class.loader=com.caucho.loader.SystemClassLoader -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl -Djava.awt.headless=true -Dresin.home=/apps/resin_sixjkad_master/ -Xmx1000m -Xms100m -XX:PermSize=32m -XX:MaxNewSize=256m -XX:MaxPermSize=64m -Xss1m -Xdebug -Dcom.sun.management.jmxremote -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl -Djava.awt.headless=true -Dresin.home=/apps/resin_sixjkad_master/ -Dresin.root=/apps/resin_sixjkad_master/ -Dcom.sun.management.jmxremote -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl -Djava.awt.headless=true -Dresin.home=/apps/resin_sixjkad_master/ -Dresin.root=/apps/resin_sixjkad_master/ -Dcom.sun.management.jmxremote com.caucho.server.resin.Resin --root-directory /apps/resin_sixjkad_master/ -conf /apps/resin_sixjkad_master/conf/resin.conf -socketwait 59096 start
root      7340 29176  0 16:16 pts/1    00:00:00 grep resin_sixjkad_master
[root@s bin]# kill -9 6476 6441
[root@s bin]# ps -ef|grep resin_sixjkad_master
root      7415 29176  0 16:16 pts/1    00:00:00 grep resin_sixjkad_master
[root@s bin]# ps -ef|grep resin_sixjkad_master
root      7417 29176  0 16:16 pts/1    00:00:00 grep resin_sixjkad_master
[root@s bin]# cd /apps/
[root@s apps]# ls
apache-tomcat-7.0.42.zip  resin_docamo_fina             tomcat_adservice
jk_sms                    resin_docamo_master           tomcat_docamo_fina
jobapps                   resin_docamo_sso              tomcat_docamo_sso
logs                      resin_pc_master               tomcat_pc
resin_cms_master          resin_sixjkad_master          webapps
resin.conf                resin_sixjk_financing_master
resin_crmv2.tar           resin_sms_master
[root@s apps]# cp -r tomcat_docamo_sso/ tomcat_ad
[root@s apps]# pwd
/apps
[root@s apps]# ls
apache-tomcat-7.0.42.zip  resin_docamo_fina             tomcat_ad
jk_sms                    resin_docamo_master           tomcat_adservice
jobapps                   resin_docamo_sso              tomcat_docamo_fina
logs                      resin_pc_master               tomcat_docamo_sso
resin_cms_master          resin_sixjkad_master          tomcat_pc
resin.conf                resin_sixjk_financing_master  webapps
resin_crmv2.tar           resin_sms_master
[root@s apps]# cd tomcat_ad
[root@s tomcat_ad]# ls
bin   lib      logs    RELEASE-NOTES  temp     work
conf  LICENSE  NOTICE  RUNNING.txt    webapps
[root@s tomcat_ad]# cd webapps/
[root@s webapps]# ls
docs  examples  host-manager  manager  ROOT
[root@s webapps]# ROOT
-bash: ROOT: command not found
[root@s webapps]# cd ROOT/
[root@s ROOT]# ls
base.jsp  META-INF  resource  robots.txt  views  WEB-INF
[root@s ROOT]# ls
base.jsp  META-INF  resource  robots.txt  views  WEB-INF
[root@s ROOT]# rm -rf *
[root@s ROOT]# cd ..
[root@s webapps]# cd ..
[root@s tomcat_ad]# cd conf/
[root@s conf]# ls
Catalina         catalina.properties  logging.properties  tomcat-users.xml
catalina.policy  context.xml          server.xml          web.xml
[root@s conf]# vi server.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- 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 port="6613" shutdown="SHUTDOWN">

  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/>
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener"/>
  <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>

  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
/30
    -->


    <!-- 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 connectionTimeout="20000" port="8013" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8"  useBodyEncodingForURI="true" disableUploadTimeout="true" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->
    <!-- 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 port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="6813" protocol="AJP/1.3" redirectPort="8443"/>
"server.xml" 119L, 5634C written
[root@s conf]# cd ..
[root@s tomcat_ad]# ls
bin   lib      logs    RELEASE-NOTES  temp     work
conf  LICENSE  NOTICE  RUNNING.txt    webapps
[root@s tomcat_ad]# cd bin/
[root@s bin]# ls
bootstrap.jar                 digest.bat           startup.sh
catalina.bat                  digest.sh            tomcat-juli.jar
catalina.sh                   hs_err_pid17479.log  tomcat-native.tar.gz
catalina-tasks.xml            setclasspath.bat     tool-wrapper.bat
commons-daemon.jar            setclasspath.sh      tool-wrapper.sh
commons-daemon-native.tar.gz  shutdown.bat         version.bat
cpappend.bat                  shutdown.sh          version.sh
daemon.sh                     startup.bat
[root@s bin]# vi catalina.sh
#!/bin/sh
export CATALINA_BASE=/apps/tomcat_ad/
export CATALINA_HOME=/apps/tomcat_ad/
# 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.

# -----------------------------------------------------------------------------
# Start/Stop Script for the CATALINA Server
#
# Environment Variable Prerequisites
#
"catalina.sh" 505L, 17852C written
[root@s bin]# ls
bootstrap.jar                 digest.bat           startup.sh
catalina.bat                  digest.sh            tomcat-juli.jar
catalina.sh                   hs_err_pid17479.log  tomcat-native.tar.gz
catalina-tasks.xml            setclasspath.bat     tool-wrapper.bat
commons-daemon.jar            setclasspath.sh      tool-wrapper.sh
commons-daemon-native.tar.gz  shutdown.bat         version.bat
cpappend.bat                  shutdown.sh          version.sh
daemon.sh                     startup.bat
[root@s bin]# ./shutdown.sh
Using CATALINA_BASE:   /apps/tomcat_ad/
Using CATALINA_HOME:   /apps/tomcat_ad/
Using CATALINA_TMPDIR: /apps/tomcat_ad//temp
Using JRE_HOME:        /usr/local/jdk
Using CLASSPATH:       /apps/tomcat_ad//bin/bootstrap.jar
2013: Catalina.stop: g.apache.catalina.startup.Catalina stopServer
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at java.net.Socket.<init>(Socket.java:375)
        at java.net.Socket.<init>(Socket.java:189)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:422)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:338)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:416)
[root@s bin]# ./startup.sh
Using CATALINA_BASE:   /apps/tomcat_ad/
Using CATALINA_HOME:   /apps/tomcat_ad/
Using CATALINA_TMPDIR: /apps/tomcat_ad//temp
Using JRE_HOME:        /usr/local/jdk
Using CLASSPATH:       /apps/tomcat_ad//bin/bootstrap.jar
[root@s bin]# pwe
-bash: pwe: command not found
[root@s bin]# pwd
/apps/tomcat_ad/bin
[root@s bin]#

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:53096次
    • 积分:771
    • 等级:
    • 排名:千里之外
    • 原创:26篇
    • 转载:19篇
    • 译文:0篇
    • 评论:1条
    最新评论
  • thread的六种状态

    zhiqy_12: 原理描述和配图不一致。配图调用sleap方法后进入timed_waiting状态,但是描述说是blo...