摘要: 今天在同步备份文件时遇到一个情况,以前正常的备份,在昨天突然同步备份文件失败了。于是开始检查原因。。。。。 报错日志/var/log/rsyncd.log发现错误 2014/07/02 21:18:16 [9374] auth failed on module backup_www from UNK 阅读全文
posted @ 2014-07-03 12:52 普拉多VX 阅读(17985) 评论(1) 推荐(0) 编辑
摘要: [root@master base]# openssl passwd -1 -salt 123Password: $1$123$2rm.J6pr3p.rmj6YoKSQ8.[root@master base]# 阅读全文
posted @ 2013-12-30 15:59 普拉多VX 阅读(225) 评论(0) 推荐(0) 编辑
摘要: SyntaxError: Non-ASCII character '\xe8' in file delete.py on line 4, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details运行程序报上面的错误解决方法:1.在程序开头加入#coding:utf-8#!/usr/bin/env python# coding: utf-8 阅读全文
posted @ 2013-12-25 14:17 普拉多VX 阅读(627) 评论(0) 推荐(1) 编辑
摘要: 今天新安装了一个Xshell4.0的客户端,登录linux服务器发现无法使用小键盘进行输入,后来把终端里的——终端类型更改成linux后重新打开标签登录服务器,发现可正常使用。默认的终端类型为:xterm,所以要更改。一输入数字就变成rrrrr qNETWORKING=yesrrrrqHOSTNAME=haowan123.luodi.com 阅读全文
posted @ 2013-12-09 13:08 普拉多VX 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 在设置LVS客户端时,如果我们使用手工设置的话会比较麻烦。现在我们直接使用脚本来启动lvs-client就OK了,下面是一个简单的脚本。VIP地址:10.0.0.230,把文件放到/etc/init.d/目录下,并受于755的权限就可以使用service来启动和停止了,同时也可以使用chkconfig添加为开机启动#!/bin/bash#author:luodi date:2013/11/27#chkconfig: 2345 80 93#description:this script to start lvs client for the server#version:1.0. /e... 阅读全文
posted @ 2013-11-27 15:00 普拉多VX 阅读(1260) 评论(0) 推荐(0) 编辑
摘要: 一个好的习惯会让人终生受益,当然我们做运维也是如此,比如我们在前期维护系统时修改或者删除掉/etc/issue /etc/issue.net这两个文件。修改和删除的目的是屏蔽系统版本信息,这样是为了安全考虑。除了上面的操作外还要修改/etc/motd,如没有就要手动建立一个,里面输入我们登录时的提示内容[root@dr ~]# vim /etc/motd ||-----------------------------||||HostName:DR.luodi.com ||||HostIP :10.0.0.20 ||||Application:Apache,L... 阅读全文
posted @ 2013-11-27 14:53 普拉多VX 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 该脚本比较简单,判断网站根目录是否被篡改,如果被篡改把篡改的文件发送到管理员邮箱#!/bin/bash#author:luodi date:2013/10/11#use md5 to check web site . /etc/init.d/functions#var settingWEBDIR=/var/www/html/web/KEY=md5key#to determine whether a file exists[ -e $WEBDIR ] || exit [ -f $KEY ] || find $WEBDIR -type f -exec md5sum >>$KEY {} 阅读全文
posted @ 2013-11-19 11:21 普拉多VX 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 今天做lvs+keepalived+mysql项目实施方案,在配置lvs+keepalived时都是ok的,但是就只加入第一台realserver。本人也感到很奇怪,lvs+keepalived本人也在实验环境下做过很多次了,但是还是出问题了,后来对比配置文件终于发现问题所在。问题前:[root@lvsA keepalived]# ipvsadm -LnIP Virtual Server version 1.2.1 (size=4096)Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward... 阅读全文
posted @ 2013-11-08 13:59 普拉多VX 阅读(1187) 评论(0) 推荐(1) 编辑
摘要: 1.在centos6.4 中使用yum install heartbeat,并没有发现heartbeat软件包[root@master ~]# yum install heartbeat heartbeat*Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.btte.net * updates: mirrors.btte.netSetting up Inst 阅读全文
posted @ 2013-11-04 11:06 普拉多VX 阅读(1994) 评论(0) 推荐(0) 编辑
摘要: 1.查看主服务器[root@master ~]# /etc/init.d/drbd statusdrbd driver loaded OK; device status:version: 8.4.4 (api:1/proto:86-101)GIT-hash: 599f286440bd633d15d5ff985204aff4bccffadd build by root@master.luodi.com, 2013-11-03 00:03:40m:res cs ro ds p mounted fs... 阅读全文
posted @ 2013-11-04 10:07 普拉多VX 阅读(2016) 评论(0) 推荐(0) 编辑