#!/bin/sh
groupname=”yourgroup”
ipaddress=”192.168.0.1″
snmpwalk=”/usr/bin/snmpwalk”
export PATH=$PATH:/usr/bin:/bin
datestr=`date +”%Y/%m/%d %R”`
curtime=`date +%H%M`
#up link port
inf=your port no
#!/bin/sh
groupname=”yourgroup”
ipaddress=”192.168.0.1″
snmpwalk=”/usr/bin/snmpwalk”
export PATH=$PATH:/usr/bin:/bin
datestr=`date +”%Y/%m/%d %R”`
curtime=`date +%H%M`
#up link port
inf=your port no
1. 建立免密码账户 (http://www.chinaunix.net/jh/6/16477.html)
、用同样的方法安装好客户机,即重复1-3
2、将客户机的公钥:id_dsa_1024_a.pub拷到服务器端用户主目录,本人为root的根目录/ 的.ssh2中—
最好重命名—为了防止覆盖掉服务器中的同名文件,假设改为hello.pub
3、在客户端的用户主目录的.ssh2文件夹中建立文件identification, echo"IdKey
id_dsa_1024_a" >; identification */此文件用来标识客户机自己的私钥,用来和拷到服务端的自己的公
钥校验 /*
(more…)
CC=gcc CFLAGS=”-O3″ CXX=gcc CXXFLAGS=”-O3 -felide-constructors -fno-exceptions -fno-rtti” \
./configure \
–with-client-ldflags=-all-static \
–prefix=/usr/local/mysql –enable-assembler \
–localstatedir=/data/mysql –without-debug \
–enable-thread-safe-client –without-docs \
–with-big-tables –enable-local-infile –with-plugins=blackhole,heap,partition,myisam,innobase,innodb_plugin \
–with-charset=utf8 –with-extra-charsets=gbk,gb2312,latin1
CC=gcc CFLAGS=”-O2″ \
./configure -prefix=/usr/local/httpd2_2_22 –enable-proxy –enable-proxy-ajp –enable-proxy-balancer –enable-expires\
–enable-headers –disable-asis –disable-auth -disable-autoindex –disable-userdir –enable-rewrite \
–disable-cgi –disable-cgid –disable-access –enable-charset-lite –enable-deflate –disable-status
会提示找不到 zlib ,实际上因为没有 zlib.h,在网上找来的 opensuse zlib-devel rpm也不行
解决方法,安装suse第二张光盘中的zlib source rpm,在 /usr/src/packages/SOURCES里面找到 zlib的压缩包,解压后运行 ./configure ; make;make install,之后就ok了
先安装2个rpm包
#由于两个rpm互相依赖,所以第一个安装的时候需要加上–nodeps参数
rpm -i –nodeps net-snmp-5.4.2.1-8.2.1.x86_64.rpm
rpm -i perl-SNMP-5.4.2.1-8.2.1.x86_64.rpm
(more…)
Powered by WordPress