Linux Apache Tomcat

Source: Internet
Author: User
Tags apache tomcat

[[email protected] ~]# mv jdk-7u79-linux-x64.tar.gz/usr/local/
[[email protected] ~]# cd/usr/local/
[[email protected] local]# tar jxvf jdk-7u79-linux-x64.tar.gz
[[email protected] local]# CD jdk1.7.0 _79/
[[email protected] jdk1.7.0_79]# pwd
/usr/local/jdk1.7.0_79
[[email protected] jdk1.7.0_ 79]# vim/etc/profile
java_home=/usr/local/jdk1.7.0_79
Java_bin=/usr/local/jdk1.7.0_79/bin
PATH= $PATH: $ Java_bin
classpath= $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export java_home java_bin PATH CLASSPATH
[[email protected] jdk1.7.0_79]# source/etc/profile
[[email protected] jdk1.7.0_79]# java-version
Java Version "1.7.0_79"
Java (tm) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot (tm) 64-bit Server VM ( Build 24.79-b02, Mixed mode)

[Email protected] ~]# MV apache-tomcat-7.0.79.tar.gz/usr/local/
[Email protected] local]# tar zxvf apache-tomcat-7.0.79.tar.gz
[Email protected] local]# CD apache-tomcat-7.0.79
[Email protected] apache-tomcat-7.0.79]# CD bin/
[Email protected] bin]# vim catalina.sh
catalina_home=/usr/local/apache-tomcat-7.0.79
[[email protected] bin]#./catalina.sh start
Using catalina_base:/usr/local/apache-tomcat-7.0.79
Using Catalina_home:/usr/local/apache-tomcat-7.0.79
Using Catalina_tmpdir:/usr/local/apache-tomcat-7.0.79/temp
Using Jre_home:/usr/local/jdk1.7.0_79
Using CLASSPATH:/usr/local/apache-tomcat-7.0.79/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.79/bin/ Tomcat-juli.jar
Tomcat started.

[Email protected] apache-tomcat-7.0.79]# CD logs/
[[email protected] logs]# ls
Catalina.2017-07-08.log Host-manager.2017-07-08.log Localhost_access_log.2017-07-08.txt
Catalina.out Localhost.2017-07-08.log Manager.2017-07-08.log
[Email protected] logs]# tail-f catalina.out
Jul 1:09:24 PM org.apache.catalina.startup.HostConfig deploydirectory
Info:deploying Web Application Directory/usr/local/apache-tomcat-7.0.79/webapps/docs
Jul 1:09:25 PM org.apache.catalina.startup.HostConfig deploydirectory
Info:deployment of Web application Directory/usr/local/apache-tomcat-7.0.79/webapps/docs have finished in 185 ms
Jul 1:09:25 PM org.apache.coyote.AbstractProtocol start
Info:starting Protocolhandler ["http-bio-8080"]
Jul 1:09:25 PM org.apache.coyote.AbstractProtocol start
Info:starting Protocolhandler ["ajp-bio-8009"]
Jul 1:09:25 PM Org.apache.catalina.startup.Catalina start
Info:server Startup in 5448 MS


[[email protected] ~]# tar zxvf apr-1.6.2.tar.gz
[[email protected] ~]# cd apr-1.6.2
[[email& Nbsp;protected] apr-1.6.2]# mkdir/usr/local/apr
[[email protected] apr-1.6.2]#./configure--prefix=/usr/ local/apr/
[[email protected] apr-1.6.2]# make
[[email protected] apr-1.6.2]# make install
[[ Email protected] ~]# tar zxvf apr-util-1.6.0.tar.gz
[[email protected] ~]# cd apr-util-1.6.0
[[email& Nbsp;protected] apr-util-1.6.0]# mkdir/usr/local/apr-util
[[email protected] apr-util-1.6.0]#./configure- -prefix=/usr/local/apr-util/--with-apr=/usr/local/apr/bin/apr-1-config
[[email protected] apr-util-1.6.0]# make
[[email protected] apr-util-1.6.0]# make install
[[email protected] ~]# Unzip Pcre-8.41.zip
[[email protected] ~]# CD pcre-8.41

[Email protected] pcre-8.41]# Mkdir/usr/local/pcre
[Email protected] pcre-8.41]#/configure--prefix=/usr/local/pcre/--with-apr=/usr/local/apr/bin/apr-1-config
[[email protected] pcre-8.41]# make
[[email protected] pcre-8.41] #make Install
[Email protected] ~]# tar httpd-2.4.26.tar.gz
[Email protected] ~]# CD httpd-2.4.26
[Email protected] httpd-2.4.26]#./configure--prefix=/usr/local/apache--with-pcre=/usr/local/pcre/--with-apr=/ USR/LOCAL/APR--with-apr-util=/usr/local/apr-util/
[[email protected] httpd-2.4.26]# make
[[email protected] httpd-2.4.26]# make install
[Email protected] httpd-2.4.26]# vim/usr/local/apache/conf/httpd.conf
ServerName 192.168.183.129:80

[[email protected] logs]#/usr/local/apache/bin/apachectl start

Linux Apache Tomcat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.