今天在测试同事在测试新机器ocr识别的时候提示上传图片失败,查看nginx日志发现报错如下:产生原因是因为客户端上传文件大小超过了nginx的限制(默认为1M)官方解释如下:http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_sizeSyntax:client_max_body_sizesize;Defau
分类:
Web程序 时间:
2018-06-28 13:52:36
阅读次数:
225
ngx_http_core模块提供的内置变量有很多,常见的有 $uri,用来获取当前请求的uri,不含请求参数。 $request_uri,用来获取请求最原始的uri,包含请求参数,且未解码。 $request,获取请求方法(GET或者POST)、$request_uri、HTTP协议版本。 $ar ...
分类:
其他好文 时间:
2018-06-28 01:01:19
阅读次数:
242
1、下载:http://core.dpdk.org/download/ 2、编译:http://core.dpdk.org/doc/quick-start/ Extract sources Enable pcap (libpcap headers are required). Build libra ...
分类:
其他好文 时间:
2018-06-25 21:50:29
阅读次数:
425
1. ngx_http_core_listen 2.1 ngx_parse_inet_url 3. ngx_http_add_listen 对ngx_http_conf_port_t的addrs动态数组的理解: 在nginx.conf配置文件中,对于同一个端口8000,我们可以同时监听127.0.0 ...
分类:
Web程序 时间:
2018-06-21 01:40:32
阅读次数:
335
https://www.jianshu.com/p/28912c2f31db https://www.jianshu.com/p/37af717761cc https://docs.realm.io/platform/ https://academy.realm.io/cn/posts/jp-sim ...
分类:
其他好文 时间:
2018-05-24 15:02:29
阅读次数:
114
原文:http://blog.51cto.com/arm2012/1977090 1. 性能相关配置 2. 时间驱动events相关的配置 3. http核心模块相关配置ngx_http_core_module 3.1web服务模板 3.2套接字相关配置 3.3 server_name 3.4 延迟 ...
分类:
其他好文 时间:
2018-05-01 20:38:56
阅读次数:
220
主题 本篇我将会介绍验证用户的机制当账户被创建的时候,同样 这个过程主要有IUserValidator这个接口来实现的,和密码验证一样Identity同样也内置已经实现好的账户验证。账户验证的比较简单,我会先介绍内置的IUserValidator的使用,然后会简单介绍一些源代码,最后会演示怎实现一个 ...
分类:
Web程序 时间:
2018-04-22 21:57:05
阅读次数:
236
一、与套接字相关的配置:1、server{...}配置一个虚拟主机server{listenaddress[:PORT]|PORT;server_nameSERVER_NAME;root/PATH/TO/DOCUMENT_ROOT}2、listenPORT|address[:PORT]|unix:/PATH/TO/SOCKET_FILElistenaddress[:PORT][default_se
分类:
Web程序 时间:
2018-03-29 16:42:52
阅读次数:
192
先看官方文档http://nginx.org/en/docs/http/ngx_http_core_module.html#alias
http://nginx.org/en/docs/http/ngx_http_core_module.html#root先看toot的用法location?/request_path/image/?{
???&nb
分类:
其他好文 时间:
2018-03-27 12:25:56
阅读次数:
136