Ubuntu监控load脚本:#viload.sh按a或i进入编辑模式#!/bin/bashName=`hostname`IP=`/sbin/ifconfigeth0|grep"inetaddr"|awk-F[:""]+‘{print$4}‘`Date=`date+%m%d%y`Load=`/usr/bin/uptime|grepload|awk-F[:""]+‘{print$14}‘|tr-d","`Load2=150if[$(echo"$Load>$Load2"|bc)-e..
分类:
其他好文 时间:
2014-09-17 18:51:43
阅读次数:
224
#+BEGIN#+UPDATE_TIME 2014-07-02 11:50:00######################################################################## #Update Time : 2014.07.02;11:50# 数据.....
分类:
其他好文 时间:
2014-09-17 11:43:12
阅读次数:
1158
实验环境:虚拟机2台安装corosync+pacemaker,使用的操作系统为CentOS6.5。虚拟机IP:172.16.103.2、172.16.103.3实验步骤:前提准备:两台虚拟机时间同步,能够使用/etc/hosts文件基于主机名进行通信。一、安装corosync+pacemaker:#yuminstallcorosync
#yuminstallpacemaker二..
分类:
数据库 时间:
2014-09-17 02:25:42
阅读次数:
381
[root@jbossshell]#catzabbix.sh#!/bin/bashset-xHOST=`hostname`DIR=/rootserviceiptablesstopAZ(){groupaddzabbixuseraddzabbix-gzabbix-s/sbin/nologintar-zxvf$DIR/zabbix-1.8.5.tar.gzcdzabbix-1.8.5./configure--prefix=/usr/local/zabbix--enable-agentmakemakeinstallm..
分类:
其他好文 时间:
2014-09-16 16:05:31
阅读次数:
176
Linux 下什么都比较麻烦,就连修改主机名也不例外。我们就下文说一下具体方法。Linux 安装好后,其默认的主机名是 localhost。修改 Linux 主机名需要3步。使用 hostname 修改当前主机名。hostname new-hostname修改 /etc/sysconfig/netw...
分类:
系统相关 时间:
2014-09-16 15:49:30
阅读次数:
175
指定服务器的装机配置指定服务器就是绑定它的mac地址,并设置好ip、dns、hostname定义系统[root@master~]#cobblersystemadd--name=Test_Mail_1--hostname=Test_Mail_o--mac=00:19:B9:E5:34:FE--interface=eth0--ip-address=192.168.10.222--subnet=255.255.255.0--gateway=192...
分类:
其他好文 时间:
2014-09-16 12:50:01
阅读次数:
350
多域名、1.通过不同的端口来区分不同的站点2.开发自己的网站 E:\the_third_grade\Apache_workspace\text013.配置我们的http.conf文件,启动Virtual hosts:去掉 '#' 号。4.配置我们的 httpd-vhosts.conf文件 D...
分类:
其他好文 时间:
2014-09-16 12:27:10
阅读次数:
201
Change Fedora hostname permanentlyChange Fedora hostname permanentlyWhen remote login to another machine, it is likely that the hostname arealways the...
分类:
其他好文 时间:
2014-09-16 12:06:00
阅读次数:
176
今天用Fedora wget下载个Ubuntu镜像文件,结果一直显示Resolving xxxxxxxxxxxx(域名)... failed: No address associated with hostname.wget: unable to resolve host address “xxxx...
分类:
其他好文 时间:
2014-09-16 01:31:29
阅读次数:
176
1、修改main.cf配置文件,红色部分为需要注释的部分vim/etc/postfix/main.cf#smtpdrelatedconfigsmtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unauth_destin..
分类:
其他好文 时间:
2014-09-15 19:50:50
阅读次数:
224