摘要: 镜像获取 docker pull: docker pull ubuntu:14.04,如果不写tag(14.04),默认是latest 这个命令等同于docker pull regsiter.hub.docker.com/ubuntu:14.04,默认从Docker Hub Regsiter获取镜像 阅读全文
posted @ 2018-10-09 20:30 screte 阅读(182) 评论(0) 推荐(0)
摘要: 首先看了一遍官方的小例子,发现是标准的mvc结构,不懂mvc结构的自行了解如何创建项目文档里有,包括一些数据库迁移等,由于我用的是django2.1最新版,python用3.6,只是走一下最简单的增删改差首先安装django:pip install django创建项目:django-admin s 阅读全文
posted @ 2018-09-11 20:40 screte 阅读(143) 评论(0) 推荐(0)
摘要: 由于我的开发环境是win10,所以果断将mysql服务跑在虚拟机上,安装成功后,发现虚拟机上可以登录,但是win上无法登录 1.ping了服务器,可以ping通, 发现服务器防火墙也是关闭状态,排除 2.猜测是mysql配置问题,找到了/etc/mysql/my.conf 发现只有这两行代码,发现也 阅读全文
posted @ 2018-08-30 20:02 screte 阅读(128) 评论(0) 推荐(0)
摘要: 环境:python3.6 json文件: py文件: 执行:json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)文件中的\\无法decode,思路先转成其他的字符,decode之后再转回来 数据结果: 问题解决 阅读全文
posted @ 2018-06-13 18:24 screte 阅读(11076) 评论(0) 推荐(0)
摘要: function getContentLength($strURL){ $resURL = curl_init(); curl_setopt($resURL, CURLOPT_URL, $strURL); curl_setopt($resURL, CURLOPT_PROGRESSFUNCTION, 阅读全文
posted @ 2018-04-10 13:44 screte 阅读(391) 评论(0) 推荐(0)
摘要: 第一步: sudo apt-get install apt-transport-https ca-certificates 第二步:添加GPG key sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-k 阅读全文
posted @ 2018-03-07 20:16 screte 阅读(130) 评论(0) 推荐(0)
摘要: /** * 发送post请求 * @param string $url 请求地址 * @param array $xmldata post数据 * @return string */function send_post($xmldata,$url) {//初始一个curl会话 $curl = cur 阅读全文
posted @ 2018-03-05 16:27 screte 阅读(155) 评论(0) 推荐(0)
摘要: 1 import threading 2 from time import ctime,sleep 3 loops = [4,2] 4 def loop(nloop,nsec): 5 print('start loop',nloop,'at:',ctime()) 6 sleep(nsec) 7 print('loop',nloop,'end at:',cti... 阅读全文
posted @ 2017-12-20 22:59 screte 阅读(248) 评论(0) 推荐(0)
摘要: 接收: 阅读全文
posted @ 2017-12-08 10:24 screte 阅读(287) 评论(0) 推荐(0)
摘要: server { listen 80; server_name mgr.wchatool.com; index index.html index.php; root /alidata/www/webmanage/zmht; autoindex off; fastcgi_connect_timeout ... 阅读全文
posted @ 2017-12-08 10:11 screte 阅读(198) 评论(0) 推荐(0)