본문 바로가기

OS (Operating System)/Linux

리눅스 톰캣 추가

728x90

/conf/server.xml

## 포트변경 ##

<Server port="18005" shutdown="SHUTDOWN">

..

<Connector port="18080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               />
               
..

<Connector protocol="AJP/1.3"
           address="0.0.0.0"
           port="18009"
           redirectPort="8443"
       secretRequired="false"
           />

 

/bin/catalina.sh

# resolve links - $0 may be a softlink
PRG="$0"

while [ -h "$PRG" ]; do
  ls=`ls -ld "$PRG"`
  link=`expr "$ls" : '.*-> \(.*\)$'`
  if expr "$link" : '/.*' > /dev/null; then
    PRG="$link"
  else
    PRG=`dirname "$PRG"`/"$link"
  fi
done


## 추가 (톰캣경로)##

export CATALINA_HOME=/home/test/apache-tomcat-8.5.93
export TOMCAT_HOME=/home/test/apache-tomcat-8.5.93
export CATALINA_BASE=/home/test/apache-tomcat-8.5.93
CATALINA_PID=/home/test/apache-tomcat-8.5.93/bin/tomcat.pid

##########

# Get standard environment variables
PRGDIR=`dirname "$PRG"`
728x90