发布时间:2013-06-28 11:45:48
备份还原1 备份svn服务器文件数据打包conf目录svnadmin dump /data/svn/gm > gm_bak2 上传备份目录到备机rsync -avz gm_bak conf.tar.gz conf.tar.gz 192.168.1.241:/data/svn3 登录备机ssh 192.168.1.2414 创建库svnadmin create /data/svn/gm5 还原服务器备份文件且覆盖conf目录.........【阅读全文】
发布时间:2013-06-26 17:42:29
update_server.sh#!/bin/sh#first mkdir test in server and client ,chmod -R 777 testread -p "input source directory:" sdirread -p "input destination directory:" ddirdir=/data/www/test#dirid=/data/home/app100683143dirid=/rootalone (){ read -p "input client .........【阅读全文】
发布时间:2013-04-11 11:14:44
server { listen 80; server_name www.nagios.com; location ~ \.cgi$ { root /data/apps/nagios/sbin; &n.........【阅读全文】
发布时间:2013-03-30 18:16:48
#!/bin/bash#from network#This Nagios plugin can be checked your system memory statusUSAGE_Method="$(basename $0) [-w|--warning] [-c|--critical]"USAGE_Value="WARNING value must be large than CRITICAL value:`basename $0` $*"STATE_OK=0STATE_WARNING=1STATE_CRITICAL=2.........【阅读全文】
发布时间:2013-03-28 17:22:15
#!/bin/shmkdir -p /usr/local/nagios/libexecNG_source=/data/sourceNG_DIR=/usr/local/nagiosNG_DIRLIB=/usr/local/nagios/libexecNG_SOURCE_DIR=/data/source/nagiosNG_PL_DIR=/data/source/nagios-plugins-1.4.16NG_NR_DIR=/data/source/nrpe-2.14yum -y install httpd php gcc glibc glibc-common gd gd-deve.........【阅读全文】