.Tang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

04 2018 档案

摘要:Nginx(单进程): 反向代理, 负载均衡。图解 将配置文件 nginx.conf 的 user xx 配置好 xx用户 更多详细nginx,supervisor,celery资料:https://www.cnblogs.com/tangpg/p/8962773.html Supervisor: 阅读全文
posted @ 2018-04-27 13:34 .Tang 阅读(193) 评论(0) 推荐(0) 编辑

摘要:-- 本地库连接远程库 提交到远程仓库 git分布式版本库 git push -u origin master报错 是因为 版本内容不同步 解决方法: git pull --rebase origin master 同步远程文件 或者: git pull origin master --allow- 阅读全文
posted @ 2018-04-25 13:47 .Tang 阅读(190) 评论(0) 推荐(0) 编辑

摘要:mysql调优 一:避免全表扫描 在 where order by涉及字段设置索引 1.where 条件中避免使用 != > < ,否则将引擎放弃使用索引而进行全表扫描。 2.避免where条件对null判断 ,否则将引擎放弃使用索引而进行全表扫描。 可以将null设置成 0 表示 3.where 条件避免or 来判断 ,否则将引擎放弃使用索引而进行全表... 阅读全文
posted @ 2018-04-22 15:08 .Tang 阅读(134) 评论(0) 推荐(0) 编辑

摘要:获取前端上传文件 取出来的格式 for 遍历 在通过字典取值 阅读全文
posted @ 2018-04-14 18:19 .Tang 阅读(361) 评论(0) 推荐(0) 编辑

摘要:创建test表 create table test( id int, name varchar(10) not null, age int default 18, passwd varchar(12), article text ); 主键索引 alter table test add primar 阅读全文
posted @ 2018-04-05 19:42 .Tang 阅读(101) 评论(0) 推荐(0) 编辑

摘要:JSON是一种轻量级数据交换格式 string字符串 var json1='{"a":"1","b":"2"}' -- json对象 键值都为双引号 var js1={a:1,b:2} --js对象 是js独有的 不能传递交互数据 通过json实现 var json2=JSON.stringify( 阅读全文
posted @ 2018-04-03 19:45 .Tang 阅读(108) 评论(0) 推荐(0) 编辑

摘要:一:开放端口 修改端口为 0.0.0.0 vim /etc/mysql/mysql.conf.d/mysqld.cnf netstat -ntl #查看端口 二:改好编码 `mysql`的数据库编码是`latin1` 在数据库里面 可以通过 `show variables like '%char%' 阅读全文
posted @ 2018-04-02 10:53 .Tang 阅读(107) 评论(0) 推荐(0) 编辑