zoukankan      html  css  js  c++  java
  • 使用tomcat 加载Jenkins

     
    安装tomcat
    wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.41/bin/apache-tomcat-9.0.41.tar.gz
    vim /etc/profile,加入以下代码
    export CATALINA_HOME=/var/local/tomcat/apache-tomcat-9.0.41
    export PATH=$PATH:$CATALINA_HOME/bin
     

    使生效

    source /etc/profile
    //查看防火墙状态
    service  iptables status
    //关闭防火墙
    chkconfig iptables off
    如果安装好之后还是不能打开tomcat,是因为防火墙没有开放8080端口
    需注意的是:CentOS 7防火墙换用Friewalld了,所以要用以下命令将端口号加进防火墙:
    firewall-cmd --zone=public --add-port=8080/tcp --permanent
    firewall-cmd --reload
    //进入bin目录
    cd /var/local/tomcat/apache-tomcat-9.0.41/bin
    //启动Tomcat
    ./startup.sh
     
     
    移动Jenkins
    mv jenkins.war /var/local/tomcat/apache-tomcat-9.0.41/webapps/
    在浏览器里面输入ip:8080/jenkins
    出现jenkins首页。
     
     
     
     
     
     
     
     
     
     
     
     

  • 相关阅读:
    模块jieba库的使用
    模块wordcloud库的使用
    爬取哔哩哔哩网站弹幕
    爬虫讲解
    基本统计值计算
    数据类型及元素元组
    pyinstall的安装及使用
    面向对象介绍
    re模块
    logging模块
  • 原文地址:https://www.cnblogs.com/sea-stream/p/14118277.html
Copyright © 2011-2022 走看看