_, _, ch, err := m.ZkConn.ChildrenW(node) if err != nil { x := fmt.Sprintf("%s", err) if strings.Contains(x, "node does not exist"){ log.Error(fmt.Spr... ...
分类:
其他好文 时间:
2017-09-06 18:23:21
阅读次数:
146
apache包含<virtualhost><directory>等主配置模块。<VirtualHost*:80>ServerNamexxx;DocumentRoot/var/www/html;access-log/xxxx/xxx/xxx-log;error-log/xxx/xxx/xxx-log;#以上配置参数后面的内容可以任意,只要存在https的访问方式:安装mod_ssl防火墙开通4..
分类:
Web程序 时间:
2017-09-04 15:15:06
阅读次数:
210
2017-09-02 10:34:21 writer:pprp 最长上升子序列,具体分析看代码:O(n^2)的做法,dp的思想 代码如下: 2、采用了优化,记录了可能被选中的点,将其记录在tmp数组中,再从从其中进行查找 ...
分类:
编程语言 时间:
2017-09-02 15:41:25
阅读次数:
229
#user nobody;worker_processes 1; #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info; #pid logs/nginx.pid; event ...
分类:
其他好文 时间:
2017-08-31 19:10:51
阅读次数:
202
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; ev... ...
分类:
其他好文 时间:
2017-08-31 15:56:19
阅读次数:
200
#运行用户 #user www-data; #启动进程,通常设置成和cpu的数量相等 worker_processes 2; #全局错误日志及PID文件 error_log logs/error.log; error_log logs/error.log notice; error_log logs... ...
分类:
其他好文 时间:
2017-08-25 09:41:11
阅读次数:
223
编码问题可以说是我遇到过的python最大的败笔 今天写django时,很简单的一个项目却报UnicodeDecodeError,而我的代码中一个中文字符都没有出现。 如下: 网上找到的所谓解决方案,要么不是这个错误,要么也是没有解决。 我自己暂时找到的解决方案。找到上图中的restart_with ...
分类:
其他好文 时间:
2017-08-22 10:50:46
阅读次数:
168
使用AS在gradle里配置了多个定制版本,发现在编译版本切换时,会出现错误: Error:Execution failed for task ':processDebugManifest'.> Manifest merger failed with multiple errors, see log ...
分类:
移动开发 时间:
2017-08-15 17:21:09
阅读次数:
870
课程介绍NodeJS最新课程体系1、Node基础知识 1.1:Node概述、非阻塞IO及事件环原理 1.2:Node安装、版本切换、开发环境和调试技巧 1.3:Node应用的编写与启动运行 1.4:控制台的log、error、dir、time和timeEnd等方法1.5:Node中的全局作用域与se ...
分类:
Web程序 时间:
2017-08-13 16:21:30
阅读次数:
352
1、错误日志路径查询 log_error记录了错误日志路径。 2、告警日志设置 log_warnings:0表示不记录警告信息,1表示记录警告信息到错误日志,大于1表示"失败的连接"的信息和创建新连接时"拒绝访问"类的错误信息也会被记录到错误日志中。 ...
分类:
数据库 时间:
2017-08-10 23:46:06
阅读次数:
228