SERVER

#002 자바 설치

SERVER
1. 자바 제거 rpm -qa | grep jdk yum remove java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64 2. 자바 업데이트 sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/jdk1.7.0_79/bin/java" 1; sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/jdk1.7.0_79/bin/javac" 1; sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/jdk1.7.0_79/bin/javaws" 1; sudo update-alternatives --set java /usr/local/jdk1.7.0_79/bin/java; sudo update-alternatives --set javac /usr/local/jdk1.7.0_79/bin/javac; sudo update-alternatives --set javaws /usr/local/jdk1.7.0_79/bin/javaws; 3. 자바 Path 설정 vi /etc/profile export JAVA_HOME=/usr/local/jdk1.7.0_79 export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH="." 4. 자바가 정상적으로 설치 되었는지 확인

#001 Apache + tomcat연동

SERVER
1. 톰켓 다운로드 및 톰켓 이동 wget http://apache.tt.co.kr/tomcat/tomcat-7/v7.0.73/bin/apache-tomcat-7.0.73.tar.gz tar -xvf apache-tomcat-7.0.63.tar.gz mv apache-tomcat-7.0.63/ tomcat 2. 톰켓 등록 cd /etc/rc.d/init.d/ vi tomcat #!/bin/bash # Startup script for the Tomcat Server # chkconfig: 345 50 50 # description: Tomcat is a Web application server. # processname: java # directory : CATALINA_HOME=/usr/local/tomcat source /etc/profile export CATALINA_HOME=/usr/local/tomcat case "$1" in start) echo "Starting tomcat: " $CATALINA_HOME/bin/startup.sh ;; stop) echo "Shutting down tomcat: " $CATALINA_HOME/bin/shutdown.sh ;; restart) echo "Restarting tomcat: " $CATALINA_HOME/bin/shutdown.sh; $CATA