01 2019 档案

nginx, flask, wsgi
摘要:原来自己还没搞懂这些。 首先post一个观点: nginx应该是没解析任何东西,就判断是不是http请求,然后转发?或者判断是不是tcp请求,然后转发。 所以给了python后台就可以用wsgi解包。 浏览器发送一个HTTP请求; 服务器收到请求,生成一个HTML文档; 服务器把HTML文档作为HT 阅读全文

posted @ 2019-01-29 17:41 stupid_one 阅读(262) 评论(0) 推荐(0) 编辑

word-wrap:表示是否允许流浪器断句,word-break:表示怎样断句
摘要:word-wrap: break-word的话,流浪器可以断句,但是是按单词形式断句。 而加上 word-break: break-all的话,单词内部也断句。 "whiteSpace": "pre",这个表示是否允许换行,这个只会单行走到底,遇到换行才换行,所以使用 pre-line,这个又会合并 阅读全文

posted @ 2019-01-29 10:53 stupid_one 阅读(262) 评论(0) 推荐(0) 编辑

mysql
摘要:1、mysql更改原来table的一列的默认值:(原来的数据不会改变) alter table user alter column avatar set default 'http://119.23.231.141/mongo_img/cat.jpg' 2、mysql增加一列 alter table 阅读全文

posted @ 2019-01-14 13:47 stupid_one 阅读(113) 评论(0) 推荐(0) 编辑

es6 vs commonjs
摘要:'use strict' function showMeC() { alert("commonjs"); } module.exports = { showMeC: showMeC, }; # ...... const { showMeC } = require('./commonjs.js'); 阅读全文

posted @ 2019-01-08 11:44 stupid_one 阅读(211) 评论(0) 推荐(0) 编辑

踩坑记
摘要:2022-07-06 17:07:42 gdb python install mysqldb for python 1、sudo apt-get install libmysqlclient-dev 2、pip install --no-cache mysqlclient install lxml 阅读全文

posted @ 2019-01-05 18:09 stupid_one 阅读(1045) 评论(4) 推荐(0) 编辑

crontab -e
摘要:crontab -e可以配置定时任务 0 */3 * * * cd /root/find && nohup qbittorrent-nox --webui-port=7070 & 上面那个命令是:每三小时执行一次。 第1列分钟0~59 第2列小时0~23(0表示子夜) 第3列日1~31 第4列月1~ 阅读全文

posted @ 2019-01-05 00:30 stupid_one 阅读(790) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示