rhel5的檢測軟體搭建

來源:互聯網
上載者:User

awstats的搭建 (linux5.4)
掛載光碟片
mount /dev/cdrom /media
cd  /media/Server
rpm  -ivh  php-pdo-[tab]  php-mysql-[tab]  php-gd-[tab] php-mbstring-[tab]
 
修改ftp
vi  /etc/vsftpd/vsftpd.conf
       添加  chroot_local_user=YES
service  vsftpd  start
chkconfig  vsftpd  on
建立使用者,上傳軟體
adduser  up
passwd  up
jia
jia
 
解壓編譯
cd  /home/up
ls
tar  -zxf  awstats-6.9.tar.gz
mv  awstats-6.9  /usr/local/awstats
cd /usr/local/awstats/tools
./awstats_configure.pl
/etc/httpd/conf/httpd.conf
Y
www.jia.com
mkdir  /var/lib/awstats
vi  /etc/awstats/awstats.www.jia.com.conf
修改 LogFile=”/var/log/httpd/access_log”
 
重新整理
perl /usr/local/awstats/wwwroot/cgi-bin/aestats.pl –update-config=www.jia.com
任務計劃
crontab  -e
*/5 *** * perl /usr/local/awstats/wwwroot/cgi-bin/awstats.pl –update-config=www.jia.com
 
網頁瀏覽路徑
service  httpd  start
chkconfig  httpd  on
http://192.168.1.3/awstats/awstats.pl?config=www.jia.com
 
 
cacti的搭建
cd  /home/up/
ls
rpm  -ivh  net-snmp-*  lm_sensors-[tab]   (上傳檔案)
vi  /etc/snmp/snmpd.conf
41行  default後改名 jia
62行  exact 後改名 all
85行  view前去除#
service  snmpd  start
chkconfig  snmpd  on
 
安裝必要軟體包
cd  /media/Server
rpm  -ivh  libpng-devel-[tab]  libart_lgpl-devel-[tab]  freetype-devel-[tab]
cd  /home/up
tar  -zxf  rrdtool-[tab]
cd  rrdtool-[tab]
./configure –prefix=/usr/local  ;make  ;make  install
 
cd  /var/www/html/
tar  -zxf  /home/up/cacti-[tab]
ls
mv  cacti-[tab]  cacti
adduser  cactiuser
chown  -R  cactiuser.cactiuser  cacti/
 
建立資料庫
service  mysqld  start
chkconfig  mysqld  on
mysql
        create  database  cactidb  default  character  set  utf8;
        exit
mysql  cactidb  <  cacti/cacti.sql
cd  /var/www/html/cacti/
vi  include/config.php
     修改  $database_default = “cactidb”;
                     -username = “root”;
                     -password = “”;
重新整理
php  /var/www/html/cacti/poller.php
任務計劃
crontab  -e
*/5  * * * *  php  /var/www/html/cacti/poller.php
 
ntop的搭建
安裝必要的軟體包
cd  /media/Service
rpm  -ivh  libpcap-devel-[tab]
 
編譯
cd  /media/up
tar  -zxf  ntop-[tab]
cd  ntop-[tab]
./autogen.sh  --with-tcpwrap  ;make  ;make  install
 
網卡綁定
ntop  -A
ntop  -d  -I eth0

作者“賈曉陽”

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.