Centos搭建Groovy开发环境

来源:互联网 发布:android js交互框架 编辑:程序博客网 时间:2024/05/16 00:48

背景

        临时接到需求,要帮兄弟团队跑一点线上的数据,据说很急。于是拿出了许久不用的Spring-Boot。可是,可是,死活启动有问题,心累了。其实一般写脚本就是在Boot用Groovy写好,然后放到线上服务器运行之。最后实在无奈,只得在线上服务器安装Groovy环境。跑下脚本。

### 详情        现在博客上寻找一番,无果,也真的是很难看懂,一个环境配置,竟然没有找到一个现成的教程。于是乎,到官网一看,文档实在详细。奉上原文如下:***

3. SDKMAN! (The Software Development Kit Manager)

This tool makes installing Groovy on any Bash platform (Mac OSX, Linux, Cygwin, Solaris or FreeBSD) very easy.

Simply open a new terminal and enter:

$ curl -s get.sdkman.io | bash

Follow the instructions on-screen to complete installation.

Open a new terminal or type the command:

$ source "$HOME/.sdkman/bin/sdkman-init.sh"

Then install the latest stable Groovy:

$ sdk install groovy

After installation is complete and you’ve made it your default version, test it with:

$ groovy -version

That’s all there is to it!



        感觉看到这句话无须在多言,简直太美好。

总结

        个人感觉对于这种中文文献不多的技术不如直接去翻英文文档,获取信息的速率或许远高于我们在信息的汪洋中检索的效率。你知道的。

原创粉丝点击