在CentOS上安装Grails

本文说明如果在CentOS上安装Grails

下载Grails并解包:
‘’’shell
wget http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.1.1.zip
unzip grails-2.1.1.zip
‘’’

运行安装指令
‘’’shell
cd grails-2.1.1.zip
./gradlew libs
./gradlew install
‘’’

打开 /root/.bashrc 加入下面的内容:
‘’’shell
export GRAILS_HOME=/PathToGrails
export PATH=${GRAILS_HOME}/bin:${PATH}
‘’’

创建一个应用测试是否安装成功:
‘’’shell
grails create-app test
‘’’