本文将记录工作中遇到的各种坑,持续更新…
php接口报500错误,查看php-error.log日志 recv() failed (104: Connection reset bypeer) while reading response header from upstream 查看php-fpm.log日志 EACCELERATOR(31153): PHP crashed 解决方法:php/etc/ext/eaccelerator.ini中eaccelerator.enable中1改为0jenkins job的后台程序会在job结束时被终止 解决方法:重设BUILD_ID 参考文档df和du查看结果不一致 存在隐藏文件夹 存在已经删除的大文件被进程占用 解决方法:lsof查看占用已删除大文件的进程并kill 参考文档jenkins job生成JUnit test result report报错 org.dom4j.DocumentException: Error on line 1 of document file://xxx.xml : An invalid XML character (Unicode: 0x{2}) was found in the value of attribute “{1}” and element is “1a”. Nested exception: An invalid XML character (Unicode: 0x{2}) was found in the value of attribute “{1}” and element is “1a”. 解决方法:过滤乱码,shell版本如下sed -i 's/[/x00/x01/x02/x03/x04/x05/x06/x07/x08/x0b/x0c/x0e/x0f/x10/x11/x12/x13/x14/x15/x16/x17/x18/x19/x1a/x1b/x1c/x1d/x1e/x1f]/?/g' filenamesed中的正则表达式使用不熟悉,只能这样把乱码字符全部写出来,要是有大神知道简化版本,还望不吝赐教。 参考文档
新闻热点
疑难解答