配置nginx.conf文件
#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;
events {
worke...
分类:
其他好文 时间:
2015-04-26 09:33:28
阅读次数:
225
在 MySQL 中,有 4 种不同的日志,分别是错误日志、二进制日志、查询日志和慢查询日志。错误日志错误日志记录了 MySQL 启动和停止时以及服务器在运行过程中发生严重错误时的相关信息。查看错误日志文件的路径mysql> SHOW VARIABLES LIKE 'log_error%';+----...
分类:
数据库 时间:
2015-04-22 22:03:15
阅读次数:
176
vim/usr/local/nginx/conf/nginx.conf#usernobody; #程序运行使用账户worker_processes1; #启动的进程,通常设置成和cpu的数量相等#全局错误日志级PID文件#error_loglogs/error.log;#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;#pidlogs/nginx.pid;events..
分类:
其他好文 时间:
2015-04-17 11:51:37
阅读次数:
107
#####################shijl:20150410:my.ini########################记录所有sql语句log=E:/phpStudy/MySQL/log/query.log#记录数据库启动关闭信息,以及运行过程中产生的错误信息log-error=E:/phpStudy/MySQL/log/error.log#记录除select语句之外的所有sql语句到日志中,可..
分类:
数据库 时间:
2015-04-10 11:41:03
阅读次数:
520
ystem.out和System.err都被打印到catalina.out。catalina.out不会rotate。一般在部署Tomcat后,运行久了,catalina.out文件会越来越大,对系统的稳定造成了一定的影响。1、可通过修改conf/logging.properties日志配置文件来屏蔽掉这部分的日志信息。[root@localhostconf]#pwd
/..
分类:
系统相关 时间:
2015-04-02 16:47:46
阅读次数:
331
**1. 手上有2份C 代码实现,一份是基于boost的实现 较完整,一份是C 加Openssl实现(可以用,不少细节需要调整)
1. IS_SERVER_LOG_ERROR 宏是用来打日志,由于是项目中要用的模块,牵涉较多 ,就不提供此宏定义了
2. 本模块只涉及apns客户端部分
3. 涉及boost的主要模块有boost bind,boost asio,boost ssl,boost...
分类:
移动开发 时间:
2015-03-20 12:56:05
阅读次数:
195
日志对于统计排错来说非常有利的。本文总结了nginx日志相关的配置如access_log、log_format、open_log_file_cache、log_not_found、log_subrequest、rewrite_log、error_log。nginx有一个非常灵活的日志记录模式。每个级...
分类:
其他好文 时间:
2015-03-16 14:21:19
阅读次数:
195
定义和用法error_log() 函数向服务器错误记录、文件或远程目标发送一个错误。若成功,返回 true,否则返回 false。语法error_log(error,type,destination,headers)参数描述error必需。要记录的错误消息。type可选。规定错误记录的类型。可能的记...
分类:
Web程序 时间:
2015-03-12 11:18:03
阅读次数:
135
user www;worker_processes 2;error_log /var/log/nginx/error.log error;#error_log logs/error.log notice;#error_log logs/error.log info;pid /var/ru...
分类:
其他好文 时间:
2015-03-03 16:35:35
阅读次数:
151
直接运行一下代码就可以:
log-error=log-error.log
log=log.log
log-bin=log-bin.log
log-queries-not-using-indexes=log-queries-not-using-indexes.log
log-warnings=1
log-slow-queries=log-slow-query.log
log-u...
分类:
数据库 时间:
2015-02-14 12:26:22
阅读次数:
152