Category Archives: JSP

Tomcat設定https

使用keytool產生RSA cd /usr/java/jdk1.7.0_21/bin/ ./keytool -genkey -alias tomcat -keyalg RSA Enter keystore password: Re-enter new password: What is your first and last name? What is the name of your organizational unit? What is the name of your organization? What is the … Continue reading

Posted in JSP | Leave a comment

Tomcat修改預設port為80

編輯server.xml vim /usr/data/apache-tomcat-7.0.40/conf/server.xml

將8080修改為80後重新啟動tomcat

Posted in JSP | Leave a comment

安裝Tomcat7

安裝jdk 至http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html下載 (此處以jdk-7u10-linux-x64.rpm為例) rpm -ivh jdk-7u10-linux-x64.rpm 設定jdk環境 cat << EOF > /etc/profile.d/java.sh export JAVA_HOME=/usr/java/default export PATH=$JAVA_HOME/bin:$PATH EOF cat << EOF > /etc/profile.d/java.csh set JAVA_HOME=/usr/java/default set PATH=$JAVA_HOME/bin:$PATH EOF . /etc/profile.d/java.sh 安裝tomcat7 至http://tomcat.apache.org/download-70.cgi下載 (此處以apache-tomcat-7.0.40.tar.gz為例) wget http://ftp.twaren.net/Unix/Web/apache/tomcat/tomcat-7/v7.0.40/bin/apache-tomcat-7.0.40.tar.gz tar zxvf apache-tomcat-7.0.40.tar.gz mkdir /usr/data mv … Continue reading

Posted in JSP | Leave a comment