---
title: "Linux CentOS 安装grails"
author: "carge"
date: "2014-06-15T22:08:44Z"
tags: []
categories: ["操作系统"]
slug: "linux-centos-grails"
draft: false
lastmod: "2014-06-15T22:08:44Z"
id: 2080392
url: "https://carge.iteye.com/blog/2080392"
---

Step 1：创建目录

 

 

```
cd /usr
mkdir grails
cd grails
```

 

 

Step 2：获取文件

 

```
wget http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.3.7.zip
unzip grails-2.3.7.zip
```

 

 

Step 3：添加环境变量

```
export GRAILS_HOME=/usr/grails/grails-2.3.7
export PATH=$PATH:$GRAILS_HOME/bin
```