centos6.6 apache-tomcat-8.0.27 Installation Jenkins

Source: Internet
Author: User
Tags define session

Environment:

[Email protected] ~]$ uname-r

2.6.32-504.el6.x86_64

[Email protected] ~]$ cat/etc/redhat-release

CentOS Release 6.6 (Final)

ip:10.24.24.17


Software version:

Apache-tomcat-8.0.27.tar.gz

Jdk-8u60-linux-x64.tar.gz

=======================================================

1. Go to the directory and upload

#cd/usr/local/src/

#rz-y

Apache-tomcat-8.0.27.tar.gz jdk-8u60-linux-x64.tar.gz


2. Installing the JDK

# Tar XF jdk-8u60-linux-x64.tar.gz-c/usr/local/

# ln-s/usr/local/jdk1.8.0_60//USR/LOCAL/JDK

# Chown-r ROOT.ROOT/USR/LOCAL/JDK


3. Configure environment Variables for Java

[Email protected] src]# Vim/etc/profile

Add at the end

Export JAVA_HOME=/USR/LOCAL/JDK

Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH

Export classpath=. $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib: $JAVA _home/lib/tools.jar


# Source/etc/profile


4. Installing Apache-tomcat

# Tar XF apache-tomcat-8.0.27.tar.gz-c/usr/local/

# ln-s/usr/local/apache-tomcat-8.0.27//usr/local/tomcat

# echo ' Export Tomcat_home=/usr/local/tomcat ' >>/etc/profile

# Source/etc/profile


5. Start

[Email protected] src]#/usr/local/tomcat/bin/startup.sh

Using catalina_base:/usr/local/tomcat

Using Catalina_home:/usr/local/tomcat

Using Catalina_tmpdir:/usr/local/tomcat/temp

Using Jre_home:/USR/LOCAL/JDK

Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar

Tomcat started.

6. View the running Process

[Email protected] webapps]# ss-lntup|grep java

TCP LISTEN 0 1:: ffff:127.0.0.1:8005:::* Users: (("Java", 1441,67)

TCP LISTEN 0::: 8009:::* Users: (("Java", 1441,51))

TCP LISTEN 0::: 8080:::* Users: (("Java", 1441,46))


Configuration End!!


7. Browser browsing: http://10.24.24.17:8080/

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "border=" 0 "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650) this.width=650 ; "Src=" Http://s4.51cto.com/wyfs02/M01/7F/32/wKiom1cWK03D3YcsAAGj7B0prFc436.png "title=" 86fd0e21-f56c-4454-ba44-d3f02c9ce3ee.png "alt=" Wkiom1cwk03d3ycsaagj7b0prfc436.png "/>


Close command

/usr/local/tomcat/bin/shutdown.sh


Look at the logs, Tomcat running logs at the moment

# Cd/usr/local/tomcat/logs

# TAILF Catalina.out

=============================================================================

Configuration file Explanation

[Email protected] conf]# ll/usr/local/tomcat/conf

Total 216

Drwxr-xr-x 3 root root 4096 Feb 17:02 Catalina

-RW-------1 root root 12374 Sep 16:19 catalina.policy

-RW-------1 root root 7106 Sep 16:19 catalina.properties

-rw-------1 root root 1577 Sep 16:19 context.xml

-RW-------1 root root 3387 Sep 16:19 logging.properties

-RW-------1 root root 6458 Sep 16:19 server.xml

-RW-------1 root root 1744 Sep 16:19 tomcat-users.xml

-RW-------1 root root 1846 Sep 16:19 tomcat-users.xsd

-rw-------1 root root 167302 Sep 16:19 Web. XML


Web. XML provides a default deployment descriptor for all WebApp deployed on this tomcat instance, and is typically used to provide basic servlet definitions and MIME mapping tables for WebApp.

Context.xml A context profile that provides a default profile for all WebApp (Web applications) deployed on this Tomcat instance;

Context.xml are often used to define session manager, JDBC, and realm. But each webapp can have its own unique context.xml, which is usually placed in the meta-inf of each WebApp directory.


[email protected] conf]# CD /usr/local/tomcat/conf

[Email protected] conf]# vim Tomcat-users.xml

The upper row of the tail inserts join

<role rolename= "Manager-gui"/>

<role rolename= "Admin-gui"/>

<user username= "Tomcat" password= "Tomcat" roles= "Manager-gui,admin-gui"/>

</tomcat-users>


Restart Service

[email protected] conf]# /usr/local/tomcat/bin/shutdown.sh

Using catalina_base:/usr/local/tomcat

Using Catalina_home:/usr/local/tomcat

Using Catalina_tmpdir:/usr/local/tomcat/temp

Using Jre_home:/USR/LOCAL/JDK

Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar


[email protected] conf]# /usr/local/tomcat/bin/startup.sh

Using catalina_base:/usr/local/tomcat

Using Catalina_home:/usr/local/tomcat

Using Catalina_tmpdir:/usr/local/tomcat/temp

Using Jre_home:/USR/LOCAL/JDK

Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar

Tomcat started.


Installing Jenkins

Jenkins is an open source software project designed to provide an open and easy-to-use software platform that enables continuous integration of software into a possible

Function

Jenkins is a continuous integration tool based on Java development that monitors ongoing duplication of work, including:

1. Continuous software release/test project.

2. Monitor the work performed by external calls.


If Tomcat8 runs in daemon, you need to set Jenkins_home first:

vim/usr/local/tomcat/bin/startup.sh

Export Jenkins_home=/home/aaa/jenkins/jenkins_home3

Restart

/usr/local/tomcat/bin/shutdown.sh && /usr/local/tomcat/bin/startup.sh


cd/usr/local/tomcat/webapps/

Download wget Http://mirrors.jenkins-ci.org/war/latest/jenkins.war

or upload Jenkins.war


Browser access:

http://10.24.24.17:8080/jenkins/

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "border=" 0 "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650) this.width=650 ; "Src=" Http://s4.51cto.com/wyfs02/M02/7F/32/wKiom1cWK26ixZ6iAAB8IzmiGw4683.png "title=" 7b462b9f-55f5-4b56-9177-b6563400a550.png "alt=" Wkiom1cwk26ixz6iaab8izmigw4683.png "/>

==========================================================

Resources

A detailed Tomcat configuration file

http://10554846.blog.51cto.com/10544846/1682017



This article is from the "Linux operations self-cultivation" blog, please be sure to keep this source http://ywliyq.blog.51cto.com/11433965/1765530

centos6.6 apache-tomcat-8.0.27 Installation Jenkins

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.