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

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.

主站蜘蛛池模板: 安图县| 黄龙县| 同江市| 南木林县| 隆昌县| 德钦县| 隆德县| 定安县| 昭平县| 绍兴市| 隆化县| 宁城县| 镇安县| 巴中市| 周口市| 东丰县| 镇宁| 宜章县| 青田县| 海南省| 襄汾县| 兴业县| 夏邑县| 苏尼特右旗| 西青区| 武陟县| 芒康县| 光泽县| 延川县| 安平县| 聊城市| 子洲县| 临潭县| 土默特右旗| 太仆寺旗| 左云县| 花莲县| 肃北| 陵川县| 高邑县| 托里县|