wiki:tomcat

참고자료

톰캣 설치

톰캣 셋팅

톰캣 자동실행

  • 실행 스크립트 생성 : /etc/init.d/tomcat
    #!/bin/sh
    #/usr/local/tomcat/bin/startup.sh
    #/usr/local/tomcat/bin/catalina.sh start
    # See how we were called.
    #source /etc/profile
    export CATALINA_HOME=/usr/local/tomcat
    #echo $CATALINA_HOME
    
    case "$1" in
    start)
     echo -n "Starting tomcat EXPERIMENTAL: "
     $CATALINA_HOME/bin/startup.sh
     echo
    ;;
    stop)
     echo -n "Shutting down tomcat EXPERIMENTAL: "
     $CATALINA_HOME/bin/shutdown.sh
     echo
    ;;
    restart)
    $0 stop
    $0 start
    ;;
    *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
    esac
    
    exit 0
    
    
  • 서비스 등록
    update-rc.d tomcat defaults
    
    
  • 서비스 시작 종료
    service tomcat start
    service tomcat stop
    service tomcat restart
    

아파치 톰캣 연동

톰캣 이클립스 연동