Redhat AS3 under Tomcat 4.1.30 Environment Configuration

xiaoxiao2021-03-06  119

Put J2SDK-1_4_2_05-Linux-i586-rpm.bin in / home / liufei directory (any directory can be, take this as an example) CD / home / liufeichmod x j2sdk-1_4_2_05-linux-i586-rpm.bin. /j2sdk-1_4_2_05-linux-i586-rpm.bin will produce J2SDK-1_4_2_05-Linux-i586.rpmrpm-Hiv J2SDK-1_4_2_05-Linux-i586.rpm, Java is installed to /usr/java/j2sdk1.4.2_05ln - S J2SDK1.4.2_05 / JDKVI / etc / profile (If you do not want all users to use JDK, edit the target user's .bash_profile file) Add Java_Home = / usr / java / jdkpath = before Export Path User Logname ... $ PATH: $ JAVA_HOME / binCLASSPATH = $ JAVA_HOME / lib: $ JAVA_HOME / jre / lib and this line was added JAVA_HOME: export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CLASSPATHTOMCAT: tar xvfz jakarta-tomcat-4.1.30.tar.gzmv Jakarta-Tomcat-4.1.30 / usr / localn -s jakarta-tomcat-4.1.30 Tomcatuseradd Tomcatchown -R Tomcat: tomcat /usr/local/jakarta-tomcat-4.1.30chown -r Tomcat: Tomcat / usr / local / Tomcatvi / etc / profile JAVA_HOME = / usr / java / jdkPATH = $ PATH: $ JAVA_HOME / binCLASSPATH = $ JAVA_HOME / lib: $ JAVA_HOME / jre / libCATALINA_HOME = / usr / local / tomcatCATALINA_BASE = / usr / local / tomcat

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CLASSPATH CATALINA_HOME CATALINA_BASE into the / usr / local / tomcat / bin start tomcat: su - tomcat -c "./startup.sh" browser command http://127.0.0.1:8080 : Ps -ax | GREP "Tomcat"

Automatic start: vi /etc/rc.local :#start add by Liufei

JAVA_HOME = / usr / java / jdkJRE_HOME = $ JAVA_HOME / jreCATALINA_HOME = / usr / local / tomcatCATALINA_BASE = / usr / local / tomcatCLASSPATH = $ JAVA_HOME / lib: $ JAVA_HOME / jre / libPATH = "/ usr / kerberos / sbin: / usr / kerberos / bin: / usr / bin: / bin: / usr / X11R6 / bin ": $ CATALINA_HOME / bin: $ JAVA_HOME / bin: $ JAVA_HOME / jre / binexport JAVA_HOME JRE_HOME CATALINA_HOME CATALINA_BASE CLASSPATH PATHsu - tomcat -c" $ CATALINA_HOME /bin/startup.sh"#end address by liufei

Edit /usR/local/tomcat/conf/tomcat-users.xml Add to Manager, Admin User Group and Admin User

Restart http://127.0.0.1:8080/admin

Reference: http://bbs.chinaunix.net/forum/13/040722/372143.htmlhttp: //forum.e-ICann.com/viewtopic.php? T = 1057

转载请注明原文地址:https://www.9cbs.com/read-126213.html

New Post(0)