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

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.

主站蜘蛛池模板: 龙南县| 宜君县| 唐河县| 美姑县| 乐昌市| 顺昌县| 广州市| 襄垣县| 万载县| 贵州省| 客服| 黎平县| 南丰县| 敖汉旗| 美姑县| 本溪| 铜梁县| 吴江市| 灵川县| 儋州市| 湄潭县| 长治市| 东平县| 沁阳市| 滕州市| 聊城市| 江山市| 安远县| 缙云县| 虎林市| 昌黎县| 巴东县| 东阿县| 宁武县| 阳新县| 海安县| 巩义市| 乌兰察布市| 巴林左旗| 日土县| 新余市|