- 博客(54)
- 资源 (4)
- 收藏
- 关注
原创 CentOS 升级 glibc 及升级后中文乱码
编译安装 glibc :// 查看系统glibc支持的版本:strings /lib64/libc.so.6 |grep GLIBC_ ...rpm -qa |grep glibcglibc-common-2.12-1.209.el6_9.2.x86_64glibc-2.12-1.209.el6_9.2.x86_64glibc-headers-2.12-1.209.el6_9.2...
2019-07-26 17:33:22
2560
原创 kubeadm init 时异常
可能出现的异常:Oct 31 15:43:17 node01 kubelet[13367]: E1031 15:43:17.426950 13367 kuberuntime_manager.go:657] createPodSandbox for pod "kubernetes-dashboard-77fd78f978-97k5w_kube-system(f3635de0-dcde-11e8...
2018-11-22 11:08:17
2662
原创 通过kubeadm部署kubernetes集群
目录Version安装 Docker安装 Kubeadm设置 kubectl 命令自动补全关闭swap部署 Kubernetes 的 Master 节点安装网络插件:weave确认 pod 状态检查node状态部署 Kubernetes 的 Worker 节点部署 Kubernetes Dashboard (Master节点)准备 dashboard 镜像下载并编辑 kubernetes-dash...
2018-11-22 10:54:13
890
原创 fabric初试
安装:yum install -y python-pip openssl-devel python-devel python-pip libffi-devel libffipip install fabric执行pip install fabric时自动安装的一些依赖包:requirements:asn1crypto-0.24.0 bcrypt-3.1.4 cffi
2018-01-31 17:55:38
587
原创 deploy Redis 2.8.x on Centos 6.x
下载# wget --quiet http://download.redis.io/releases/redis-2.8.24.tar.gz安装 安装/配置过程中需要用到gcc,tcl等软件包。直接通过yum安装即可 yum install -y tcl yum groupinstall -y “development tools”# tar -xf
2017-07-04 13:56:31
454
原创 安装mysql
- CentOS 6.x/7.x/8.x- Mysql 5.6/5.7准备如果需要,先卸载旧版本mysqlrpm -qa |grep mysql |xargs yum remove -y安装# wget https://repo.mysql.com//mysql-community-release-el6-5.noarch.rpm# yum localinstall -y mysql-community-release-el6-5.n
2017-06-30 10:30:36
461
原创 zookeeper集群配置
下载安装从官网下载最新版本的zookeeper 相关地址:http://mirror.bit.edu.cn/apache/zookeeper/current/# wget --quiet http://mirror.bit.edu.cn/apache/zookeeper/current/zookeeper-3.4.10.tar.gz# tar -xf zookeeper-3.4.10.tar.
2017-06-23 17:39:14
473
原创 deploy elk 5.4 on centos 6.8
架构KibanaElasticsearchRedisLogstashFilebeat参考官方文章end架构Created with Raphaël 2.1.0FilebeatRedisLogstashElasticsearchKibana 本架构中使用了Redis作为缓存,由Filebeat从客户端收集日志发送到Redis服务,Logstash再从Redis读出,存入Elastic
2017-06-23 17:01:59
528
原创 部署zabbix agent监控windows
被监控端配置修改配置文件部署zabbix agent并配置成windows系统服务确认zabbix agent服务正常运行监控端配置被监控端配置修改配置文件配置文件位于conf目录下的:zabbix_agentd.win.conf关键配置项参考:LogFile=c:\zabbix_agentd.logServer=192.168.2.42ServerActive=192.168.2.42
2017-06-08 09:59:37
708
原创 deploy elk on centos 6.8 64bit
Deploy_elk_5.1.1_on_centos_6.8OS: CentOS release 6.8 (Final) ELK Version: 5.1.1架构如图(需3台server):配置ELK源# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch# vim /etc/zypp/repos.d/elasticsea
2016-12-27 10:18:00
780
原创 pip: InsecurePlatformWarning: A true SSLContext object is not available
在用pip7.1.2版本安装第三方模块时出现了如下警告:..._vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropr
2015-12-27 21:09:21
1135
原创 Upgrade Python And Pip On CentOS 6.x
下载python2.7源码,编译安装安装openssl与openssl-devel包# yum install openssl # yum install openssl-devel进入python源代码文件夹,修改Modules/Setup.dist文件#vim Setup.dist修改# Socket module helper for SSL support; you must comm
2015-12-22 14:10:52
542
原创 配置zabbix邮件报警
实现方式: zabbix + msmtp + muttInstall pkg# yum install -y mutt msmtp编辑配置文件,如下# cp /etc/Muttrc{,.bak}# vim /etc/Muttrcset sendmail="/usr/bin/msmtp"set use_from=yesset realname="监控(Zabbix)"set from=abc@
2015-10-28 17:38:41
974
原创 Monitoring tomcat By zabbix
— 书接上篇 —Backup settings.sh# cp /usr/local/zabbix2.4/sbin/zabbix_java/settings.sh{,.bak}Edit /usr/local/zabbix2.4/sbin/zabbix_java/settings.sh# grep -E -v '(#|^$)' settings.shLISTEN_IP="0.0.0.0"LISTEN
2015-10-28 11:18:09
1047
原创 Deploy openresty + lua + zabbix
OS: CentOS6.5 64Bit Architecture: openresty + lua + zabbix Method: compileConfigure mysql#yum install -y mysql-server mysql-devel
2015-10-28 11:06:00
1214
转载 shell数组和字典
本文为转载文章为表对文章作者的尊重特贴出原文 URL:http://www.firefoxbug.com/index.php/archives/2369/:#!/bin/bashecho "shell定义字典"#必须先声明declare -A dicdic=([key1]="value1" [key2]="value2" [key3]="value3")#打印指定key的valueecho
2015-10-13 16:48:38
15566
原创 access.log统计/处理
次文根据其他博文整理而成方法1: cat access.log | awk '{print $1}' | sort | uniq -c | sort -n -r | head -10方法2:cat access.log | awk -F "- -" '{print $1}' | sort -t . | uniq -c | sort -n -r | head -10方法3:awk '{a[$1] +
2015-09-16 21:51:58
1699
转载 iptables-rules
From: http://www.thegeekstuff.com/scripts/iptables-rulesModify this file accordingly for your specific requirement.1. Delete all existing rules iptables -F2. Set default chain policiesiptables -P INPU
2015-09-15 08:30:23
538
原创 iptables的state模块的4种封包链接状态
在iptables下这个模块叫state,在NetFilter结构里,该模块保存在xt_state.ko这个文件中。这里我们称呼其为state模块。在state中封包的4种链接状态分别为:ESTABLISHED NEW RELATED INVALID这里我简单讲一下这四种链接状态。NEW 当你在使用UDP、TCP、ICMP等协议时,发出的第一个包的状态就是“NEW”ESTABLISHED
2015-09-09 21:10:12
3026
原创 ubuntu下设置Iptables在重启后自动生效
save roles to a file iptables-save /etc/iptables.rolesedit /etc/network/interfaces vim /etc/network/interfacesadd: pre-up iptables-restore < /etc/iptables.rolesdone.
2015-09-09 16:24:24
7564
原创 deploy zabbix-agentd
Create user account#groupadd zabbix#useradd -g zabbix zabbixInstall#wget http://7mnldi.com1.z0.glb.clouddn.com/zabbix-2.2.10.tar.gz#tar -xf zabbix-2.2.10.tar.gz#cd zabbix-2.2.10#./configure --enabl
2015-09-01 16:15:13
839
原创 Start Zabbix at boot on Ubuntu 14.04
Version: zabbix 2.2.10Copy the init.d scripts to the right spot:sudo cp misc/init.d/debian/zabbix-server /etc/init.dsudo cp misc/init.d/debian/zabbix-agent /etc/init.dSet the correct permissions and
2015-09-01 14:47:06
715
原创 Ubuntu 14.04 source list: http://cn.archive.ubuntu.com
#deb cdrom:[Xubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140723)]/ trusty main multiverse restricted universe# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# newer ve
2015-09-01 09:14:13
1538
原创 deploy zabbix 2.2.10 on ubuntu 14.04 64bit
deploy zabbix 2.2.10 on ubuntu 14.04 64bitInstall depends#apt-get install -y nginx php5-fpm php5-gd mysql-server php5-mysql libmysqld-dev libxml2-dev libsnmp-dev libcurl4-openssl-devConfig mysqlScripts
2015-09-01 00:37:13
1114
原创 Unable to run Vmware workstation 11 - failed to build vmnet
ubuntu version: 14.04.3 LTS(kernel version:3.19.0-27-generic) vmware version: version: 11.0.0 build-2305329升级xubuntu到14.04.3 LTS(kernel version:3.19.0-27-generic)后,按照以往开始装各种常用软件,在装完VMware Workstation(
2015-08-28 22:20:54
3636
原创 Deploy ClamAV on Ubuntu 14.04 64bit
Installing from sourceCheck RequirementsUninstall any old version, see UninstallClamAV (Note: this isn’t essential, but removes sources of problems).wget the source gzip file, see WhichVersionuntar
2015-08-28 10:20:03
584
原创 python-spider
#!/usr/bin/env python#coding: utf-8import urllibimport urllib2import cookielibimport getpassdef login(): loginname = raw_input("Enter your username: ") password = getpass.getpass("Enter yo
2015-08-27 17:50:09
980
原创 部署Jenkins(Jetty|tomcat)
deploy jenkins略过jenkins是何物的介绍以最简单的方式运行jenkins:下载jenkins war包,直接运行命令:# java -jar jenkins.warRunning from: /root/jenkins/jenkins.warwebroot: $user.home/.jenkinsJul 27, 2015 10:54:18 AM winstone.Logger
2015-07-28 15:02:59
3895
原创 sublime text 3 快捷键
本文转至:http://www.jb51.net/softjc/180873.html, 有删减Sublime text 3是码农最喜欢的代码编辑器,每天和代码打交道,必先利其器,掌握基本的代码编辑器的快捷键,能让你打码更有效率。刚开始可能有些生疏,只要花一两个星期坚持使用并熟悉这些常用的快捷键!其实sulime text菜单栏各个选项中都会提示相关的快捷键,各位可以自己去看看,本文主要是整理一些隐
2015-07-24 10:34:45
674
原创 lnmp+wordpress: 您的PHP似乎没有安装运行WordPress所必需的MySQL扩展
在部署lnmp_wordpress时,有时会遇到如下提示:您的 PHP 似乎没有安装运行 WordPress 所必需的 MySQL 扩展解决办法:# vim /etc/php5/fpm/php.ini ; extension=msql.so extension=msql.so# service nginx restart方法二:# apt-get install -y php5-mys
2015-07-22 21:25:28
7688
3
原创 Configure hexo(node,npm)
Platform: xubuntu 14.04 64bit1,install node&npm# wget https://nodejs.org/dist/v0.12.5/node-v0.12.5-linux-x64.tar.gzuntar,mv to /opt# ln -s /opt/node-v0.12.5-linux-x64/bin/node /usr/bin/# ln -s /opt/no
2015-07-01 23:44:31
881
转载 How To Set Up a Private Docker Registry on Ubuntu 14.04
How To Set Up a Private Docker Registry on Ubuntu 14.04(原文:https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-14-04原文需要翻墙,而且很慢,所以这里转一下,前一片博文是我根据
2015-06-29 18:26:41
3151
翻译 ubuntu 14.04(trusty)下搭建本地docker regestry
Step One - Install Prerequisites# apt-get update# apt-get -y install build-essential python-dev libevent-dev python-pip liblzma-devStep Two — Install and Configure Docker Registry# pip install docker-
2015-06-16 17:44:47
1488
原创 在本地构建docker image
由于xxx的原因,直接docker pull xxxx 是无法pull成功的,试过vpn也搞不定,所以就想到在本地自己整个image,如下是实现过程…前提:docker 已正确安装# docker versionClient version: 1.6.2Client API version: 1.18Go version (client): go1.4.2Git commit (client
2015-06-16 12:06:09
1728
原创 python virtualenv
install# pip install virtualenvcreate env:# virtualenv ~/.newnevactivate newenv:source ~/.newenv/bin/activateexit newenv:deactivate
2015-06-16 11:52:49
398
原创 wordpress 下多域名支持
修改wp-config.php,在数据库配置下加上如下内容:# vim wp-config.php...// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** ///** WordPress数据库的名称 */define('DB_NAME', 'xxx');/** MySQL数据库用户名 */define('DB_USER', 'xxx');/** MySQL数据库密码 */
2015-06-10 10:06:33
828
原创 笔记一下:配置nginx输入任何地址都跳转至维护页面
笔记一下:配置nginx输入任何地址都跳转至维护页面server { listen 80; root /xxx/xxx/src; index index.html index.htm; server_name test.xxx.com; set $flag 0; if ($request_uri !~ "(/static/.*)$"){
2015-06-05 18:32:35
11086
原创 pip freeze err
备忘一下root@x04:/tmp#pip freezeException:Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "
2015-06-02 14:34:45
1096
原创 ubuntu 编译安装最新版node && npm
Dwnload nodelink: http://pan.baidu.com/s/1z0Jj4Configureunpack and mv to /opt# .configure && make && make installCreate links:for node:# ln -s /opt/node-v0.12.4/out/Release/node /usr/sbin/nodefor npm
2015-05-28 17:52:20
821
原创 在CentOS 7上部署OpenStack Juno时遇到的问题总结
随着安装的进度,持续更新 …ISSUES1 can not start openstack-keystone service2 can not run keystone user-list keyston correlation commandsISSUES:1, can not start openstack-keystone service:Description: [root@cont
2015-05-22 15:58:45
5158
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人