先要安装好jdk,tomcat。
1、修改文件conf/server.xml:
把:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
改为:
<Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000" maxThreads="500" URIEncoding="UTF-8"
/>
2.设置 CATALINA_OPTS变量(文件bin/catalina.sh开始位置):
CATALINA_OPTS="-Dicescrum.log.dir=/usr/local/tomcat/logs -Duser.timezone=UTC \
-Dicescrum_config_location=/usr/local/tomcat/conf/config.groovy \
-Xmx512m -XX:MaxPermSize=256m"
3.加入 icescrum
把下载的 war 文件拷贝到 webapps目录下
4.配置 groovy 文件. 添加文件 conf/config.groovy, 内容如下:
icescrum.project.import.enable = true
icescrum.project.export.enable = true
icescrum.project.creation.enable = true
icescrum.project.private.enable = true
icescrum.project.private.default = false
icescrum.gravatar.secure = false
icescrum.gravatar.enable = false
icescrum.registration.enable = true
icescrum.login.retrieve.enable = true
icescrum.auto_follow_productowner = true
icescrum.auto_follow_stakeholder = true
icescrum.auto_follow_scrummaster = true
icescrum.alerts.errors.to = "dev@icescrum.org"
icescrum.alerts.subject_prefix = "[icescrum]"
icescrum.alerts.enable = true
icescrum.alerts.default.from = "webmaster@icescrum.org"
icescrum.attachments.enable = true
grails.serverURL = "http://localhost:8080/icescrum"
/* Changing the port will require to change
it in the Tomcat server.xml Connector*/
icescrum.debug.enable = false
icescrum.securitydebug.enable = false
icescrum.baseDir = "<yourHome>/icescrum"
/* Use a custom directory where Tomcat has write rights
(not webapps!!). Path must use '/' (forward slash) */
icescrum.cors.enable = true /* CORS is enabled by default
However, it's enabled only for projects
where web services are enabled */
icescrum.cors.allow.origin.regex = "*" /* Use double backslash for escaping
e.g. (http://|.+\\.)mydomain\\.com */
grails.mail.host = "smtp.gmail.com"
grails.mail.port = 465
grails.mail.username = "username@gmail.com"
grails.mail.password = "mypassword"
grails.mail.props = ["mail.smtp.auth":"true",
"mail.smtp.socketFactory.port":"465",
"mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
"mail.smtp.socketFactory.fallback":"false"]
/* The props are required for SSL connections */
5.删除文件 tomcat/lib/tomcat-jdbc.jar
暂时不准备改数据库配置,现在应该可以用了。
先启动 tomcat:
/usr/local/tomcat/bin$ ./catalina.sh start
在浏览器里输入:
http://localhost:8080/icescrum/
能看到如下的界面:
此时可以登陆(账号: admin, 默认密码: adminadmin!)