# add when you fail to "yum install"
yum update
# install java
sudo yum install java-1.6.0-openjdk-devel -y
sudo sh -c 'echo export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk > /etc/profile.d/java.sh'
source /etc/profile.d/java.sh
# install tomcat6
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
yum update
# install java
sudo yum install java-1.6.0-openjdk-devel -y
sudo sh -c 'echo export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk > /etc/profile.d/java.sh'
source /etc/profile.d/java.sh
# install tomcat6
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
댓글
댓글 쓰기