zoukankan      html  css  js  c++  java
  • 第26月第25天 ubuntu openjdk-8-jdk jretty

    1.ubuntu

    ============== 

    sudo apt-get install openjdk-8-jdk

    https://blog.csdn.net/zhaohaiyitian88/article/details/78885745

    =====================

    brew install tomcat

     

    brew search tomcat
    brew install tomcat
    catalina -h #查看帮助
    catalina run #运行服务

    https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

    https://blog.csdn.net/mbugatti/article/details/53781493

    2.

    Add the following to "build.gradle" of your web-app:

    apply plugin: 'war'
    apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'

    That’s all! Now you can start your web-app with the command:

    gradle appRun

    you can also use other Gretty tasks for running and debugging your web-app or configure Gretty to your needs.

    Alternatively, you can download the script from https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin to the project folder and include it like this:

    apply from: 'gretty.plugin'

    or feel free inserting to your "build.gradle":

    buildscript {
      repositories {
        jcenter()
        // enable this to use snapshot versions of Gretty:
        // maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
      }
    
      dependencies {
        classpath 'org.akhikhl.gretty:gretty:+'
      }
    }
    
    repositories {
      jcenter()
      // enable this to use snapshot versions of Gretty:
      // maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
    }
    
    apply plugin: 'org.akhikhl.gretty'

    http://akhikhl.github.io/gretty-doc/Getting-started.html

    3.tomcat8

    ls /var/lib/tomcat8/webapps

    sudo service tomcat8 start

    https://jingyan.baidu.com/article/046a7b3e992ffff9c27fa92c.html

  • 相关阅读:
    P85 实战练习
    Java语句及控制台输入
    P62 实战练习
    运算符、数据类型转换和注释
    Java变量与常量
    Java语法初步实际应用
    JQ 练习题
    JQ 特效下拉列表 写出与css一样的效果
    JQ 全选设定与设置选中
    JQ JSON数据类型
  • 原文地址:https://www.cnblogs.com/javastart/p/10016769.html
Copyright © 2011-2022 走看看