随笔分类 -  shell

摘要:在设置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 阅读(1278) 评论(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 阅读(837) 评论(0) 推荐(0)