第26月第25天 ubuntu openjdk-8-jdk jretty

时间:2023-03-09 08:59:44
第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.

Getting started

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