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

Installing Jenkins alone on an Apache Tomcat server

If you chose to have an Apache Tomcat server solely for using Jenkins, follow these steps:

  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. Rename the downloaded jenkins.war package to ROOT.war:
        sudo mv jenkins.war ROOT.war 
  1. Next, delete everything inside the /opt/tomcat/webapps directory by switching to the root user:
        sudo su - 
cd /opt/tomcat/webapps
sudo rm -r *
  1. Now move the ROOT.war (renamed) package from the /tmp directory to the /opt/tomcat/webapps folder:
        sudo mv /tmp/ROOT.war /opt/tomcat/webapps/ 
  1. List the contents of the /opt/tomcat/webapps directory and you will notice a ROOT folder automatically gets created:
        total 68964 
        drwxr-x--- 10 root   root       4096 Jul 31 23:10 ROOT 
        -rw-rw-r--  1 ubuntu ubuntu 70613578 Jul 19 22:37 ROOT.war 

It's always recommended to have a dedicated web server solely for Jenkins.

  1. You can access Jenkins by using http://<IP address of Tomcat server>:8080/ without any additional path. Apparently, the Apache server is now a Jenkins server.

Deleting the content of the /opt/tomcat/webapps directory (leaving behind the ROOT directory and ROOT.war) and then moving the jenkins.war file to the webapps folder is also sufficient to make Apache Tomcat server solely for the use of Jenkins.

The step of renaming jenkins.war to ROOT.war is only necessary if you want to make http://<IP address of Tomcat server>:8080/ the standard URL for Jenkins.

主站蜘蛛池模板: 焦作市| 依兰县| 潍坊市| 皮山县| 扶绥县| 固阳县| 谷城县| 沾益县| 专栏| 苍南县| 岑溪市| 育儿| 彰化市| 菏泽市| 安国市| 巴彦淖尔市| 咸阳市| 东丰县| 辽宁省| 会理县| 安塞县| 黄大仙区| 瓦房店市| 万全县| 乡宁县| 沙田区| 金溪县| 辉南县| 车致| 黄大仙区| 阿拉善左旗| 微博| 昆明市| 聊城市| 柏乡县| 米脂县| 濮阳市| 依兰县| 平南县| 新绛县| 巴东县|