coffee_cn

博客园 首页 新随笔 联系 订阅 管理

2009年12月29日 #

摘要: 1.验证cvs安装#rpm -q cvs2.创建cvs用户组和用户#groupadd cvs#adduser cvsroot#passwd cvsroot3.创建CVSROOT#mkdir /home/cvsroot#chown cvsroot.cvs /home/cvsroot4.初始化CVS#su - cvsroot#cvs -d /home/cvsroot init5.添加环境变量#vi /... 阅读全文
posted @ 2009-12-29 10:11 coffee 阅读(220) 评论(0) 推荐(0) 编辑

2009年12月24日 #

摘要: 最近因工作需要,需要学习java lucene2.0,刚开始学习,长话短说,记录下来!!1、下载lucene2.0http://lucene.apache.org/http://archive.apache.org/dist/lucene/java/lucene-2.0.0.ziplucene-core-2.0.0.jar2、设置环境变量CLASSPATH/home/tomcat/lucene-c... 阅读全文
posted @ 2009-12-24 15:01 coffee 阅读(342) 评论(0) 推荐(0) 编辑

2009年12月10日 #

摘要: 平时很少用到,老是忘记,写下来,下次用了就到这里看看cvs仓库提取:#cvs -q -d /home/cvsroot checkout sss_testjava程序打包:#ant -buildfile build.xml package 阅读全文
posted @ 2009-12-10 10:18 coffee 阅读(288) 评论(0) 推荐(0) 编辑

2009年12月2日 #

摘要: 公司目前的邮件服务器采用的是qmail,最近打算研究下postfix,先收藏一些相关的文章:http://www.postfix.org/基于CentOS 系统下的webmail —ExtMail安装(postfix)http://clq1013.blog.hexun.com/28013907_d.html 阅读全文
posted @ 2009-12-02 22:01 coffee 阅读(183) 评论(0) 推荐(0) 编辑

摘要: 1)Drupal2)Joomla3)WordPress 阅读全文
posted @ 2009-12-02 17:05 coffee 阅读(119) 评论(0) 推荐(0) 编辑

摘要: 最近发现图片格式为cmyk时,图片上传浏览器不能正常显示,图片缩放会变成黑屏,后来通过google发现imagemagick的功能很强大,安装可以采用两种方法,1)直接与php编译安装,在程序中调用;2)直接安装,调用系统命令方式使用为简单,我们采用了第2种,直接利用php或jsp调用convert命令实现了图片从cmyk格式转换到rgb格式:convert.php<?phpexec("/u... 阅读全文
posted @ 2009-12-02 13:15 coffee 阅读(547) 评论(0) 推荐(0) 编辑

摘要: 一日正在对一数据库中一数据表进行删除操作,突然断电,服务器重新启动后,继续执行删除命令,出现以下错误:mysql> delete fromtable1 where ymd<=20091031;ERROR 126 (HY000): Incorrect key file for table './db1/table1.MYI'; try to repair it# myisamchk -r... 阅读全文
posted @ 2009-12-02 11:02 coffee 阅读(410) 评论(0) 推荐(0) 编辑

2009年12月1日 #

摘要: 1一个人总要走陌生的路,看陌生的风景,听陌生的歌,然后在某个不经意的瞬间,你会发现,原本是费尽心机想要忘记的事情真的就那么忘记了。1.One is always on a strange road, watching strange scenery and listening to strange music. Then one day, you will find that the things... 阅读全文
posted @ 2009-12-01 13:01 coffee 阅读(556) 评论(1) 推荐(0) 编辑

2009年11月30日 #

摘要: convert.exe最简单的用法:convert.exe aaa.jpg aaa.png可能用到的参数(没用到的我就不解释了,是在太多):-layers flatten:在转换psd文件的时候用于合并多图层为一个图层,否则的话转换多图层的psd图就会出现多张图,每张图对应一个图层。例如:convert.exe -layers flatten aaa.psd aaa.jpg-density 72:... 阅读全文
posted @ 2009-11-30 16:21 coffee 阅读(1230) 评论(0) 推荐(0) 编辑

2009年11月27日 #

摘要: 查看input,output,forward#iptables -L查看nat#iptables -t nat -L 添加映射#iptables -t nat -A PREROUTING -d<外部IP> -p tcp --dport<外部端口> -j DNAT --to-destination 192.168.168.159:80删除nat映射#iptables -t n... 阅读全文
posted @ 2009-11-27 15:44 coffee 阅读(392) 评论(0) 推荐(0) 编辑