摘要: 我搭建Nagios的时候都是参考这位大神的文章,写的很全面很详细 http://www.cnblogs.com/mchina/archive/2013/02/20/2883404.html#!comments 阅读全文
posted @ 2017-05-11 10:09 KaShing 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.安装一些依赖的软件包 2.下载Python3.5的源码包并编译(在/usr/local目录下) 3.更改yum的参数,这里是个小坑,一些不知道的朋友们升级python后会发现yum命令不能够使用了,因为yum命令使用并且依赖python2.6,所以我们要更改它的参数,保存并退出 4.删除之前的/ 阅读全文
posted @ 2017-05-10 17:42 KaShing 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: 一、准备环境: 系统:centos6.5 64位 192.168.1.61 master 192.168.1.5 slave 二、在两台服务器上都要配置ssh免密码登录 在192.168.1.61 上 vim /etc/hosts最后添加 在192.168.1.5 上 vim /etc/hosts最 阅读全文
posted @ 2017-05-04 09:22 KaShing 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 执行#/usr/local/memcached/bin/memcached随后出现如下错误:./memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No 阅读全文
posted @ 2017-04-27 14:55 KaShing 阅读(294) 评论(0) 推荐(0) 编辑
摘要: tomcat依赖jdk软件包,所以先配置jdk. 配置完成后 将下载好的tomcat 解压至/usr/local tar -xvf apache-tomcat-7.0.70.tar.gz -C /usr/local 配置环境变量 编辑 vim /etc/profile.d/tomcat.sh 添加两 阅读全文
posted @ 2017-04-27 14:46 KaShing 阅读(170) 评论(0) 推荐(0) 编辑
摘要: wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 阅读全文
posted @ 2017-04-27 14:42 KaShing 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 下载jdk-6u45-linux-x64.bin到/root目录下执行./jdk-6u45-linux-x64.bin 会在/root目录下生成 jdk1.6.0_45 文件 之后配置环境变量 编辑/etc/profile vim /etc/profile 最后几行写入 之后执行source /et 阅读全文
posted @ 2017-04-27 14:40 KaShing 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 关于DNS这里不详细阐述,本博客作者使用yum配置163的源进行安装bind98版本,关于一些配置文件没有参考安装的默认配置文件,而是自己编写的,仅供参考: (注意:以下的配置文件一定要注意格式,这里的配置文件格式上不一定是对的,但内容是可以参考的,一定要注意配置文件中的中文空格,这会让你找半天的) 阅读全文
posted @ 2017-04-15 19:13 KaShing 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1.动态导入模块 在当前目录下有lib和test目录,在test中要想使用lib中的aa的C类: test中: 第一种方法:推荐 importlib.import_module('lib.aa') obj = aa.c() 第二种方法:(python内部解释器用的) lib = __import__ 阅读全文
posted @ 2017-04-07 09:21 KaShing 阅读(390) 评论(0) 推荐(0) 编辑
摘要: Python3 中hashlib及uuid的用法: 可以生成随机ID 阅读全文
posted @ 2017-04-07 09:20 KaShing 阅读(972) 评论(0) 推荐(0) 编辑