Source Package under Linux installation configuration Tomcat7

Before installing tomcat7, you need to install more than java6 version of java Download Download a Java SE Runtime Environment (JRE), release version 6.0 or later, from http://www.oracle.com/technetwork/java/javase/downloads/index .html I downloaded the tar.gz source package, unpack open to be able to use tar zxvf jre-7u5-linux-i586.tar.gz -C ../software/ cd ../software cp -rp jre1.7.0 _05 / / usr / local / vi / etc / profile by adding the following three JAVA_HOME = / usr / local / jre1.7.0_05 / CLASSPATH = $ CLASSPATH: $ JAVA_HOME / lib PATH = $ JAVA_HOME / bin: $ PATH / etc /. test profile java successfully installed chown -R root \: /usr/local/jre1.7.0_05/ java -version java version "1.7.0_05" Java (TM) SE Runtime Environment (build 1.7.0_05-b05) Java HotSpot ( TM) Client VM (build 23.1-b03, mixed mode) run the above command might look like errors, google the next, the problem is caused by selinux. error: /usr/lib/libjvm.so: can not restore segment prot after reloc: Permission denied use the command:. chcon -t textrel_shlib_t / usr / lib / libjvm.    
Home Documentation the Configuration Examples Wiki Mailing Lists the Find Help
. . . . . . Close service /usr/local/apache-tomcat-7.0.28/bin/catalina.sh stop or /usr/local/apache-tomcat-7.0.28/bin/shutdown.sh

Reproduced in: https: //my.oschina.net/766/blog/211439

Guess you like

Origin blog.csdn.net/weixin_34387468/article/details/91548280