摘要: /** The JDBC database driver. */指定连接驱动 public static final String DB_DRIVER = "driver"; /** The JDBC database URL. */ 连接字符串 public static...阅读全文
posted @ 2015-11-12 11:18 家中慢步 阅读(49) 评论(0) 编辑
摘要: package com.xxx.xxx.common;import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.Map;import org.apache.http.client.HttpClien...阅读全文
posted @ 2015-09-25 15:45 家中慢步 阅读(2260) 评论(0) 编辑
摘要: 为redmine添加里程碑.1. 参照https://ociotec.com/redmine/projects/advanced-roadmap/wiki/Advanced_roadmap_plugin_for_Redmine2. 启动测试失败,需要安装RMagick,http://www.huomo.cn/os/article-14d97.html3. 重启redmine.4. 使用时,需要在每一个项目的配置中,新建里程碑及相关版本, 并且在每一个问题中,选择目标版本,这样在路线图中会自动统计里程碑相关的任务汇总情况。阅读全文
posted @ 2011-12-01 13:26 家中慢步 阅读(1282) 评论(1) 编辑
摘要: 1. 创建备份路径mkdir /root/redmineback2. 修改路径访问权限chmod 777 /root/redmineback3. 添加脚本redback.sh,vi /root/redmineback/redback.sh# 备份文件rsync -a /var/www/redmine/files /root/redmineback/files # 备份数据mysqldump -uroot -d redmine | gzip >/root/redmineback/redmine_`date +%y_%m_%d`.gz4.修改/etc/crontab,让脚本自动执行, vi 阅读全文
posted @ 2011-11-09 14:31 家中慢步 阅读(403) 评论(0) 编辑
摘要: 1. Install gem and passenger dependenciesyum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel2. 下载ruby,注意安装包的名字mkdir downloadscd ~/Downloads # YOUR FOLDER OF CHOICEftp ftp.ruby-lang.orgcd /pub/rubyget ruby-1.8.7.pXXX.tar.gztar zxvf ruby-1.8.7.pXXX.tar.g阅读全文
posted @ 2011-11-08 11:03 家中慢步 阅读(316) 评论(0) 编辑
摘要: show VARIABLES like 'character_%';先查看一下,各个设置的编码是否是 utf8set character_set_client=utf8;set character_set_server=utf8;set character_set_connection=utf8;阅读全文
posted @ 2011-11-08 11:02 家中慢步 阅读(104) 评论(0) 编辑
摘要: 安装步骤:下载并安装TortoiseSVN下载地址: http://tortoisesvn.net/downloads下载并安装TortoiseSVNRedmineIssuesPlugin下载地址:http://code.google.com/p/redmine-projects/downloads/list配置工作:TorToiseSVN--Settings--Hook Scripts--Issue Tracker integration点击Add,添加svn本地工作路径与Redmine问题atom源的对应关系。work copy path:表示svn本地工作路径。Provider: 选择t阅读全文
posted @ 2011-11-02 11:52 家中慢步 阅读(952) 评论(0) 编辑
摘要: 原文地址:http://quartznet.sourceforge.net/tutorial/lesson_2.htmlLesson 2: Jobs And Triggers第二课:任务与触发器As mentioned previously, you can make .NET component executable by the scheduler simply by making it implement the IJob interface. Here is the interface:我们之前提过,我们可以通过实现IJob接口,很容易地使.net组件按照计划执行,下面是IJob接口。阅读全文
posted @ 2011-10-27 17:31 家中慢步 阅读(160) 评论(0) 编辑
摘要: Redmine集成LDAP认证的前提是需要在系统中建立域用户,为此实现了一个从Ad中获取用户并初始化到Redmine的功能。功能设计 AD账户读取 定义Model public class ADUserModel { public string UserId { get; set; } public string UserName { get; set; } public string Email { get; set; } } 查询AD对象public static List<ADUserModel> GetAllDomainUs...阅读全文
posted @ 2011-10-27 16:44 家中慢步 阅读(890) 评论(1) 编辑
摘要: 1. 打开\redmine-1.2.1\config, 将configuration.yml.example的后缀.example去掉。2. 用记事本打开,添加smtp配置# specific configuration options for production environment# that overrides the default onesproduction: email_delivery: delivery_method: :smtp smtp_settings: address: "smtpsrv02.xxx.cn" port: 25 ...阅读全文
posted @ 2011-10-27 15:42 家中慢步 阅读(2006) 评论(0) 编辑