自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (2)
  • 收藏
  • 关注

原创 cygwin ssh localhost出现 cygwin Connection closed by

ssh-host-config关键最后两个输入:*** Info: This script plans to use 'cyg_server'.*** Info: 'cyg_server' will only be used by registered services.*** Query: Do you want to use a different name? (yes/no) [...

2013-04-23 17:51:44 169

原创 cygwin chmod没反应

如果你用的是NTFS分区格式,chmod就起作用了,这时候Cygwin将相应的权限映射到NTFS文件格式中,如果是FAT就没有办法了,因为FAT不支持安全特性。所以没有办法实现。...

2013-04-23 17:06:37 540

原创 rabbitmq启动报错: table missing,mirrored_sup_childspec inconsistent_cluster

rabbitmq集群后想去掉集群,如果操作失误,会出现rabbitmq-server重启不了的情况。报:inconsistent_cluster 或 table missing,mirrored_sup_childspec 或 node2 needs to cluster with node2, but node2 doesn't agree之类。这时可以通过重置mnesia可以解决:将 ...

2013-04-23 10:50:45 360

原创 linux 普通用户添加sudo权限

chmod u+w /etc/sudoersvi /etc/sudoers, add: user ALL(ALL) ALL under root ALL=(ALL) ALLchmod 0440 /etc/sudoers

2013-04-10 16:32:43 155

原创 linux 普通用户su 免密码

vi /etc/pam.d/suuncomment auth sufficient pam_wheel.so trust use_uidvi /etc/groupadd normal_user to wheel group like:wheel:x10:root,normal_user

2013-04-10 16:22:59 791

原创 rabbitmqctl : unable to connect to node

windows下rabbitmqctl status查看状态时,会报:Error: unable to connect to node 'rabbit@hostname': nodedown解决:把C:\WINDOWS\.erlang.cookie复制出来,覆盖掉%USERPROFILE%下的".erlang.cookie"文件即可。...

2013-04-10 16:03:36 270

原创 usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .

daemontools安装报错:usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o编辑src/conf-cc, 加gcc加上-include /usr/include/errno.h 使用标准错误则可。...

2013-04-07 23:38:38 374

原创 nginx 405 Not Allowed

这个错误的原因是:Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误。 [code="java"]upstream static_backend { server localhost:80;}server { listen 80; ...

2013-04-07 22:41:08 553

原创 lucene 关键字过滤

[code="java"]keyword.replaceAll("[\\+\\-\\&\\|\\!\\(\\)\\{\\}\\[\\]\\^\\~\\*\\?\\:\\\\]","");[/code]否则报:org.apache.lucene.queryParser.ParseException: Encountered "" at line 1, column 0.

2013-04-02 08:52:16 175

原创 lucene 索引文件 拷贝 使用 ISO-8859-1编码

lucene 索引文件 拷贝 使用 ISO-8859-1编码

2013-04-01 12:55:44 146

常用shell命令

常用shell命令,实用,有空多看看总比看微博好!

2012-04-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除