一、环境平台:
linux Workstation4 内核2.6.9-67 X86_64(64位)
ant 1.8.0
tomcat5.5.25(tomcat5.5.28及其以上就不行了)
gridsphere3.1
二、gridsphere的安装
1)首先从 www.gridshpere.org 下载 gridsphere3.1 的源码安装包;
下载:gridsphere-3.1-src.tgz
2) 使用tar命令解压
tar zxvf gridsphere-3.1-src.tgz
在/etc/profile中添加变量GRIDSPHERE_HOME
3) 进入安装文件 运行ant install ,要注意是否已安装好前提软件,特别注意的是tomcat,这三个包都要下载解压到一个文件夹下
4) 步骤(3)成功之后,启动 tomcat,在浏览器地址中输入http://localhost:8080/gridsphere;便可看到 gridsphere 的页面。
另:
1、重装gridsphere的时候要删除$CATALINA_HOME/webapps下的工程目录,删除$GRIDSPHERE_HOME整个文件夹,还有别忘了删除$HOME/.gridsphere这个文件夹
2、安装部署HelloWorld Portlet的错误解决:
出错:
BUILD FAILED
/usr/local/gridsphere-3.1/projects/gsexamples/build.xml:411: The following error occurred while executing this line:
/usr/local/gridsphere-3.1/projects/gsexamples/build.xml:227: dbtask doesn't support the "configdir" attribute
解决办法:
Then, I try:
touch $HOME/.gridsphere/portlets/gsexamples.2
$CATALINA_HOME/bin/startup.sh
虽然终端报错,但是已经部署成功了!
3、以后的portlet安装只需ant deploy然后重启tomcat服务器就可以部署成功了