导论 WSGI是Web服务器网关接口。它是一个规范,描述了Web服务器如何与Web应用程序通信,以及Web应用程序如何链接在一起以处理一个请求,(接收请求,处理请求,响应请求) 基于wsgi运行的框架有bottle,DJango,Flask,用于解析动态HTTP请求 支持WSGI的服务器 wsgir ...
分类:
Web程序 时间:
2019-05-18 18:43:59
阅读次数:
185
let命令取代并扩展了expr命令的整数算数符号。 let除了支持5中基础的运算符。 还支持+=,-=,*=,、-,%= 自变运算符。 以及**幂次运算符。 在变量计算中不需要加上$来表示变量。 对空格比较严格 ...
分类:
其他好文 时间:
2019-05-18 15:55:38
阅读次数:
116
mac 安装brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" mac安装expect(需要先安装brew,没有安装的话看上边) brew in ...
分类:
系统相关 时间:
2019-05-16 15:16:04
阅读次数:
2635
-hosts:group#需要更改密码的组remote_user:user1#ssh登录的普通用户become:yesbecome_method:subecome_user:root#需要提前在/etc/ansible/hosts定义ansible_su_passvars:-passwd:password#新密码User:user2#需要更改密码的用户tasks:-name:changepassw
分类:
其他好文 时间:
2019-05-14 17:38:34
阅读次数:
124
7.8 chpasswd:批量更新用户密码 chpasswd命令用于从标准输入中读取一定格式的用户名、密码来批量更新用户的密码,其格式为“用户名:密码”。 -e 默认格式是明文密码,使用e参数则需要加密的密码 命令行批量修改密码 [root@cs6 ~]# chpasswd root:123456 ...
分类:
其他好文 时间:
2019-05-13 20:17:04
阅读次数:
140
我用vue开发的一个小项目,项目开发出雏形,想打包一下放测试,但是我想放测试前自己检查一下经过npm run build打包生成的项目,在本地服务器能不能正常跑,于是,经过网上大哥的帮忙,写了个简易的koa服务器,将打包好的dist文件,放到了服务器上。 说一下我的dist文件的结构,dist/in ...
分类:
其他好文 时间:
2019-05-11 23:09:13
阅读次数:
284
1. 修改 xadmin 源代码1.在Python终端输入命令help(‘xadmin’) 查看xadmin安装位置 得到如下输出 FILE /root/anaconda3/envs/learndjango/lib/python3.5/site-packages/xadmin/__init__.py ...
分类:
其他好文 时间:
2019-05-10 14:39:22
阅读次数:
144
Beware! Async modes will not speed up your app, they are aimed at improving concurrency. Do not expect that enabling some of the modes will work flawl ...
分类:
Web程序 时间:
2019-05-09 10:42:17
阅读次数:
148