原来网上也有很多nginx分割日志的方法,发现都是针对access和error两个日志,今天完善一下,多项目多日志循环处理。vim/data/script/cut_nginx_log.sh#!/bin/bash#Thisscriptrunat00:00DATA_TIME=$(date+%F-%H:%M:%S)#TheNginxlogspathnginx_log="/data/logs/nginx"
分类:
其他好文 时间:
2018-12-11 19:51:11
阅读次数:
241
一般这个错误是由密码错误引起,解决的办法自然就是重置密码。 假设我们使用的是root账户。 1.重置密码的第一步就是跳过MySQL的密码认证过程,方法如下: #vim /etc/my.cnf(注:windows下修改的是my.ini) 在文档内搜索mysqld定位到[mysqld]文本段:/mysq ...
分类:
数据库 时间:
2018-12-11 18:16:16
阅读次数:
193
文件路径使用r,/,\\都可以 file_name='C:\\Temp\\t.txt' file_name='C:/Temp/t.txt' ...
分类:
编程语言 时间:
2018-12-11 16:03:07
阅读次数:
213
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysUserMapper' defined in file [D:\workspa ...
分类:
数据库 时间:
2018-12-11 12:47:47
阅读次数:
711
server{listen80;server_nameconfig.xxxx.com;access_log/data/nginx/logs/config.xxxx.com/config.xxxx.com.logmain;location/{root/data/www/config;indexindex.php;}location~\.php${root/data/www/config;fastcg
分类:
Web程序 时间:
2018-12-10 19:10:18
阅读次数:
137
阿里云RAM (Resource Access Management)为客户提供身份与访问控制管理服务。使用RAM,可以轻松创建并管理您的用户(比如雇员、企业开发的应用程序),并控制用户对云资源的访问权限。
分类:
其他好文 时间:
2018-12-10 18:26:28
阅读次数:
214
下载后运行报错 nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) 浏览器先访问 ...
安装了mysql5.7,用group by 查询时抛出如下异常 SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and con ...
分类:
其他好文 时间:
2018-12-10 14:11:45
阅读次数:
840
Personal Data collected for the following purposes and using the following services: Device permissions for Personal Data access Device permissions fo ...
分类:
移动开发 时间:
2018-12-10 13:58:27
阅读次数:
155
使用软件office2010 工具-引用-activex 2.8 .xls 等类型文件 On Error GoTo ErrorHandler Dim Conn As New ADODB.ConnectionConn.Open "Provider=Microsoft.ACE.OLEDB.12.0;ex ...
分类:
数据库 时间:
2018-12-09 14:01:32
阅读次数:
258