04 2018 档案
redis中关闭rdb跟aof
摘要:https://zm10.sm-tc.cn/?src=l4uLj8XQ0IiIiNGdip2KlJDRnJCS0JaRmZCbmouelpPSzc%2FJz8vJxtGXi5KT&uid=49e602338a34805a7ae79ef794a4d58f&hid=7c78a206af2e1fc16f5 阅读全文
posted @ 2018-04-24 19:55 寒星12345678999 阅读(3897) 评论(2) 推荐(0)
threading 多线程
摘要:# coding:utf-8 import time from threading import Thread def foo(x):#这里可以带参数def foo(x) print "foo start 启动耗时".decode('utf-8'), time.ctime() time.sleep(x) print "foo start 运行结束:".decode(... 阅读全文
posted @ 2018-04-23 20:38 寒星12345678999 阅读(170) 评论(0) 推荐(0)
我的第一个爬虫【python selenium】
摘要:去年写的一个小功能,一年过得好快,好快! 目的:爬取京东商品详情页面的内容(商品名称、价格、评价数量)后存储到xls文档中,方便商家分析自己商品的动态。 软件:chrome(windows)、chromedriver.exe、phantomjs.exe 、anaconda、pycharm 实现:用s 阅读全文
posted @ 2018-04-23 16:48 寒星12345678999 阅读(511) 评论(1) 推荐(0)
【爬虫】京东商品连接
摘要:# -*- coding: utf-8 -*- from __future__ import division from selenium import webdriver import time from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait ... 阅读全文
posted @ 2018-04-23 16:35 寒星12345678999 阅读(988) 评论(0) 推荐(0)
chromedriver版本问题
摘要:最新的chromedriver 66.0.3359.117 的对应chromedriver版本为 2.38 http://npm.taobao.org/mirrors/chromedriver/ WebDriverException: Message: unknown error: call fun 阅读全文
posted @ 2018-04-23 16:34 寒星12345678999 阅读(2033) 评论(0) 推荐(0)
supervisord
摘要:https://blog.csdn.net/xyang81/article/details/51555473 https://blog.csdn.net/fenglailea/article/details/77146248 https://blog.csdn.net/weixin_41004350 阅读全文
posted @ 2018-04-20 08:32 寒星12345678999 阅读(204) 评论(1) 推荐(0)
python 连接 mysql
摘要:参考 https://blog.csdn.net/piglite/article/details/78474335 yum install -y MySQL-python #打开数据库连接 conn=MySQLdb.connect(host="localhost",user="root",passw 阅读全文
posted @ 2018-04-04 00:11 寒星12345678999 阅读(190) 评论(0) 推荐(0)
grep -o -E
摘要:sed 命令可以很好的进行行匹配,但从某一行中精确匹配某些内容,则使用 grep 命令并辅以 -o 和 -E 选项可达到此目的。其中 -o 表示“only-matching”,即“仅匹配”之意。光用它不够,配合 -E 选项使用扩展正则表达式则威力巨大。 比如下面有一条文本 tmp.txt ,其中内容 阅读全文
posted @ 2018-04-03 22:58 寒星12345678999 阅读(4068) 评论(0) 推荐(0)
Minikube安装
摘要:参考 https://blog.csdn.net/liumiaocn/article/details/52041726?locationNum=4&fps=1 中文社区API http://docs.kubernetes.org.cn/638.html Package kernel-headers- 阅读全文
posted @ 2018-04-03 09:59 寒星12345678999 阅读(458) 评论(1) 推荐(0)
Centos7关闭防火墙 设置开机启动
摘要:[root@nmserver-7 ~]# systemctl stop firewalld.service [root@nmserver-7 ~]# systemctl status firewalld.service [root@nmserver-7 ~]# sestatus SELinux st 阅读全文
posted @ 2018-04-01 14:50 寒星12345678999 阅读(11965) 评论(0) 推荐(0)