今天做了一个nginx的多虚拟主机的实验,遇到了一些问题。首先介绍一下配置文件如何修改。如下是我的主配置文件nginx.confusernobodynobody;worker_processes2;error_log/usr/local/nginx/logs/nginx_error.logcrit;pid/usr/local/nginx/logs/nginx.pid;worker_rlimit_nofile512..
分类:
其他好文 时间:
2015-05-28 18:26:16
阅读次数:
327
gitclonexxx@xx版本后,edit某文件,commit之后,点push,提示报错。可能有以下原因:1、权限不够,远程仓库的文件夹(比如/home/git)下面的文件所属用户非git用户,而默认的文件权限通常是644,那么当你用非git用户push的时候,肯定是权限不够的。解决方法:进入远程仓库的上..
分类:
其他好文 时间:
2015-05-28 18:23:07
阅读次数:
875
一.nginx.confvim/usr/local/nginx/conf/nginx.conf//清空原来的配置,加入如下内容:usernobodynobody;worker_processes2;error_log/usr/local/nginx/logs/nginx_error.logcrit;pid/usr/local/nginx/logs/nginx.pid;worker_rlimit_nofile51200;events{useepoll;worker_connect..
分类:
Web程序 时间:
2015-05-28 16:28:55
阅读次数:
290
最近学习MyBatis,学习到注解方式实现增删改查使遇到异常,困惑的很长时间,最终找到解决问题的方法,共勉!
写好注解的接口后注册到配置文件时使用
方式一
问题来了,抛出异常如下:
org.apache.ibatis.exceptions.PersistenceException:
### Error building SqlSession.
### Cause: org.apac...
分类:
其他好文 时间:
2015-05-28 16:19:14
阅读次数:
206
1. error loggingmessages saved to php_error.loghttp://php.net/manual/en/function.error-log.phphttp://stackoverflow.com/questions/3531703/how-to-log-er...
分类:
Web程序 时间:
2015-05-28 16:07:51
阅读次数:
113
Swift中的问号?和感叹号!Swift语言使用var定义变量,但和别的语言不同,Swift里不会自动给变量赋初始值,也就是说变量不会有默认值,所以要求使用变量之前必须要对其初始化。如果在使用变量之前不进行初始化就会报错:var stringValue : String //error: varia...
分类:
移动开发 时间:
2015-05-28 15:36:13
阅读次数:
143
<?php
echo‘error!‘;zheshiyigeceshi<html>
<body>htmldaima</body>
</html好像51cto区分并不是很明显啊
分类:
其他好文 时间:
2015-05-28 14:20:37
阅读次数:
131
错误提示日志:015-05-28 10:40:25 - Request for install time of 应用程序服务器角色、Web 服务器(IIS)角色2015-05-28 10:40:26 - Request for install time of 应用程序服务器角色、Web 服务器(I....
分类:
其他好文 时间:
2015-05-28 12:16:41
阅读次数:
149
error LNK2001: unresolved external symbol __imp__plist_array_get_item
这种错误需要在目标项目上添加 Reference.
Release版本需要把所有类库: Configuration Properties->C/C++->Code Generation->Runtime Library修改为MT(静态链接库)
多类库相互依赖,...
分类:
其他好文 时间:
2015-05-28 10:55:28
阅读次数:
185
用./configure、make、make install安装完libev后,写一个简单程序server.c,编译,gcc server.c -o server lev。
产生如下错误:error while loading shared libraries: libev.so.4: cannot open shared object file: No such file or directo...
分类:
其他好文 时间:
2015-05-28 09:45:31
阅读次数:
306