官术网_书友最值得收藏!

Installing Jenkins on the Apache Tomcat server

You can perform the following steps if you do not wish to have a standalone server for Jenkins master, and want to host it along with other services that exist on the Apache Tomcat server:

  1. Move to the /tmp directory and download the Jenkins application using the wget command, as shown here:
        cd /tmp
wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war
  1. The previous command will download the latest stable version of jenkins.war file.
  2. Move the file from /tmp to /opt/tomcat/:
        sudo mv jenkins.war /opt/tomcat/webapps/ 
  1. List the content of the /opt/tomcat/webapps/ directory :
        sudo ls -l /opt/tomcat/webapps 

You should see the following output:

        total 68984 
        -rw-rw-r--  1 ubuntu ubuntu 70613578 Jul 19 22:37 jenkins.war 
        drwxr-x---  3 root   root       4096 Jul 31 21:09 ROOT 
        drwxr-x--- 14 root   root       4096 Jul 31 21:09 docs 
        drwxr-x---  6 root   root       4096 Jul 31 21:09 examples 
        drwxr-x---  5 root   root       4096 Jul 31 21:09 manager 
        drwxr-x---  5 root   root       4096 Jul 31 21:09 host-manager 
        drwxr-x--- 10 root   root       4096 Jul 31 22:52 jenkins 

You will notice that a jenkins folder automatically gets created the moment you move the jenkins.war package to the webapps folder. This is because the .war file is a web application archive file that automatically gets extracted once deployed to the webapps directory. What we did is a small deployment activity.

  1. And that is all you need to do. You can access Jenkins using http://<IP address of Tomcat server>:8080/jenkins.
主站蜘蛛池模板: 石门县| 稻城县| 西昌市| 宽甸| 洛阳市| 剑河县| 安龙县| 营山县| 大余县| 榆社县| 尼勒克县| 晋州市| 平乡县| 共和县| 凭祥市| 古丈县| 浏阳市| 邵东县| 来安县| 离岛区| 临武县| 岢岚县| 衡阳市| 沾益县| 南皮县| 凭祥市| 吉木乃县| 宁化县| 正安县| 启东市| 西盟| 怀集县| 烟台市| 永丰县| 邹平县| 安宁市| 同江市| 重庆市| 平乐县| 天津市| 满洲里市|