uwsgi 常用参数 项目目录 chdir=/var/www/orange_web/ 指定项目application module=orange_web.wsgi:application 指定sock的文件路径(nginx使用) socket=/var/www/script/uwsgi.sock 进 ...
分类:
其他好文 时间:
2021-04-21 12:41:29
阅读次数:
0
在/root/init.rc中添加下面内容, 开机就会执行/system/bin/boot-complete-script.sh脚本 service boot_complete_script /system/bin/boot-complete-script.sh class main oneshot ...
分类:
移动开发 时间:
2021-04-21 12:38:11
阅读次数:
0
前言 📝 👉 unstated-next 基于 React 心智模型(hook+context)而设计的状态管理。 👈 在 react hook 出现之前,有基于单一数据源,使用纯函数修改状态的 redux & react-redux 也有基于 Object.defineProperty 和 ...
分类:
其他好文 时间:
2021-04-21 12:37:21
阅读次数:
0
####rewrite语法 | Syntax: | rewrite regex replacement [flag]; | | | | | Default: | — | | Context: | server, location, if | //所有请求转发到/pages/maintain.html ...
分类:
其他好文 时间:
2021-04-21 12:32:16
阅读次数:
0
8.处理 Promise 抛出的异常 <script src="./Promise.js"></script> <script type="text/javascript"> let p = new Promise((resolve, reject) => { throw 'error'; }) p ...
分类:
其他好文 时间:
2021-04-21 12:20:24
阅读次数:
0
之前用select2初始化默认值使用了select2('val','1'),这样做没问题,但只能用在单选上,多选的话,即使将val后面的值改成数组['0', '2']这种形式也没用。 <script type="text/javascript"> $(document).ready(function ...
分类:
其他好文 时间:
2021-04-21 12:17:22
阅读次数:
0
我们想要开发板上面烧写 busybox 文件系统,我们首先将 busybox 镜像拷贝到 dhcp 目录下,busybox镜像在终结者 ULL 光盘资料\i.MX6ULL 终结者光盘资料\08_开发板系统镜像\03_文件系统镜像\01_Busybox文件系统可以找到,如图 89.4.1 所示:然后执 ...
分类:
其他好文 时间:
2021-04-21 11:52:17
阅读次数:
0
npm ERR! missing script dev问题 在当前项目中无法找到package.json文件中的配置 将cmd命令界面切到package.json文件目录 输入: cnpm run serve #版本不同serve命令不同可查看package.json文件配置 ...
分类:
其他好文 时间:
2021-04-20 15:28:14
阅读次数:
0
下午闲着无聊 用python写了个字典转MD5字典的脚本 import requestsimport hashlibdef baopo(script): print(u" 转化开始:") str=open(script).read() str_list=str.split('\n') print(s ...
分类:
编程语言 时间:
2021-04-20 15:25:35
阅读次数:
0
需求:点击按钮,显示文本和隐藏文本 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery 入门</title> <script src="/static/jQuery-1.11/jquery-1.11 ...
分类:
Web程序 时间:
2021-04-20 14:39:19
阅读次数:
0