前提条件:nginx支持ngx_http_slice_module模块 配置文件示例: #location 块的配置: location /asd/ { slice 512k; proxy_cache cache; proxy_cache_key $uri$is_args$args$slice_ra ...
分类:
其他好文 时间:
2020-07-19 00:50:36
阅读次数:
186
由于vue-cli4的index.html的title是在webpack中定义的,如下 <title><%= htmlWebpackPlugin.options.title %></title> 修改方法: 在vue.config.js中设置 module.exports = { //修改或新增ht ...
分类:
Web程序 时间:
2020-07-18 22:09:21
阅读次数:
263
目录 一、Nginx是什么 二、Nginx实现反向代理 2.1 正向代理和反向代理 2.2 nginx实现反向代理 2.2.1 proxy_pass配置 2.2.1.1ngx_http_rewrite_module模块 2.2.2 proxy_set_header配置 2.3 nginx实现负载均衡 ...
分类:
其他好文 时间:
2020-07-18 19:51:41
阅读次数:
73
实验环境:linux-3.4.2 busybox-1.20.0 问题描述: 学习驱动开发时,使用rmmod卸载已经安装成功的驱动模块时出现了rmmod: chdir(/lib/modules): No such file or directory错误提示 解决方法: 报错之后第一反应怀疑是不是驱动模 ...
分类:
其他好文 时间:
2020-07-18 11:29:57
阅读次数:
95
步骤一 webpack 配置中添加ProvidePlugin插件,congfig/webpack.config.js: module.exports = function (webpackEnv) { plugins: [ new webpack.ProvidePlugin({ $: 'jquery ...
分类:
Web程序 时间:
2020-07-18 00:58:22
阅读次数:
169
新建filter.wxs文件,文件内容如下 var format = function (text) { if (!text) { return } var reg = getRegExp('\\\\n', 'g') return text.replace(reg,'\n')} module.exp ...
分类:
微信 时间:
2020-07-17 19:33:34
阅读次数:
243
命名py脚本时,不要与python预留字,模块名等相同,即Python文件名不要使用Python系统库的名字,就是因为使用了Python系统库的名字,所以在编译的时候才会产生.pyc文件。正常的Python文件在编译运行的时候是不会产生.pyc文件的! 这类问题的解决方法则是:更改python脚本的 ...
分类:
其他好文 时间:
2020-07-17 19:27:07
阅读次数:
76
1、编译 ./configure --prefix=/usr/local/nginx-1.8\ --with-http_stub_status_module\ (统计数据查看) --with-pcre=/opt/install/nginx/pcre-8.44\ (正则) --with-http_su ...
分类:
Web程序 时间:
2020-07-17 19:22:38
阅读次数:
72
nginx 添加 --with-http_stub_status_module --with-http_ssl_module
分类:
Web程序 时间:
2020-07-17 16:29:55
阅读次数:
91
1、编译 ./configure --prefix=/usr/local/nginx-1.8\ --with-http_stub_status_module\ (统计数据查看) --with-pcre=/opt/install/nginx/pcre-8.44\ (正则) --with-http_su ...
分类:
Web程序 时间:
2020-07-17 16:16:30
阅读次数:
71