上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 40 下一页
摘要: 1. vim-go https://github.com/fatih/vim-go-tutorial curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plu 阅读全文
posted @ 2017-02-13 18:08 lvmxh 阅读(428) 评论(0) 推荐(0)
摘要: 最近在使用devstack 安装openstack nimble项目。 nimble项目是一个专业的baremetal管理项目。 安装过程中,遇到这个问题。 /opt/stack/swift/bin/swift-object-server /etc/swift/object-server/1.con 阅读全文
posted @ 2016-10-19 19:59 lvmxh 阅读(927) 评论(0) 推荐(0)
摘要: 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 阅读(158) 评论(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 阅读(2226) 评论(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 阅读(661) 评论(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 阅读(441) 评论(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 阅读(1166) 评论(0) 推荐(0)
摘要: 介绍: 过去, Paxos一直是分布式协议的标准,但是Paxos难于理解,更难以实现,Google的分布式锁系统Chubby作为Paxos实现曾经遭遇到很多坑。 来自Stanford的新的分布式协议研究称为Raft,它是一个为真实世界应用建立的协议,主要注重协议的落地性和可理解性。 Raft协议基于 阅读全文
posted @ 2016-04-05 09:01 lvmxh 阅读(266) 评论(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 阅读(607) 评论(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 阅读(653) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 40 下一页