07 2017 档案

摘要:1、参考网页 http://www.jianshu.com/p/8558befb16c1 修改点:1 需要修改用户名,密码;2 执行命令为 kk=AnsibleTask("181.30.136.202")kk.ansiblePlay() 还需要删除action参数 阅读全文
posted @ 2017-07-29 17:20 haha1680737 阅读(117) 评论(0) 推荐(0)
摘要:1、zabbix安装文档 http://blog.csdn.net/yannanxiu/article/details/54924198 2、数据库命令执行有问题,需要使用 3、必须注意agent的hostname。 4、配置网络流量监测 创建item,key是可以修改为网口名称的。 画图 在con 阅读全文
posted @ 2017-07-29 10:25 haha1680737 阅读(105) 评论(0) 推荐(0)
摘要:1、必须是用sudo启动服务,不然报接入拒绝。 2、docker使用proxy pull First, create a systemd drop-in directory for the docker service: Now create a file called /etc/systemd/s 阅读全文
posted @ 2017-07-22 11:48 haha1680737 阅读(144) 评论(0) 推荐(0)
摘要:1、neutron port-list | grep -E -B 5 "29\.2\.9\.2" 搜寻 29.2.9.2 阅读全文
posted @ 2017-07-20 18:40 haha1680737 阅读(113) 评论(0) 推荐(0)
摘要:1、 find ./ -name "*streaming*" 查找文件 2、 grep -r KUBE_LOGTOSTDERR /etc/kubernetes/* 查找内容 阅读全文
posted @ 2017-07-19 20:31 haha1680737 阅读(157) 评论(0) 推荐(0)
摘要:1、安装java sudo apt-get install default-jre sudo apt-get install default-jdk 2、添加环境变量 export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386 3、运行hadoop ./bin 阅读全文
posted @ 2017-07-18 21:19 haha1680737 阅读(128) 评论(0) 推荐(0)
摘要:1、复制当前的2行: 2yy 然后 p https://www.shiyanlou.com/courses/803 2、撤销 u 阅读全文
posted @ 2017-07-16 22:11 haha1680737 阅读(106) 评论(0) 推荐(0)
摘要:1、lsof -i:8081 查到pid号 2、sudo kill -9 pid号 阅读全文
posted @ 2017-07-15 20:33 haha1680737 阅读(144) 评论(0) 推荐(0)
摘要:在线安装 $sudo apt-get install nginx Nginx的版本是1.2.1 ubuntu安装Nginx之后的文件结构大致为: 所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下 启动程序文件在/usr/sb 阅读全文
posted @ 2017-07-15 20:22 haha1680737 阅读(160) 评论(0) 推荐(1)
摘要:import pymysql conn = pymysql.connect(host='192.168.1.210', port=3306, user='root', passwd='ubuntu', db='mysql') cur = conn.cursor() cur.execute("show full columns from trade") row_1 = cur.fetchone()... 阅读全文
posted @ 2017-07-15 13:39 haha1680737 阅读(125) 评论(0) 推荐(0)
摘要:服务器端: 客户端: 阅读全文
posted @ 2017-07-15 13:39 haha1680737 阅读(179) 评论(0) 推荐(0)
摘要:import pymysql import requests from bs4 import BeautifulSoup baseUrl = "https://movie.douban.com/top250?start=%d&filter=" def get_movies(start): url = baseUrl % start lists = [] html = re... 阅读全文
posted @ 2017-07-15 13:38 haha1680737 阅读(435) 评论(0) 推荐(0)
摘要:这里说下Windows下的修改方法,看了网上很多的教程发现都不行,尝试了好久终于发现了可行的方法。 找到python安装目录下的:\Lib\site-packages\pip\models\index.py文件,将PYPI的值改为你所需要的源即可,例如改为豆瓣的源。 [python] view pl 阅读全文
posted @ 2017-07-15 13:37 haha1680737 阅读(97) 评论(0) 推荐(0)
摘要:1、必须使能安全策略的http和https服务 2、生成ssl的密码时,cert和keyfile需要使用一个文件名 openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem 3、ubu 阅读全文
posted @ 2017-07-15 13:36 haha1680737 阅读(149) 评论(0) 推荐(0)