原创 jenkins+kubernets

JENKSIN+KUBERNETES 持續集成編寫目的:詳細記錄jenkins和kubernetes 結合使用流程使用工具:Tool nameversiondateansible2.8.0 Jenkins2.712 kubernetes1.

原创 kubernetes安裝

文檔說明 編寫目的 K8s安裝 和k8s web監控 適用範圍 本文檔完成爲這次調整具體的調整步驟和後期使用規範。 配置準備 系統centos 7軟件k8s 1.5.2https://dl.k8s.io/v1

原创 openstack centos6.8安裝

網上搜了一堆資料,搞出來的大家分享下Openstack 安裝一.主機分配:  主機名             hostnameIpsystemOpenstack192.168.1.220Centos6.8 x64node192.168.1.

原创 單獨記錄展示和歷史單獨記錄展示

Python代碼def huixian(request, id):     if request.method == 'GET':         id1 = id         all_server = NginxET.objects.

原创 openstack 報錯處理

自己搗鼓openstack遇到的報錯openstack1,建立rdo-release.repovim /etc/yum.repos.d/rdo-release.repo[openstack-icehouse]name=OpenStack I

原创 使用django 做nginx配置文件管理

一,目的。1)nginx配置文件統一入庫。2)操作記錄。3)推送配置文件。4)搜索。5)回滾。6)nginx生效。7)相近兩次對比。二, 使用工具django1.8.0 ansible python2.7三,實現完成的網頁圖片總覽搜索推送下

原创 配置文件歷史記錄

python文件csrf_exempt def nginxhistory(request):     if request.method == "POST":        ret = request.POST.get('code')   

原创 mongo 副本集+密碼認證

Jdk8部署文檔說明編寫目的本文檔編寫目的是爲了安裝mongo和Mongodb用戶認證適用範圍本文檔完成後 適用Mongodb3.0以上版本適用配置準備Mongodb 3.4服務器準備本文檔中操作是對內網1臺服務器部署,操作系統使用的是Ce

原创 cacti排錯

今天打開公司的監控系統怎麼都訪問不了,登陸系統tail -Fn /usr/loacl/apache/logs/error.log發現大量的[notice] child pid 8759 exit signal Segmentation fa

原创 django部分代碼

ngingx配置文件更新代碼,和展示Python代碼# -*- coding: utf-8 -*- from django.shortcuts import render from django.http import HttpRespon

原创 MySQLJk

#!/bin/shthrps () {thr=`ps aux|grep mysql|wc -l`if [ $thr -ge "3" ]then echo 1else echo 0fi}mysqljs () {mysql -uroot -p1

原创 ldap+samba

Ldap+smbLdap安裝就不說了,安裝smbYum install samba* -yyum install nscd* -yyum install nss-pam-ldapd –yyum install epel* -yyum ins

原创 pure-ftp腳本

#/bin/bash#create the work in 2016-4-15#install ftpcheck_ok() {if [ $? != "0" ];then echo -e "\033[32m the commond is er

原创 nginx反向代理和認證反向代理

認證反向代理server{      listen 443 ssl;    ssl on;    ssl_certificate /usr/local/nginx/ssl/cn.crt;    ssl_certificate_key /us

原创 zabbix 監控目錄大小

dir () {dir=$1[ -d $dir ] || mkdir $dirnum=(`/usr/bin/du $dir -sk|awk '{print $1}'|sed 's/[A-Z]//'`)m=$(echo "scale=3;$n