- 浏览: 939030 次
- 性别:
- 来自: 广州
最新评论
-
837030601:
很棒,虽然看不懂,楼主能给小白解释下不,解决问题了
mvn jetty:run 启动很慢解决办法 -
jevmok:
第二种方式错误无法添加;
jetty8 添加静态文件目录 -
JavaAiHaoZhezh:
...
spring在filter中注入bean -
zhanglongbin:
感谢楼主分享!!我遇到的问题:本地word转html 两个编码 ...
poi完美word转html(表格、图片、样式) -
wjs876046992:
文档编号显示不对,读出来全是1和1.1,我的文档是1,1.1, ...
poi完美word转html(表格、图片、样式)
文章列表
Solution:
SET SQL_SAFE_UPDATES = 0;
假设我们开发一个监听远程服务器硬盘空间大小的插件
1.在nagios目录libexec下添加可执行脚本check_remote_disk.sh:
out=`ssh root@$1 '/opt/nagios/check_disk -w 10% -c 5% -p / -w 10% -c 5% -p /home -w 10% -c 5% -p /opt -w 10% -c 5% -p /var/log'`
result=`echo $out | grep "DISK OK"`
if [ "$result" = "" ]; the ...
You can turn the error off/down under Preferences -> Java Persistence -> JPA -> Errors/Warnings under 'Queries and Generators' by changing the error 'Generator is not defined in the persistence unit' to a warning.
This looks like a bug in the Hibernate Tools extension of Dali in Eclipse.You ...
zookeeper无法启动,之前也出现过类似的启动问题,都是清除zookeeper所有数据解决的。
原来是因为zoo.cfg里的data目录是配置在/tmp下的,这目录是会定时清空的,例如在意外重启的情况下。于是改变一下这个目录的地址,问题解决。
rm -f /var/run/yum.pid
如报:/usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined symbol:pixman_composite_trapezoids
是因为字体没设置,执行:yum install pixman pixman-devel libXfont -y
FOR /F "skip=5 delims=" %%G IN ('dir /b /O-D /A-D') DO del "%%G"
Will delete all files except the 5 newest ones. I couldn't find a one-liner to keep all files newer than 5 days so for that you might have to use some more complicated logic.
/b
Lists only file names without extr ...
使用Connector/J连接MySQL数据库,程序运行较长时间后就会报以下错误:
Communications link failure,The last packet successfully received from the server was *** millisecond ago.The last packet successfully sent to the server was *** millisecond ago。
其中错误还会提示你修改wait_timeout或是使用Connector/J的autoReconnect属性避免该错误。
MySQL服务器默认的“wa ...
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) no
*** Query: Create new privileged user account 'cyg_server'? (yes/no) yes
*** Info: Please enter a pass ...
如果你用的是NTFS分区格式,chmod就起作用了,这时候Cygwin将相应的权限映射到NTFS文件格式中,如果是FAT就没有办法了,因为FAT不支持安全特性。所以没有办法实现。
rabbitmq集群后想去掉集群,如果操作失误,会出现rabbitmq-server重启不了的情况。报:
inconsistent_cluster 或 table missing,mirrored_sup_childspec 或 node2 needs to cluster with node2, but node2 doesn't agree之类。这时可以通过重置mnesia可以解决:
将 /usr/local/rabbitmq_server-3.0.2/var/lib/rabbitmq/mnesia/deploy@wxdev 下面的文件全部删除即可。
chmod u+w /etc/sudoers
vi /etc/sudoers, add: user ALL(ALL) ALL under root ALL=(ALL) ALL
chmod 0440 /etc/sudoers
vi /etc/pam.d/su
uncomment auth sufficient pam_wheel.so trust use_uid
vi /etc/group
add normal_user to wheel group like:wheel:x10:root,normal_user
windows下rabbitmqctl status查看状态时,会报:
Error: unable to connect to node 'rabbit@hostname': nodedown
解决:
把C:\WINDOWS\.erlang.cookie复制出来,覆盖掉%USERPROFILE%下的".erlang.cookie"文件即可。
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 使用标准错误则可。