ITeye博客

keepmoving2012

aryanwang · 共 11 篇文章

【转载】Ant-svn

转自 http://panyongzheng.iteye.com/blog/1271184 SVN ANT ---------------------------------- 1.下载ant1.6.5,放到D:\ant165,设定环境变量ANT_HOME=D:\ant165,设定这个变量,当下面的ant.home找不到的时候,应该会自己去找这个变量。 2.到http://svnkit.com/download.php下载svnkit.svn_1.3.6.1.standalone.zip[Standalone Version],解压,把所有lib下面的文件放到ant/lib下面去。 3.到h…

2012-04-12 14:44 · Ant&Jenkins · 评论(0)

MongoDB cluster 搭建

1.配置两个shard mongod.exe --shardsvr --dbpath D:\temp\cluster\shard11 --replSet shard1 --port 27017 --oplogSize 100 --logpath D:\temp\cluster\shard11\shard11.log --logappend mongod.exe --shardsvr --dbpath D:\temp\cluster\shard12 --replSet shard1 --port 27017 --oplogSize 100 --logpath D:\temp\cluster\s…

2012-04-10 09:27 · NoSQL · 评论(0)

MongoDB Quick Start

在nosqlfan网站看到的资料,原文链接失效,重新整理了一份 MongoDB:1. Database MongoDB:2. Basic Usage MongoDB:3. Schema Design MongoDB:4. Index MongoDB:5. Admin MongoDB:6. Optimization MongoDB:7. Replication (1) MongoDB:7. Replication (2) MongoDB:8. Sharding (1) MongoDB:8. Sharding (2) MongoDB:9. Grid FS MongoDB:10. MapReduce

2012-03-30 21:35 · NoSQL · 评论(1)

hudson配置jobs的workspace和builds目录

安装了hudson在C盘根目录,随着运行的任务越多,占用空间越大,这时可以将hudson的wordspace和builds目录配置到其他盘,方法如下: 点击 Manage Jenkins --> Manage Nodes -->master然后点击 Configure 即可进入到对master的配置中, 如下图所示:使用变量**${ITEM_FULLNAME}**即可

2012-03-13 11:50 · Ant&Jenkins · 评论(0)

hp-ux配置jdk问题

在hp-ux系统上安装好jdk并配置了path,但是执行java命令报错: /home$ java /usr/lib/dld.sl: Can't find path for shared library: libjli.sl /usr/lib/dld.sl: No such file or directory ABORT instruction 配置如下环境变量即可: home$ export JAVA_HOME=/opt/java6 home$ export PATH=$PATH:$JAVA_HOME/bin home$ export SHLIB_PATH=/opt/java6/jre/l…

2012-03-05 22:21 · Linux · 评论(0)

rm: examine files in directory

在Solaris系统上删除文件 rm -rf dirname 结果对每一个文件提示 :rm: examine files in directory 使用alias命令查询得到 alias rm='rm -i' 其默认给rm命令添加了-i参数 使用/usr/bin/rm -rf dirname 就可以不用每一项确认。

2012-02-28 14:39 · Linux · 评论(0)

Ant - scriptdef - Unable to create javax script engine for javascript

Ref : http://ant.apache.org/manual/Tasks/scriptdef.html 在Ant里可以用scriptdef标签来定义一段脚本成为一个任务,今天用JavaScript和该标签定义了一个任务,将字符串转小写,代码如下: <scriptdef name="lc" language="javascript"> <attribute name="property"/> <attribute name="value"/> project.setNewProperty(attributes.get("property"), attributes.get("value…

2012-02-23 12:02 · Ant&Jenkins · 评论(0)

Linux常用命令备忘

1. Command Line CTRL+U 删除光标之前的字符 CTRL+K 删除光标之后的字符 CTRL+Y 将最后一次删除的字符复制到命令行 CD - 回到上一次的目录 2.文本文件 file <file_name> 查看文本文件编码 3.VI 编辑器 dw 删除一个word e/w 光标前进一个word b 光标后退一个word d0 删除光标前所有字符 d$ 删除光标后所有字符 gg 光标移至第一行 SHIFT + g 光标移至最后 SHIFT + * 查找同名字符串 : set number 显示行号 : number 去指定的行 例如 : 52 ln -s <source> <…

2012-02-22 08:42 · Linux · 评论(0)

Ant-sshexec-执行远程服务器或本地脚本

1. 远程服务器 Reference: http://ant.apache.org/manual/Tasks/sshexec.html Runs a command on a remote machine running SSH daemon. Note: This task depends on external libraries not included in the Ant distribution. See Library Dependencies for more information. This task has been tested with jsch-0.1.29 an…

2012-02-17 15:35 · Ant&Jenkins · 评论(1)

向WebSphere mq topic中put消息

package com.quest.test; import java.io.IOException; import com.ibm.mq.MQException; import com.ibm.mq.MQGetMessageOptions; import com.ibm.mq.MQMessage; import com.ibm.mq.MQPutMessageOptions; import com.ibm.mq.MQQueueManager; import com.ibm.mq.MQTopic; import com.ibm.mq.constants.CMQC; import com.que…

2012-02-08 10:36 · IBM WebSphere MQ · 评论(0)

向websphere mq queue里put和get消息

连接Queue Manager的工具类: package com.quest.mq; import java.io.IOException; import java.util.Hashtable; import com.ibm.mq.MQException; import com.ibm.mq.MQQueueManager; import com.ibm.mq.pcf.PCFMessage; import com.ibm.mq.pcf.PCFMessageAgent; public class MQTool { public String queueManagerName = "QM"; p…

2012-02-06 14:07 · IBM WebSphere MQ · 评论(0)