自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(67)
  • 资源 (1)
  • 收藏
  • 关注

原创 《将博客搬至CSDN》

将博客搬至CSDN

2019-08-30 15:51:00 157

原创 kubernetes实践:helm安装harbor

GitHub:Helm Chart for Harbor1. 添加harbor的helm库helm repo add harbor https://helm.goharbor.io2. 将harbor下载到本地helm fetch harbor/harbortar xf harbor-1.1.1.tgz3. 自定义配置默认的values.yaml基本不需要多大改动,只有极个别的需...

2019-07-09 17:18:11 1963

原创 kubernetes实践:使用nfs-client实现storageclass

https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-clientnfs服务器见此篇kubernetes集群下安装nfs服务器一、helm安装helm install stable/nfs-client-provisioner --set nfs.server=172.18.1.3 --set nfs...

2019-07-09 16:45:28 1294 1

原创 kubernetes实践:安装nfs服务器

找一台服务器搭建一台nfs服务器系统:Ubuntu 16.04IP:172.18.1.13apt install nfs-common nfs-kernel-server -y#配置挂载信息cat /etc/exports/data/k8s *(rw,sync,no_root_squash)#给目录添加权限chmod -R 777 /data/k8s#启动/etc/init....

2019-07-09 16:16:49 822

原创 kubernetes实践:内部dns域名解析服务器

操作系统:Ubuntu 16.04服务器IP:172.18.1.121. 安装bind9apt install bind9 -y2. 配置解析文件进入/etc/bind目录下,打开named.conf.local//// Do any local configuration here//// Consider adding the 1918 zones here, if the...

2019-07-09 16:08:04 1730

原创 kubernetes实践:安装jenkins slave

一、安装Jenkins1. 安装存储服务器找一台服务器搭建一台nfs服务器系统:Ubuntu 16.04IP:172.18.1.13apt install nfs-common nfs-kernel-server -y#配置挂载信息cat /etc/exports/data/k8s *(rw,sync,no_root_squash)#给目录添加权限chmod -R 777 ...

2019-07-03 19:55:17 2373 7

原创 五、kubernetes实践:rancher-ha-Helm安装Rancher

参考 https://www.cnrancher.com/docs/rancher/v2.x/cn/installation/ha-install/1. 添加Chart仓库地址使用helm repo add命令添加Rancher chart仓库地址,访问Rancher tag和Chart版本替换<CHART_REPO>为您要使用的Helm仓库分支(即lates...

2019-06-26 14:26:05 1079

原创 四、kubernetes实践:rancher-ha-安装配置Helm

参考https://www.cnrancher.com/docs/rancher/v2.x/cn/installation/ha-install/注意helm使用需要kubectl,点击了解安装和配置kubectl。Helm是Kubernetes首选的包管理工具。Helmcharts为Kubernetes YAML清单文档提供模板语法。使用Helm,我们可以创建可配置的部署,而不仅仅是使用...

2019-06-25 18:58:00 433

原创 三、kubernetes实践:rancher-ha-rke安装k8s

参考 https://www.cnrancher.com/docs/rancher/v2.x/cn/installation/ha-install/1. 常规节点配置optionrequireddescriptionaddressyes公共域名或IP地址useryes可以运行docker命令的用户roleyes分配给节点的Kubernetes角色...

2019-06-25 17:21:24 711

原创 二、kubernetes实践:rancher-ha-四层负载均衡Helm HA部署

参考 https://www.cnrancher.com/docs/rancher/v2.x/cn/installation/ha-install/一、架构说明二、配置负载均衡集群负载均衡列表:test-kube-nginx-lb-01 172.18.1.12test-kube-nginx-lb-02 172.18.1.10创建nginx配置cat >> /et...

2019-06-25 17:16:58 493

原创 rke备份和恢复

Backups and Disaster RecoveryAs of v0.1.7, you can configure a RKE cluster to automatically take snapshots of etcd. In a disaster scenario, you can restore these snapshots, which are stored on othe...

2018-07-12 15:51:52 783

原创 rke安装k8s

InstallationRKE is a fast, versatile Kubernetes installer that you can use to install Kubernetes on your Linux hosts. You can get started in a couple of quick and easy steps:Download the RKE Bina...

2018-07-12 15:32:18 451

原创 rke安装环境准备

Operating System RequirementsRKE runs on almost any Linux OS with Docker installed. Most of the development and testing of RKE occurred on Ubuntu 16.04. However, some OS's have restrictions and spe...

2018-07-12 15:05:06 759

原创 rke增加/删除节点

Managing RKE Clusters Adding/Removing Nodeslink RKE supports adding/removing nodes for worker and controlplane hosts.In order to add additional nodes, you update the original cluster.yml file wi...

2018-07-12 13:50:59 1740

原创 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 http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -sudo a...

2018-07-04 15:55:00 303

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

http://www.cnblogs.com/lemon-le/p/6266921.html 完整版的OpenLDAP搭建全过程 总结: 先写总结,再写正文,嘿嘿嘿。这还是第一次认真的写个文档,写个总结,哈哈。大概在一个月前,第一次听说这个东西,完全没有概念,刚开始的时候看理论的知识,看了几次之后就没看了,看不懂啊。太抽象...

2018-04-20 14:36:37 2158 1

原创 nginx里proxy_pass有无/的区

https://www.cnblogs.com/lemon-le/p/7800879.htmlnginx里proxy_pass有无/的区别nginx在反向代理的时候,proxy_pass需要指定路径,有无"/"的区别,如下: location /lile { 配置一: proxy_pass http://192.168.0.37/; 配置二: proxy_pass ...

2018-04-20 14:33:06 129

原创 ubuntu16.04搭建docker_1.13.1私有仓库

1、配置docker的国内加速器docker版本为1.13.1需要配置一下daemon.json配置阿里云的docker加速器:wangpeng@ubuntu:~$sudovim/etc/docker/daemon.json{"registry-mirrors":["https://kv3qfp85.mirror.aliyuncs.com"...

2018-04-01 21:25:02 289

原创 python导入自定义模块

>>>importsys>>>printsys.path['','/usr/lib64/python26.zip','/usr/lib64/python2.6','/usr/lib64/python2.6/plat-linux2','/usr/lib64/python2.6/lib-tk','/usr/lib64/py...

2018-02-24 16:45:26 85

原创 修改kvm虚拟机镜像文件大小

1、查看kvm镜像的格式信息[root@base-12-199bakup]#qemu-imginfo10.1.12.201_base-12-201image:10.1.12.201_base-12-201fileformat:qcow2virtualsize:200G(214748364800bytes)disksize:88Gcluste...

2018-01-29 16:27:35 645

原创 nginx通过云负载均衡后作反向代理并限制制定ip访问

有个需求,需要特定的2个ip才能访问指定域名,但是使用私有云的slb负载后透过的ip,指向nginx反向代理后,使用nginx的ip限制无法控制ip访问。试了很多办法但是没有效果,后来尝试了以下方式,发现可以了。server { listen 80; server_name xxx.xxx.xxx; set $x $remote_...

2017-12-28 17:01:11 443

原创 nginx报错收集:nginx反向代理403报错一

配置反向代理后发现访问域名是403,后来检查nginx.conf配置文件后发现,没有添加include xxxxxxx.conf;添加完毕访问正常!

2017-12-28 16:52:59 476

原创 我的友情链接

51CTO博客开发王春海的博客Linux运维-小墨一壶浊酒马哥Linux培训老男孩linux培训滴水穿石孙杰koumm的linux技术博客CloudMan

2017-11-22 23:10:47 70

原创 TypeError: Cannot create a consistent method resolution order (MRO) for bases P1, P2

新式类多重继承原则:广度优先,从左到右==================正确==================In[19]:classP1(object):...:deffoo(self):...:print('calledP1-foo()')...:classP2(object):.....

2017-10-25 22:15:15 1583

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

pip install pycrypto报错src/MD2.c:31:20:error:Python.h:Nosuchfileordirectorysrc/MD2.c:120:error:expected‘=’,‘,’,‘;’,‘asm’or‘__attribute__’before‘*’tokenInfile...

2017-10-23 15:24:07 119

原创 python统计nginx日志域名下载量

统计nginx访问日志,access.log形式:1xx.xx.xxx.xxx - - [09/Oct/2017:10:48:21 +0800] "GET /p_w_picpaths/yyy/2044/974435412336/Cover/9787503434r.jpg HTTP/1.1" 304 0 "http://www.xxx.net/" "Mozilla/5.0 (...

2017-10-10 18:03:21 135

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

出自:快乐的雨点的博客http://blog.csdn.net/xsj_blog/article/details/51847831字典排序在程序中使用字典进行数据信息统计时,由于字典是无序的所以打印字典时内容也是无序的。因此,为了使统计得到的结果更方便查看需要进行排序。Python中字典的排序分为按“键”排序和按“值”排序。按“值”排序按“值”排序就是根据字典的值进行排序,可...

2017-10-10 17:50:49 117

原创 ubuntu16.04安装vncserver

root@ubuntu:~#apt-getupdateroot@ubuntu:~#apt-getinstallubuntu-desktoproot@ubuntu:~#apt-getinstallvnc4serverroot@ubuntu:~#vncserverroot@ubuntu:~#vim~/.vnc/xstartup#!/bin/sh[...

2017-09-30 14:33:22 218

原创 Linux命令行大小写转换

一、Python 字符串大小写转换1、字符串大小写转换In[1]:string='www.test.com'In[2]:print('lower-->upper:%s'%string.upper())lower-->upper:WWW.TEST.COMIn[3]:STRING='WWW.TEST.COM'In[4]:...

2017-09-30 09:34:28 1504

原创 jumpserver解决"Server responded with 0 code"

django上传文件超过100M大小就会报Server responded with 0 code这个错误。在官方github上找到了解决方法,https://github.com/jumpserver/jumpserver/issues/270 1、nginx做反向代理2、后台jumpserver启动两个进程,一个是主进程负责界面处理,另一个负责上传一、安装nginx配置n...

2017-09-21 17:37:20 4050

原创 给apm换一个软件源

给apm换一个软件源Atom的插件实际上在npm上,npm的官方源在国内访问起来是非常缓慢的。但是,国内有许多镜像源可以使用,如淘宝源(http://registry.npm.taobao.org/),CNPM(http://r.cnpmjs.org)。要设置apm使用的软件源很简单,执行下列命令:apmconfigsetregistrynpm_mirror_url1...

2017-09-10 21:04:20 386

原创 Zabbix自定义监控脚本,显示权限不足

最近在配置zabbix监控mysql的自定监控项的时候,使用zabbix服务器测试时,报这个错。我就查看了agent端zabbix_agentd.log和Server端的日志,然并卵什么都木有发现。后来查看Server端发现我用的是zabbix用户,而agent端的/usr/local/zabbix的所有者是root,问题就出现在这里,将zabbix配置目录的所有者改为了za...

2017-09-09 23:28:39 730

原创 Ubuntu安装ping工具

Ubuntu安装ping工具apt-get install inetutils-ping

2017-09-09 23:28:15 835

原创 Ubuntu安装ifconfig工具

Ubuntu安装ifconfig工具apt-get install net-tools

2017-09-09 23:27:42 168

原创 Ubuntu连结远程github

一、Ubuntu安装git软件1、安装git和sshwangpeng@ubuntu:~$sudoaptinstallgitwangpeng@ubuntu:~$sudoaptinstallssh2、配置git用户信息wangpeng@ubuntu:~$gitconfig--globaluser.name"wangpengtai"wangpeng@u...

2017-09-09 23:25:58 123

原创 Ubuntu 16.04安装pip、pip3、ipython和ipython3

在ubuntu 16.04 server版上安装pip、pip3、ipython2和ipython3具体步骤如下:wangpeng@ubuntu:~$sudoaptinstallpython3-pipwangpeng@ubuntu:~$sudoaptinstallpython-pipwangpeng@ubuntu:~$sudopip3install...

2017-09-06 22:43:06 160

原创 解决安装ipython时Command "python setup.py egg_info" failed with error code 1 in /tmp

最近使用ubuntu16.04 server版安装ipython的时候一直在报错:IPython6.0+doesnotsupportPython2.6,2.7,3.0,3.1,or3.2.WhenusingPython2.7,pleaseinstallIPython5.xLTSLongTermSupportversio...

2017-09-06 22:28:43 205

原创 Linux系统pip更换国内源

如果想将国内pip源配置成默认的源,方法如下:需要创建或修改配置文件(一般都是创建),系统使用的是ubuntu系统所以要在root用户和ubuntu用户下都要创建一遍一下操作:root用户:#mkdir ~/.pip#vim ~/.pip/pip.confubuntu用户:$mkdir ~/.pip$vim ~/.pip/pip.conf添加内容为:[global]inde...

2017-09-06 17:52:56 797

原创 CentOS 6.0系列更新安全补丁

一、安装yum-security这个方法是使用的yum方式更新安全补丁,不需要再去官网上来回查看了,还以自动安装更新。安装yum-security,这个软件可以检查并更新安全补丁,挺方便[root@zabbix_server-12-155~]#yum-yinstallyum-security1、检查是否有可用安全补丁[root@zabbix_server-12-15...

2017-09-05 13:56:34 848

原创 Zabbix使用Pycurl模块监控web页面状态

由于网络的问题,zabbix自带web模块用不了,后台研发2b,老是更新正式环境安装包,导致一直出问题,老是给他们擦屁股,早说过这事,他们不配合,现在出问题了,挺爽,这锅我表示不背,就找了pycurl这个模块写个监控。pycurl模块用法:(这块是抄的,引用地址:http://blog.csdn.net/xsj_blog/article/details/52102652)c...

2017-08-17 10:00:52 109

bash补丁包.zip

1、rhel 4.x 32位 bash-3.0-27.0.3.el4.i386.rpm bash-debuginfo-3.0-27.el4.4.i386.rpm 2、rhel 4.x 64位 bash-3.0-27.el4.x86_64.rpm bash-debuginfo-3.0-27.el4.4.x86_64.rpm 3、centos5.x_32 bash-3.2-33.el5.1.i386.rpm bash-3.2-33.el5_11.4.i386.rpm 4、centos5.x_64 bash-3.2-33.el5.1.x86_64.rpm bash-3.2-33.el5_11.4.x86_64.rpm 5、rhel5.x_32 bash-3.2-33.el5.1.i386.rpm bash-3.2-33.el5_10.4.i386.rpm 6、rhel5.x_64 bash-3.2-33.el5_10.4.x86_64.rpm bash-debuginfo-3.2-33.el5_11.4.x86_64.rpm 7、rhel6.x_64 bash-4.1.2-15.el6_5.2.x86_64.rpm bash-debuginfo-4.1.2-15.el6_5.2.x86_64.rpm bash-doc-4.1.2-15.el6_5.2.x86_64.rpm 8、rhel AS release 4 bash-3.0-27.0.1.el4.i386.rpm

2014-10-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除