原创 修改kvm虛擬機鏡像文件大小

1、查看kvm鏡像的格式信息[root@base-12-199 bakup]# qemu-img info 10.1.12.201_base-12-201 image: 10.1.12.201_base-12-201 file format

原创 nginx通過雲負載均衡後作反向代理並限制制定ip訪問

有個需求,需要特定的2個ip才能訪問指定域名,但是使用私有云的slb負載後透過的ip,指向nginx反向代理後,使用nginx的ip限制無法控制ip訪問。試了很多辦法但是沒有效果,後來嘗試了以下方式,發現可以了。 server {

原创 完整版的OpenLDAP搭建全過程

http://www.cnblogs.com/lemon-le/p/6266921.html 完整版的OpenLDAP搭建全過程 總結:         先寫總結,再寫正文,嘿嘿嘿。這還是第一次認真的寫個文檔,寫個總結,哈哈。大概在一

原创 python中字典按鍵或鍵值排序

出自:快樂的雨點的博客http://blog.csdn.net/xsj_blog/article/details/51847831字典排序在程序中使用字典進行數據信息統計時,由於字典是無序的所以打印字典時內容也是無序的。因此,爲了使統計得到

原创 error: command 'gcc' failed with exit status 1

   pip install  pycrypto報錯src/MD2.c:31:20: error: Python.h: No such file or directory     src/MD2.c:120: error: expected

原创 完整版的OpenLDAP搭建全過程

http://www.cnblogs.com/lemon-le/p/6266921.html 完整版的OpenLDAP搭建全過程 總結:         先寫總結,再寫正文,嘿嘿嘿。這還是第一次認真的寫個文檔,寫個總結,哈哈。大概在一

原创 rke安裝環境準備

Operating System Requirements RKE runs on almost any Linux OS with Docker installed. Most of the development and testi

原创 python導入自定義模塊

>>> import sys >>> print sys.path ['', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-lin

原创 rke備份和恢復

Backups and Disaster Recovery As of v0.1.7, you can configure a RKE cluster to automatically take snapshots of etcd. I

原创 我的友情鏈接

51CTO博客開發王春海的博客Linux運維-小墨一壺濁酒馬哥Linux培訓老男孩linux培訓滴水穿石孫杰koumm的linux技術博客CloudMan

原创 ubuntu14.04/16.04安裝docker-ce-17.03.1

sudo apt-get updatesudo apt-get -y install apt-transport-https ca-certificates curl software-properties-commoncurl -fsSL

原创 離線安裝minikube—1.10.1

基礎環境: Virtual box OS: Ubuntu:16.04 enp0s3:(Hostonly)192.168.56.102(提供pc端訪問服務器-hostonly) enp0s8:(NAT)10.0.3.15(訪問外網,因爲nat

原创 ubuntu16.04安裝vncserver

root@ubuntu:~# apt-get update root@ubuntu:~# apt-get install ubuntu-desktoproot@ubuntu:~# apt-get install vnc4server roo

原创 ubuntu16.04搭建docker_1.13.1私有倉庫

1、配置docker的國內加速器docker版本爲1.13.1需要配置一下daemon.json配置阿里雲的docker加速器:wangpeng@ubuntu:~$ sudo vim /etc/docker/daemon.json  {  

原创 Linux命令行大小寫轉換

一、Python 字符串大小寫轉換1、字符串大小寫轉換In [1]: string = 'www.test.com' In [2]: print('lower --> upper: %s' % string.upper()) lower -