原创 centos 安裝VNCSERVER

服務器安裝圖形化桌面: yum groupinstall "GNOME Desktop" "Graphical Administration Tools"ln -sf /lib/systemd/system/runlevel5.tar

原创 wsgi-02

Remember, in Part 1 I asked you a question: “How do you run a Django application, Flask application, and Pyramid appli

原创 iptables 地址、端口轉發

一、iptables知識介紹: iptables防火牆可以用於創建過濾(filter)與NAT規則。所有Linux發行版都能使用iptables,因此理解如何配置iptables將會幫助你更有效地管理Linux防火牆。如果你是第一次接觸i

原创 Centos7 bridge bond 配置

https://www.cnblogs.com/g2thend/p/11033024.html 一,KVM基礎 kvm是一種技術,雲計算是一種模式,虛擬化是利用相應的技術方法在一臺物理機器上將其按照不同的需求劃分成多個相同或者不同的虛擬操

原创 kvm創建虛擬網橋

1.創建xml文件 [root@kolla tools]# cat new-net.xml  <network>   <name>virbr1</name>                #vbr爲虛擬網絡的名字   <bridge na

原创 Suse常用命令

1. 檢查 SuSE防火牆是否設置爲啓動 chkconfig --list | grep firewall2. 關閉防火牆服務(按照順序執行) chkconfig SuSEfirewall2_setup offchkconfig S

原创 三分鐘搞定 git 使用

1、git安裝 yum install git 2、git 配置 git config --global user.email "[email protected]" git config --global user.name "Your N

原创 wsgi-01

Out for a walk one day, a woman came across a construction site and saw three men working. She asked the first man, “W

原创 CDH安裝以及開啓kerberos

        首先感謝前任總結的一些經驗,尤其是開啓kerberos方面,看了好幾篇文章才最終搞定,當然還有好基友同事的一起幫忙,首先說一下按照CDH官方網站上提供的文檔,我沒有搞定,可能是英文水平太差的原因。 一、主機修改篇 1、下載

原创 多線程樣例

#!/bin/env python import threading from time import sleep,ctime loops = [4,2] def loop(nloop,nsec): print '

原创 ansible delete the “u” from the list output

https://stackoverflow.com/questions/21413613/convert-ansible-variable-from-unicode-to-ascii if you really do have an ar

原创 python 學習地址收藏

1、張大神推薦: 這個據說是最經典的教程:http://python3-cookbook.readthedocs.io/zh_CN/latest/ http://book.pythontips.com/en/latest/index.ht

原创 Centos7 install KVM

Install KVM Hypervisor on CentOS 7.x and RHEL 7.x By Pradeep Kumar | June 23, 2016 KVM is an open source hardw

原创 Centos7 創建虛擬網卡(tun/tap)

創建網卡、創建網橋並建立橋接 [root@kolla ~]# cat create.sh create_br(){     tunctl -t storage -u root     brctl addbr virbr2     brct

原创 Centos7部署etcd flannel

1、etcd 配置以及常用命令 yum install etcd [root@localhost ~]# cat /etc/etcd/etcd.conf | grep -v "#" ETCD_DATA_DIR="/var/lib/etc