上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 30 下一页
摘要: apt-get purge mysql-server │apt-get purge mysql-common │rm -rf /var/log/mysql │rm -rf /var/log/mysql.* │rm -rf /var/lib/mysql │rm -rf /etc/mysql │# an 阅读全文
posted @ 2016-08-05 15:53 lvmxh 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 自己写的, 方便调试。 $ cat pf-vf echo "physfn is $1"echo "pf info:"ls /sys/class/net/$1 -lecho "vf info:"eth_dev=`ls /sys/class/net/$1/device/virtfn* -l | cut 阅读全文
posted @ 2016-08-02 10:51 lvmxh 阅读(2115) 评论(0) 推荐(0) 编辑
摘要: 用到了慢慢总结。用到了随时更新。 其实可以看手册了。但是看了完了手册之后,还是记不住。 1. mysql select * from table where id in(1,2,3,3,4) 怎么能显示两次ID=3这一列? 1. mysql select * from table where id 阅读全文
posted @ 2016-08-02 10:40 lvmxh 阅读(650) 评论(0) 推荐(0) 编辑
摘要: http://unix.stackexchange.com/questions/136662/how-can-we-know-whos-at-the-other-end-of-a-pseudo-terminal-device stty -F /dev/pts/2 ls /proc/29864/fd/ 阅读全文
posted @ 2016-04-23 22:44 lvmxh 阅读(416) 评论(0) 推荐(0) 编辑
摘要: REF: http://los-vmm.sc.intel.com/wiki/How-to-setup-kvmgthttp://xenvgt.sh.intel.com/image/bdw-h/ Host display backgroud $ grep i915.enable_vgtbuffer=1 阅读全文
posted @ 2016-04-13 12:24 lvmxh 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: 介绍: 过去, Paxos一直是分布式协议的标准,但是Paxos难于理解,更难以实现,Google的分布式锁系统Chubby作为Paxos实现曾经遭遇到很多坑。 来自Stanford的新的分布式协议研究称为Raft,它是一个为真实世界应用建立的协议,主要注重协议的落地性和可理解性。 Raft协议基于 阅读全文
posted @ 2016-04-05 09:01 lvmxh 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 以获取PCI的信息为例。 基本代码: pci.py import base64 import guestfs from functools import partial import os import six import stat import subprocess import tempfil 阅读全文
posted @ 2016-03-24 16:46 lvmxh 阅读(591) 评论(0) 推荐(0) 编辑
摘要: 1. 重新安装 ubuntu-desktop不起作用。 Enter the following commands:- Ctrl+Alt+F1 login there by user name and password try sudo service lightdm restart If light 阅读全文
posted @ 2016-03-11 19:15 lvmxh 阅读(615) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/shaohef/p/5263846.html 阅读全文
posted @ 2016-03-10 22:44 lvmxh 阅读(24) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-03-10 22:42 lvmxh 阅读(4) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 30 下一页