Detailed explanation of Tomcat and Jboss deployment

Regarding the deployment of Tomcat and Jboss, many programmers doing Java development will encounter them. I will make a summary here.

1. Tomcat deployment, regardless of system, whether it is Server or Window system, the deployment is the same.

   1. First configure jdk. Different versions of jdk have different configurations. For example, the jdk version below jdk1.6 does not need to be installed, and the path can be configured directly in the PATH. The version above jdk1.7 needs to be installed, and then configured in PAHT path.

   JAVA_HOME = D:\Program Files (x86)\JDK\jdk1.6.0_21\bin

   JRE_HOME = D:\Program Files (x86)\JDK\jre6

   2. Configure tomcat, add the path of Tomcat directly in the PATH, such as: F:\Tomcat6\bin

   3. After Tomcat is configured, some simple modifications can be made for ease of use, as follows:

     a. Some configurations can be modified in F:\Tomcat6\conf\server.xml;

      <Connector port="8088" protocol="HTTP/1.1"  address="${0.0.0.0}"
               connectionTimeout="20000"
               redirectPort="8443"/>

       The above port="8088" can modify the port number, address="${0.0.0.0}" develops external network access

       <Host name="localhost"  appBase=""
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

           <Context  path="" debug="0" docBase="F:/Tomcat6/webapps/AllItahms" reloadable="true">
      </Context>

     The last host configuration is to access the project directly through the port number without adding the project name.

    b. Can be modified in F:\Tomcat6\bin\catalina.bat

     :doStart
     shift
     if not "%OS%" == "Windows_NT" goto noTitle
     set _EXECJAVA=start "Tomcat_Name" %_RUNJAVA%
     goto gotTitle
     :noTitle

     Modify the name of start "Tomcat_Name", but the name above the command window displayed by tomcat will change.   

 

2. Jboss deployment needs to distinguish between systems, and there may be some differences in deployment in different systems. The following describes the difference between the server system and the win10 system.

Server system deployment:

    1. Deploy in the server system, like tomcat deployment, first configure jdk

       JAVA_HOME = D:\Program Files (x86)\JDK\jdk1.6.0_21\bin

       JRE_HOME = D:\Program Files (x86)\JDK\jre6

    2. Then deploy the path of Jboss in Path in the environment variable.

       F:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin

 Windows 10 system deployment

     The biggest difference from the server system is that CLASSPATH needs to be configured;

     As follows: %JAVA_HOME%\lib     

     CLASSPAHT needs to be configured in the lib directory of jdk, otherwise the command window will flash by when starting.     

      

      

 
  

   

    

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326293790&siteId=291194637