www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

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

03 2017 档案

摘要:git remote rm origin; 阅读全文
posted @ 2017-03-31 16:45 秦瑞It行程实录 阅读(190) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2017-03-31 16:40 秦瑞It行程实录 阅读(196) 评论(0) 推荐(0) 编辑

摘要:git init; git add codefile; git commit -m "commit description."; git log 查看版本提交历史; git reflog 查看历史命令 git reset --hard commit id版本回滚 (HEAD代表当前版本,HEAD^表 阅读全文
posted @ 2017-03-31 16:03 秦瑞It行程实录 阅读(132) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2017-03-31 10:39 秦瑞It行程实录 阅读(194) 评论(0) 推荐(0) 编辑

摘要:1,ifconfig 用户可以执行ifconfig命令,来检测和设置本机的网络接口。默认情况下执行该指令会显示第一块网卡,即eth0与本机回路(lo,local loopback)的配置信息。如果用户需要检测或设置本机的其他网络接口,只需要在该命令后注明网卡代号即可。 该命令也可以将指定的网卡开启或 阅读全文
posted @ 2017-03-30 17:36 秦瑞It行程实录 阅读(413) 评论(0) 推荐(0) 编辑

摘要:1.从svn获取项目 svn co URL --username XX --password XX; 2.添加code file svn add codeFile; svn ci -m "commit description..."; 3.在linux svn客户端更新codeFile svn mo 阅读全文
posted @ 2017-03-30 17:08 秦瑞It行程实录 阅读(224) 评论(0) 推荐(0) 编辑

摘要:deprecated conversion from string constant to ‘char*’ Linux 环境下当GCC版本比较高时,编译代码可能出现的问题 问题是这样产生的,先看这个函数原型: 1 void someFunc(char *someStr); 1 void someFu 阅读全文
posted @ 2017-03-29 09:29 秦瑞It行程实录 阅读(518) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2017-03-28 11:47 秦瑞It行程实录 阅读(202) 评论(0) 推荐(0) 编辑

摘要:bash支持一维数组(不支持多维数组),并且没有限定数组的大小。类似与C语言,数组元素的下标由0开始编号。获取数组中的元素要利用下标,下标可以是整数或算术表达式,其值应大于或等于0。 定义数组 在Shell中,用括号来表示数组,数组元素用“空格”符号分割开。定义数组的一般形式为: array_nam 阅读全文
posted @ 2017-03-28 09:51 秦瑞It行程实录 阅读(324) 评论(0) 推荐(0) 编辑

摘要:有了这么好的工具,我们还需要自己造轮子么? 两种情况,如果有复杂的监控需求,而且愿意花时间学习,我们可以使用nmon;但如果监控需求特殊比如说还要监控单个进程的情况,这时候就需要自己动手实现了。自己动手实现的好处就是灵活。。 性能监控包含哪些内容呢?对于服务器整体性能,应该涵盖整体的cpu、内存、磁 阅读全文
posted @ 2017-03-24 10:37 秦瑞It行程实录 阅读(176) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2017-03-24 10:35 秦瑞It行程实录 阅读(141) 评论(0) 推荐(0) 编辑

摘要:使用top工具查看到Suse Linux的内存占用率很大,可能97%以上,我知道这是Linux的内存使用机制,先将内存整个管理起来,需要的时候在分配给单个进程。但是如果我需要查看系统真实的内存占用率应该怎么做 如下显示free是显示的当前内存的使用,-m的意思是M字节来显示内容.我们来一起看看.$ 阅读全文
posted @ 2017-03-24 10:34 秦瑞It行程实录 阅读(275) 评论(0) 推荐(0) 编辑

摘要:http://gaoming.blog.51cto.com/822334/1176139 阅读全文
posted @ 2017-03-21 11:57 秦瑞It行程实录 阅读(189) 评论(0) 推荐(0) 编辑

该文被密码保护。
posted @ 2017-03-20 15:01 秦瑞It行程实录 阅读(0) 评论(0) 推荐(0) 编辑

摘要:libvirtError: 无效参数:could not find capabilities for domaintype=kvm 编辑/etc/nova/nova.conf 在[libvirt] 添加 virt_type=qemu 重启openstack-nova-compute b 阅读全文
posted @ 2017-03-16 13:09 秦瑞It行程实录 阅读(1066) 评论(0) 推荐(0) 编辑

摘要:No valid host was found. There are not enough hosts available 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128) 阅读全文
posted @ 2017-03-16 11:46 秦瑞It行程实录 阅读(775) 评论(0) 推荐(0) 编辑

摘要:2017-03-16 11:23:29.601 1238 ERROR nova.compute.manager [instance: 3f195047-250a-4eb5-8da0-63bea6e2672c] Traceback (most recent call last):2017-03-16 阅读全文
posted @ 2017-03-16 11:42 秦瑞It行程实录 阅读(737) 评论(0) 推荐(0) 编辑

摘要:ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)] 错误: 实例 "linux-core" 执行所请求操作失败,实例处于错误状态。: 请稍后再试 [错误: 'ascii' codec can't 阅读全文
posted @ 2017-03-16 10:46 秦瑞It行程实录 阅读(423) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2017-03-16 10:44 秦瑞It行程实录 阅读(193) 评论(0) 推荐(0) 编辑

摘要:错误: 实例 "ahwater-linux-core" 执行所请求操作失败,实例处于错误状态。: 请稍后再试 [错误: Exceeded maximum number of retries. Exceeded max scheduling attempts 3 for instance 7c1609 阅读全文
posted @ 2017-03-15 17:37 秦瑞It行程实录 阅读(1054) 评论(1) 推荐(0) 编辑

摘要:glance image-create --name "linux-core-mini-01" --file /cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --progress --visibili 阅读全文
posted @ 2017-03-15 17:11 秦瑞It行程实录 阅读(566) 评论(0) 推荐(0) 编辑

该文被密码保护。
posted @ 2017-03-15 12:44 秦瑞It行程实录 阅读(0) 评论(0) 推荐(0) 编辑

摘要:UnicodeEncodeError: 'ascii' codec can't encode character u'\u5929' in position 2: ordinal not in range(128) UnicodeEncodeError: 'latin-1' codec can't 阅读全文
posted @ 2017-03-10 16:44 秦瑞It行程实录 阅读(645) 评论(0) 推荐(0) 编辑

摘要:import os def get_nova_credentials_v2(): d = {} d['version'] = '2.0' d['username'] = os.environ['OS_USERNAME'] d['api_key'] = os.environ['OS_PASSWORD'] d['auth_url'] = os.environ[... 阅读全文
posted @ 2017-03-10 14:51 秦瑞It行程实录 阅读(134) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2017-03-09 16:02 秦瑞It行程实录 阅读(208) 评论(0) 推荐(0) 编辑

摘要:ERROR (UnicodeEncodeError): 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128 阅读全文
posted @ 2017-03-09 14:54 秦瑞It行程实录 阅读(270) 评论(0) 推荐(0) 编辑

摘要:UnicodeEncodeError: 'ascii' codec can't encode character u'\u65e0' in position 1: ordinal not in range(128) 上述问题解决办法 修改tool.py s = json.dumps(obj, sor 阅读全文
posted @ 2017-03-09 14:53 秦瑞It行程实录 阅读(562) 评论(0) 推荐(0) 编辑

摘要:现在以 json 为数据传输格式的 RESTful 接口非常流行。为调试这样的接口,一个常用的办法是使用 curl 命令: 对于返回的 json 字符串,一般在服务端不加处理的情况下,都是没有任何 '\t' 和 '\n' 的。为了方便查看,在 bash 上可以简单地对它进行格式化: 当然这要求机器上 阅读全文
posted @ 2017-03-09 14:40 秦瑞It行程实录 阅读(1951) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2017-03-08 14:30 秦瑞It行程实录 阅读(180) 评论(0) 推荐(0) 编辑

摘要:centos6.6搭建zookeeper-3.4.6完全分布式环境 转载 2015-06-28 22:14:17 标签:it centos6.6搭建zookeeper-3.4.6完全分布式环境 转载 2015-06-28 22:14:17 标签:it 为了搭建HBase完全分布式环境,前提就是搭建好 阅读全文
posted @ 2017-03-06 16:52 秦瑞It行程实录 阅读(419) 评论(0) 推荐(0) 编辑

摘要:libvirt 阅读全文
posted @ 2017-03-01 17:29 秦瑞It行程实录 阅读(249) 评论(0) 推荐(0) 编辑

www.cnblogs.com/ruiyqinrui