tomcat 서버 Linux 환경 구축

5956 단어 tomcatlinux

         JDK     A 、  

      ,  /usr/java        ,          :  
# mkdir /usr/java

2 、    jdk-8u60-linux-x64 .rpm. bin             ,          jdk-8u60-linux-x64 .rpm   ,   rpm      linux      。    :  
#chmod 755 ./jdk-8u60-linux-x64 .rpm
# ./jdk-8u60-linux-x64 .rpm .bin 
# rpm -ivh jdk-8u60-linux-x64 .rpm

     : Do you aggree to the above license terms? [yes or no]
                        。      ,   "y"     "yes"    。
       JDK        /usr/java/    。  



B 、     #vi /etc/profile
           

export JAVA_HOME=/usr/java/jdk1.8.0_60

export JAVA_BIN=/usr/java/jdk1.8.0_60/bin

export PATH=$PATH:$JAVA_HOME/bin

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export JAVA_HOME JAVA_BIN PATH CLASSPATH



  :   vi     

# vi /etc/profile    profile   

Insert                       

Esc  +  : qw                



  /etc/profile            ,          :
# . /etc/profile
   : .     /etc/profile      .
    
 java -version

Javac

Java
       :
 java version "jdk1.8.0_60"
 Java(TM)  SE  Runtime Environment(build 1.8.0_60 -b27 )
 Java HotSpot(TM)   64-Bit Server  VM (build  25.60-b23 , mixed mode)

。。。。。



       TOMCAT      2   tomcat    



#tomcat1

CATALINA_BASE=/usr/java/tomcat/apache-tomcat-7.0.64-master

CATALINA_HOME=/usr/java/tomcat/apache-tomcat-7.0.64-master

export CATALINA_BASE CATALINA_HOME



#tomcat2

CATALINA_2_BASE=/usr/java/tomcat/apache-tomcat-7.0.64-workflow

CATALINA_2_HOME=/usr/java/tomcat/apache-tomcat-7.0.64-workflow

export CATALINA_2_BASE CATALINA_2_HOME



TOMCAT_HOME=/usr/java/tomcat/apache-tomcat-7.0.64-master

export TOMCAT_HOME



TOMCAT_2_HOME=/usr/java/tomcat/apache-tomcat-7.0.64-workflow

export TOMCAT_2_HOME



    。
#source /etc/profile


      tomcat   bin    
  shutdown .sh      startup.sh    
export JAVA_HOME=
export PATH=
export CLASSPATH=
###            JAVA           ###
export CATALINA_BASE=$CATALINA_2_BASE
export CATALINA_HOME=$CATALINA_2_HOME
    tomcat_2/conf    server.xml   



   shudown        。       linux         tomcat  。     tomcat       。

<Server port= ” 8005 ”  shutdown= ” SHUTDOWN ” >    8005      8006 (        )



<Connector= ” 8080 ”  protocol= ” HTTP/1.1 ”  

connectionTimeout= ” 2000 ”

redirectPort= ” 8443 ” >    8080      8081 (        )



<Connector= ” 8009 ”  protocol= ” AJP/1.3 ”  redirectPort= ” 8443 ” >    8009      8010 (        )



       tomcat           tomat      ,              CATALINA_HOME      CATALINA_BASE      ,                。      tomcat     2  ,     tomcat1     tomcat2 , tomcat1                ( CATALINA_HOME      CATALINA_BASE       tomca1    ),  tomcat2                     ,        tomcat2   bin        catalina.sh          CATALINA_HOME     CATALINA_BASE    tomcat2       ,     tomcat        。









            ,      ,            ,      

                  tomcat             

   : /usr/java/tomcat/apache-tomcat-7.0.64-master

   : /usr/java/tomcat/apache-tomcat-7.0.64-workflow





   bin        

chmod 777 /usr/java/tomcat/apache-tomcat-7.0.64-workflow/*    (        ,    )



    tomcat     bin    

cd  /usr/java/tomcat/apache-tomcat-7.0.64-workflow/bin



                     

sh startup.sh        shutdown.sh







좋은 웹페이지 즐겨찾기