user root; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { #use epoll; worker_connections 65535; } http ...
分类:
系统相关 时间:
2021-01-13 10:45:25
阅读次数:
0
在与同行交流过程中,发现很多同行对 WebRTC 改动太多,导致无法升级 WebRTC 版本。而 WebRTC 开源社区的快速迭代,让他们感到欣喜又焦虑:开源社区的迭代效果,是不是超过了他们对 WebRTC 的优化效果?我们针对特定场景优化 WebRTC 时,怎么紧跟 WebRTC 开源社区通用的优 ...
分类:
其他好文 时间:
2021-01-08 11:40:11
阅读次数:
0
获取程序地址或路径 Web地址: JS: var baseUrl = window.location.host;//不带http:// 结果为: localhost:8033 asp.net: string host = HttpContext.Current.Request.Url.Host; s ...
分类:
其他好文 时间:
2021-01-07 12:20:42
阅读次数:
0
vim mongodb.yaml apiVersion: apps/v1 kind: Deployment metadata: name: mongodb labels: app: mongodb spec: replicas: 1 selector: matchLabels: app: mongo ...
分类:
数据库 时间:
2021-01-07 11:58:16
阅读次数:
0
工作流程 Django 自带的开发服务器性能太差,用到线上环境不合适。所以线上部署时,我们还要安装 Nginx 和 Gunicorn,工作流程如下: 客户端发来 http 请求,Nginx 作为直接对外的服务器接口,对 http 请求进行分析 如果是静态资源请求,则由Nginx自己处理(效率极高) ...
分类:
其他好文 时间:
2021-01-06 12:01:33
阅读次数:
0
在nginx配置中添加 location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; } ...
分类:
其他好文 时间:
2021-01-04 11:32:56
阅读次数:
0
两个页面之间的跳转如果需要传参(例如需要传递当前的id),js里写 window.location.href="xxxxx?id=xx 就可以了;但是vue不一样 需要操作的是路由,需要用到 VueRouter使用之前首先要了解 $router和$route $router是一个VueRouter的 ...
分类:
其他好文 时间:
2021-01-04 10:33:13
阅读次数:
0
clientset := K8sClient() var ( err error data []byte deployment =&v1.Deployment{} ) if data, err = ioutil.ReadFile("C:/Users/72088854/go/src/config"); ...
分类:
其他好文 时间:
2021-01-02 11:33:55
阅读次数:
0
打开pycharm,点击File--New Project,项目名称location随意取比如就叫untitled吧,以后我们会逐步完善,Interpreter就是python解释器,选择你安装的python路径。 在新的工程的untitled目录上右键新建python file,名字就叫test0 ...
分类:
编程语言 时间:
2021-01-02 10:40:07
阅读次数:
0
IDEA2020FILE->NewprojectSettings->SettingsfornewProjectsBulid,Execution,Deployment->BuildTools->mavne里面配置默认maven配置IDEA2019FILE-->otherSetting
分类:
其他好文 时间:
2021-01-02 10:30:50
阅读次数:
0