location?~*?\.(gif|jpg|jpeg|png|ico)$?{
valid_referers?none?blocked?www.oschina.net?oschina.net;
if?($invalid_referer)?{
????rewrite?^/?/daolian.jpg;
}
access_log?off;
root?/opt/we...
分类:
其他好文 时间:
2015-05-02 12:32:56
阅读次数:
140
一. lock可以代替synchronized关键字实现互斥功能。使用方法如下:
Lock l = ...;
l.lock();
try {
// access the resource protected by this lock
} finally {
l.unlock();
}
需要注意的是。
1.需要...
分类:
编程语言 时间:
2015-05-02 11:13:30
阅读次数:
157
可以在apache的httpd.conf配置文件中配置apache自带的程序rotatelogs的功能。rotatelogs是一个配合Apache管道日志功能使用的简单程序,参考资料:http://httpd.apache.org/docs/current/mod/mod_log_config.ht...
分类:
数据库 时间:
2015-05-02 09:29:38
阅读次数:
167
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause:....
分类:
数据库 时间:
2015-05-01 19:52:39
阅读次数:
1689
nginx日志切割#!/bin/bash
#日志的位置,日志文件以access.log结尾
Logs_Path=/home/wwwlogs
cd${Logs_Path}
#nginx的pid文件
Pid_Path=/var/run/nginx.pid
#日志切割后存放位置
Logs_Logrotate=/home/wwwlogs
#nginx程序
Nginx_Program=/usr/local/tengine/sbin/nginx
#日..
分类:
其他好文 时间:
2015-04-30 20:20:20
阅读次数:
139
昨天有学习ASP.NET MVC的publish和IIS发行网站《简单的ASP.NET MVC发布》http://www.cnblogs.com/insus/p/4466200.html。今天有在IIS :发行另一个网站,在浏览时,它得到一个错误error提示:Access is denied。Se...
分类:
数据库 时间:
2015-04-30 10:29:58
阅读次数:
234
1.ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)首先尝试:delete from mysql.user where user is NULL or user='';commit;...
分类:
数据库 时间:
2015-04-30 07:30:23
阅读次数:
189
1.mysql> create database aa;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'aa'
这是匿名用户的意思~~~虽然你以为你是root登录
解决办法:改真正的root登录
F:\Softwares\mysql5\mysql-5.6.24-winx64\bin>mysql ...
分类:
数据库 时间:
2015-04-29 19:53:06
阅读次数:
154
SQL是用于访问和处理数据库的标准的计算机语言 使用SQL可以访问和处理数据系统中的数据,这类数据库包括:Oracle,Sybase,SQL Server,DB2,Access等等 SQL 能做什么?SQL 面向数据库执行查询SQL 可从数据库取回数据SQL 可在数据库中插入新的记录SQL ...
分类:
数据库 时间:
2015-04-29 19:23:10
阅读次数:
190
SQL对大小写不敏感SQL语句后面的分号? 某些数据库系统要求在每条SQL命令的末端使用分号,有的数据库就不需要 分号是在数据库系统中分隔每条 SQL 语句的标准方法,这样就可以在对服务器的相同请求中执行一条以上的语句 如果使用的是 MS Access 和 SQL Server 2000,则不...
分类:
数据库 时间:
2015-04-29 19:15:37
阅读次数:
158