国产成人毛片视频|星空传媒久草视频|欧美激情草久视频|久久久久女女|久操超碰在线播放|亚洲强奸一区二区|五月天丁香社区在线|色婷婷成人丁香网|午夜欧美6666|纯肉无码91视频

yourmail搭建cacti

YourMail 系統(tǒng)安裝簡要流程:操作系統(tǒng)內(nèi)核及版本:Linux 2.6.18centos5.4i386-----------------------------------------------

YourMail 系統(tǒng)安裝簡要流程:

操作系統(tǒng)內(nèi)核及版本:Linux 2.6.18centos5.4i386

---------------------------------------------------------------------------------------------------

軟件安裝前首先要關(guān)閉防火墻和修改/etc/selinux/config這個(gè)安全級(jí)別為disabled

---------------------------------------------------------------------------------------------------

1. 安裝需要以root 用戶登陸系統(tǒng), 從光盤或者是指定的ftp 服務(wù)器上獲得必要的安裝源碼包,及其相關(guān)文件;

2. 執(zhí)行以下兩條命令,創(chuàng)建源碼包的放置目錄,mkdir /install,cd /install,cp 獲得的tar 包文件,到/install這個(gè)目錄下進(jìn)行解壓壓縮包;

3. 首先cd azsd ,執(zhí)行yourmail.sh 這個(gè)腳本,方法為./yourmail.sh然后執(zhí)行syslog.pl;

4. 執(zhí)行ymdepp ,之后執(zhí)行pll (在執(zhí)行過程中,遇到暫停時(shí)候,直接回車一下就可以);

5. 執(zhí)行sqll, 然dbi.pl,

6. 執(zhí)行rpmm

7. 執(zhí)行tpeizz

8. 執(zhí)行apaa

9. 最后執(zhí)行man_x.pl, 根據(jù)腳本的提示信息,輸入您實(shí)際的ip 地址,主機(jī)名,域名信息;

10. 添加如下內(nèi)容到開機(jī)啟動(dòng)

[root@localhostroot ~]#vi/etc/rc.d/rc.local

service iptables stop

yourmail start

/usr/local/httpd/bin/apachectlstart

/usr/local/policyd/autocfg.pl

Cacit 搭建監(jiān)測(cè)系統(tǒng)

掛載企五光盤配置yum 倉庫安裝GCC 環(huán)境

安裝PHP 太多依賴包需要安裝

Zlib libxml freetype libart_lgpl

1:安裝zlib libpng fontconfig jpeg gettext gd

[root@localhostinstall]#tar -zxvf zlib-1.2.3.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/zlib/1.2.3/

[root@localhost1.2.3]#./configure--prefix=/usr/local/zlib

[root@localhost1.2.3]#make

[root@localhost1.2.3]#make install

[root@localhost1.2.3]#echo $?測(cè)試是否正確為0正確

2:安裝libxml

[root@localhostinstall]#tar -zxvf libxml2-2.6.32.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/libxml2-2.6.32/

[root@localhostlibxml2-2.6.32]#./configure--prefix=/usr/local/libxml

[root@localhostlibxml2-2.6.32]#make

[root@localhostlibxml2-2.6.32]#makeinstall

[root@localhostlibxml2-2.6.32]#echo $?

,

3:安裝freetype

[root@localhostinstall]#tar -jxvf freetype-2.3.5.tar.bz2-C /usr/src/

[root@localhostinstall]#cd /usr/src/freetype-2.3.5/

[root@localhostfreetype-2.3.5]#./configure--prefix=/usr/local/freetype

[root@localhostfreetype-2.3.5]#make

[root@localhostfreetype-2.3.5]#makeinstall

[root@localhostfreetype-2.3.5]#echo$?

4:安裝libart_lgpl

[root@localhostinstall]#tar -zxvf libart_lgpl-2.3.17.tar.gz-C /usr/src/

[root@localhostinstall]#cd /usr/src/libart_lgpl-2.3.17/

[root@localhostlibart_lgpl-2.3.17]#./configure--prefix=/usr/local/libart

[root@localhostlibart_lgpl-2.3.17]#make

[root@localhostlibart_lgpl-2.3.17]#makeinstall

[root@localhostlibart_lgpl-2.3.17]#echo$?

5:安裝libpng

[root@localhostinstall]#tar -zxvf libpng-1.2.18.tar.gz -C /usr/src

[root@localhostinstall]#cd /usr/src/libpng-1.2.18/

[root@localhostlibpng-1.2.18]#./configure--prefix=/usr/local/libpng

[root@localhostlibpng-1.2.18]#make

[root@localhostlibpng-1.2.18]#makeinstall

[root@localhostlibpng-1.2.18]#echo$?

6:安裝fontconfig

[root@localhostinstall]#tar -zxvf fontconfig-2.7.0.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/fontconfig-2.7.0/

[root@localhostfontconfig-2.7.0]#./configure--prefix=/usr/local/fontconfig

[root@localhostfontconfig-2.7.0]#make

[root@localhostfontconfig-2.7.0]#makeinstall

[root@localhostfontconfig-2.7.0]#echo$?

7:安裝jpeg

[root@localhostinstall]#tar -zxvf jpeg.v7.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/jpeg-7/

[root@localhostjpeg-7]#./configure--prefix=/usr/local/libjpeg

[root@localhostjpeg-7]#make

[root@localhostjpeg-7]#makeinstall

[root@localhostjpeg-7]#echo$?

8:安裝gettext

[root@localhostinstall]#tar -zxvf gettext-0.16.1.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/gettext-0.16.1/

[root@localhostgettext-0.16.1]#./configure--prefix=/usr/local/gettext

[root@localhostgettext-0.16.1]#make

[root@localhostgettext-0.16.1]#makeinstall

[root@localhostgettext-0.16.1]#echo$?

,

9:安裝gd

[root@localhostinstall]#tar -zxvf gd-2.0.35.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/gd-2.0.35/

[root@localhostgd-2.0.35]#./configure--prefix=/usr/local/libgd--with-zlib=/usr/local/zlib

--with-png=/usr/local/libpng

--with-jpeg=/usr/local/libjpeg

--with-freetype=/usr/local/freetype

--with-libart=/usr/local/libart

--with-gettext=/usr/local/gettext

--with-libxml=/usr/local/libxml

不拷備那幾個(gè)文件make 會(huì)出錯(cuò)

[root@localhostgd-2.0.35]#cp /usr/lib/libattr.*/lib/

[root@localhostgd-2.0.35]#make

[root@localhostgd-2.0.35]#make install

[root@localhostgd-2.0.35]#echo$?

[root@localhost~]#echo "/usr/local/zlib/lib">>/etc/ld.so.conf

[root@localhost~]#echo "/usr/local/freetype/lib">>/etc/ld.so.conf

[root@localhost~]#echo "/usr/local/libjpeg/lib">>/etc/ld.so.conf

[root@localhost~]#echo "/usr/local/libgd/lib">>/etc/ld.so.conf

[root@localhost~]#ldconfig -v

10:安裝curl

[root@localhostinstall]#tar -zxvf curl-7.15.0.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/curl-7.15.0/

[root@localhostcurl-7.15.0]#./configure--prefix=/usr/local/curl

[root@localhostcurl-7.15.0]#make

[root@localhostcurl-7.15.0]#make install

[root@localhostcurl-7.15.0]#echo $?

11:安裝php

[root@localhostinstall]#tar -zxvf php-5.2.13.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/php-5.2.13/

[root@localhostphp-5.2.13]#./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php

--with-apxs2=/usr/local/httpd/bin/apxs

--with-jpeg-dir=/usr/local/libjpeg

--with-png-dir=/usr/local/libpng

--with-gd-dir=/usr/local/libgd

--with-freetype-dir=/usr/local/freetype

--with-zlib-dir=/usr/local/zlib

--with-curl=/usr/local/curl

--with-gettext=/usr/local/gettext

--with-mysql --enable-sockets --enable-mbstring

[root@localhostphp-5.2.13]#make

[root@localhostphp-5.2.13]#make install

[root@localhostphp-5.2.13]#echo $?

,

[root@localhostphp-5.2.13]#cp php.ini-dist /usr/local/php/php.ini添加如下

[root@localhostphp-5.2.13]#vim /usr/local/httpd/conf/httpd.conf398DirectoryIndex index.php index.html index.htm index.cgi

1002LoadModule auth_imap_modulemodules/mod_auth_imap.so1003LoadModule php5_modulemodules/libphp5.so1004AddType application/x-httpd-php.php.phtml

#cd/usr/local/httpd/htdocs/

#mkdircacti

Alias /wmailcust/usr/local/httpd/htdocs/wmailcust

1051Alias /cacti/usr/local/httpd/htdocs/cacti

1052

1053Options None

1054AllowOverride None

1055Order allow,deny

1056Allow from all

1057

四:安裝RRDTool

依賴包:cgilib libart_lgpl

1:安裝cgilib intltool pango cario rrdtool

[root@localhostinstall]#tar -zxvf cgilib-0.5.1.tar.tar -C /usr/src/

[root@localhostinstall]#cd /usr/src/cgilib-0.5.1/

[root@localhostcgilib-0.5.1]#./configure--prefix=/usr/local/cgilib

[root@localhostcgilib-0.5.1]#make

[root@localhostcgilib-0.5.1]#make install

[root@localhostcgilib-0.5.1]#echo $?

2:安裝glib

[root@localhostinstall]#tar -zxvf glib-2.25.9.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/glib-2.25.9/

[root@localhostglib-2.25.9]#./configure--prefix=/usr/local/glib

[root@localhostglib-2.25.9]#make

[root@localhostglib-2.25.9]#makeinstall

[root@localhostglib-2.25.9]#echo$?

2

3:安裝pixman

[root@localhostinstall]#tar -jxvf pixman-0.15.20.tar.bz2-C /usr/src/

[root@localhostinstall]#cd /usr/src/pixman-0.15.20/

[root@localhostpixman-0.15.20]#./configure--prefix=/usr/local/pixman

[root@localhostpixman-0.15.20]#make

[root@localhostpixman-0.15.20]#makeinstall

[root@localhostpixman-0.15.20]#echo$?

4:安裝intltool

[root@localhostinstall]#yum -y install perl*

[root@localhostinstall]#tar -zxvf intltool-0.40.6.tar.gz -C /usr/src/

,

[root@localhostinstall]#cd /usr/src/intltool-0.40.6/

[root@localhostintltool-0.40.6]#./configure--prefix=/usr/local/intltool

[root@localhostintltool-0.40.6]#make

[root@localhostintltool-0.40.6]#makeinstall

[root@localhostintltool-0.40.6]#echo$?

5:安裝rrdtool

[root@localhostinstall]#tar -zxvf rrdtool-1.2.27.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/rrdtool-1.2.27/

[root@localhostrrdtool-1.2.27]#./configure--prefix=/usr/local/rrdtool

[root@localhostrrdtool-1.2.27]#make

[root@localhostrrdtool-1.2.27]#makeinstall

[root@localhostrrdtool-1.2.27]#echo$?

[root@localhostrrdtool-1.2.27]#ln -s /usr/local/rrdtool/bin/*/usr/local/bin/

[root@localhostrrdtool-1.2.27]#cp /usr/local/libpng/lib/libpng12.so.0/usr/lib

cp:overwrite `/usr/lib/libpng12.so.0'?y

[root@localhostrrdtool-1.2.27]#cd /usr/local/rrdtool/share/rrdtool/examples/

[root@localhostexamples]#./stripes.pl

This script has created stripes.png in the current directory

This demonstrates the use of the TIME and RPN operators

[root@localhostexamples]#ls

4charts.pl cgi-demo.cgi perftest.pl random.rrd stripes.pl

bigtops.pl minmax.pl piped-demo.pl shared-demo.pl stripes.png

[root@localhostexamples]#cp stripes.png /usr/local/httpd/htdocs/

測(cè)試rrdtool 是否正確如果正確會(huì)出現(xiàn)圖片五:安裝NET-SNMP

[root@localhostinstall]#tar -zxvf net-snmp-5.5.tar.gz -C /usr/src

[root@localhostinstall]#cd /usr/src/net-snmp-5.5/

[root@localhostnet-snmp-5.5]#./configure--prefix=/usr/local/net-snmp--enable-developer

編譯過程中會(huì)回答幾個(gè)問題,由于目前大部分設(shè)備支持SNMPV2,所以此處建設(shè)選擇v2Default version of SNMP to use (3):2

System Contact Information (root@):scglinux@163.com

System Location (Unknown):beijing

Location to write logfile (/var/log/snmpd.log):

Location to write persistent information (/var/net-snmp):

[root@localhostnet-snmp-5.5]#make

[root@localhostnet-snmp-5.5]#make install

[root@localhostnet-snmp-5.5]#echo $?

[root@localhostnet-snmp-5.5]#cp python/netsnmp/tests/snmpd.conf/etc/

[root@localhostnet-snmp-5.5]#ln -s /usr/local/net-snmp/sbin/*/usr/local/sbin/

[root@localhostnet-snmp-5.5]#ln -s /usr/local/net-snmp/bin/*/usr/local/bin/

[root@localhostnet-snmp-5.5]#/usr/local/sbin/snmpd-c /etc/snmpd.conf

[root@localhostnet-snmp-5.5]#echo "/usr/local/sbin/snmpd-c /etc/snmpd.conf">>/etc/rc.local

[root@localhostnet-snmp-5.5]#netstat -lnput |grep snmp

udp 000.0.0.0:1610.0.0.0:*手動(dòng)啟動(dòng)開機(jī)啟動(dòng)8434/snmpd

,

[root@localhostnet-snmp-5.5]#snmpwalk -v 1-c public localhost SNMPv2-MIB::system

SNMPv2-MIB::sysDescr.0=STRING:Linux localhost 2.6.18-164.el5#1SMP Tue Aug 1815:51:54EDT 2009i686SNMPv2-MIB::sysObjectID.0=OID:SNMPv2-SMI::org

DISMAN-EVENT-MIB::sysUpTimeInstance=Timeticks:(8347)0:01:23.47

SNMPv2-MIB::sysContact.0=STRING:G. S. Marzot

SNMPv2-MIB::sysName.0=STRING:localhost

SNMPv2-MIB::sysLocation.0=STRING:beijing

SNMPv2-MIB::sysORLastChange.0=Timeticks:(0)0:00:00.00

SNMPv2-MIB::sysORID.1=OID:SNMP-MPD-MIB::snmpMPDMIBObjects.3.1.1

SNMPv2-MIB::sysORID.2=OID:SNMP-USER-BASED-SM-MIB::usmMIBCompliance

SNMPv2-MIB::sysORID.3=OID:SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance

SNMPv2-MIB::sysORID.4=OID:SNMPv2-MIB::snmpMIB

SNMPv2-MIB::sysORID.5=OID:TCP-MIB::tcpMIB

SNMPv2-MIB::sysORID.6=OID:IP-MIB::ip

SNMPv2-MIB::sysORID.7=OID:UDP-MIB::udpMIB

SNMPv2-MIB::sysORID.8=OID:SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup

SNMPv2-MIB::sysORDescr.1=STRING:The MIB for Message Processing and Dispatching.

SNMPv2-MIB::sysORDescr.2=STRING:The MIB for Message Processing and Dispatching.

SNMPv2-MIB::sysORDescr.3=STRING:The SNMP Management Architecture MIB.

SNMPv2-MIB::sysORDescr.4=STRING:The MIB module for SNMPv2entities

SNMPv2-MIB::sysORDescr.5=STRING:The MIB module for managing TCP implementations

SNMPv2-MIB::sysORDescr.6=STRING:The MIB module for managing IP and ICMP implementations SNMPv2-MIB::sysORDescr.7=STRING:The MIB module for managing UDP implementations

SNMPv2-MIB::sysORDescr.8=STRING:View-based Access Control Model for SNMP.

SNMPv2-MIB::sysORUpTime.1=Timeticks:(0)0:00:00.00

SNMPv2-MIB::sysORUpTime.2=Timeticks:(0)0:00:00.00

SNMPv2-MIB::sysORUpTime.3=Timeticks:(0)0:00:00.00

SNMPv2-MIB::sysORUpTime.4=Timeticks:(0)0:00:00.00

SNMPv2-MIB::sysORUpTime.5=Timeticks:(0)0:00:00.00

SNMPv2-MIB::sysORUpTime.6=Timeticks:(0)0:00:00.00

SNMPv2-MIB::sysORUpTime.7=Timeticks:(0)0:00:00.00

SNMPv2-MIB::sysORUpTime.8=Timeticks:(0)0:00:00.00

[root@localhostnet-snmp-5.5]#

上面的顯示表示net-snmp 成功安裝

安裝:Cacti 中文

[root@localhost~]#tar -zxvf cacti-0.8.7b-cn-utf8.tar.gz -C /usr/local/httpd/htdocs/

[root@localhost~]#cd /usr/local/httpd/htdocs/

[root@localhosthtdocs]#mv cacti-0.8.7b-cn-utf8/cacti

[root@localhosthtdocs]#vim cacti/include/config.php

$database_type="mysql";

$database_default="benet";

$database_hostname="localhost";

$database_username="cacti";

$database_password="cacti";

$database_port="3306";

[root@localhosthtdocs]#groupadd cacti

[root@localhosthtdocs]#useradd -g cacti cacti

[root@localhosthtdocs]#chown -R cacti /usr/local/httpd/htdocs/cacti/rra

[root@localhosthtdocs]#chown -R cacti /usr/local/httpd/htdocs/cacti/log

,

[root@localhosthtdocs]#chgrp -R cacti /usr/local/httpd/htdocs/cacti/

[root@localhosthtdocs]#su -cacti

[cacti@localhost~]$crontab -e

*/1****/usr/local/php/bin/php/usr/local/httpd/htdocs/cacti/poller.php>/dev/null2>&1

[root@localhostinstall]#tar -zxvf cacti-cactid-0.8.6k.tar.gz -C /usr/src/

[root@localhostinstall]#cd /usr/src/cacti-cactid-0.8.6k/

[root@localhostcacti-cactid-0.8.6k]#./configure--with-mysql --with-snmp=

/usr/local/net-snmp--prefix=/usr/local/cactid

[root@localhostcacti-cactid-0.8.6k]#make

[root@localhostcacti-cactid-0.8.6k]#make install

[root@localhostcacti-cactid-0.8.6k]#echo $?

[root@localhostcacti-cactid-0.8.6k]#cp cactid cactid.conf /usr/local/cactid/

[root@localhostcacti-cactid-0.8.6k]#vim /usr/local/cactid/cactid.conf

DB_Hostlocalhost

DB_Databasebenet

DB_Usercacti

DB_Pass

DB_Portcacti 3306

[root@localhosthtdocs]#/usr/local/mysql/bin/mysql-u root -p

Enter password:123456

mysql>create database benet default character set utf8;

Query OK, 1row affected (0.00sec)

mysql>grant all on benet.*to cacti@localhostidentified by "cacti";

Query OK, 0rows affected (0.00sec)

mysql>quit

寫入數(shù)據(jù)庫

[root@localhost~]#/usr/local/mysql/bin/mysql-u root -p benet

acti/cacti.sql

Enter password:123456

建立連接

[root@localhost~]#ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0/usr/lib/libmysqlclient.so.15

[root@localhost~]#chmod 777/usr/local/httpd/htdocs/cacti/log

[root@localhost~]#chmod 777/usr/local/httpd/htdocs/cacti/rra

修改php.ini 文件

[root@localhost~]#vim /usr/local/php/php.ini

Defines the default timezone used by the date functions

;date.timezone =PRC

安裝cacti-spine

[root@localhostinstall]#tar -zxvf cacti-spine-0.8.7g.tar.gz -C /usr/src

[root@cactiinstall]#cp unified_issues.patch/usr/src/cacti-spine-0.8.7g/

[root@cactiinstall]#cd/usr/src/cacti-spine-0.8.7g/

[root@cacticacti-spine-0.8.7g]#patch-p1-N

[root@cacticacti-spine-0.8.7g]#./configure--prefix=/usr/local/cacti-spine--with-snmp=/usr/local/net-snmp--with-mysql

[root@cacticacti-spine-0.8.7g]#make

[root@cacticacti-spine-0.8.7g]#makeinstall

[root@cacticacti-spine-0.8.7g]#echo$?

標(biāo)簽: