ubuntu和centos安裝RRDTool——cacti前置技能

來源:互聯網
上載者:User

標籤:

 

Installing Pre-Requisites 

Note that RRDTool 1.0.x versions included all dependancies, but 1.2.x versions require you to install these dependancies before installing RRDTool. 

For RedHat 9, you‘ll need to install the following RPMs from the RH9 CD:

 

  • libart_lgpl-2.3.11-2.i386.rpm
  • libart_lgpl-devel-2.3.11-2.i386.rpm
  • zlib-1.1.4-8.i386.rpm
  • zlib-devel-1.1.4-8.i386.rpm
  • libpng-1.2.2-16.i386.rpm
  • libpng-devel-1.2.2-16.i386.rpm
  • freetype-2.1.3-6.i386.rpm
  • freetype-devel-2.1.3-6.i386.rpm

You‘ll also need to install cgilib-devel, and a RH9 RPM for cgi-lib-devel can be found on the cgilib RPM packages page. 

Each of the above RPMs can be installed using the following syntax: 

rpm -Uvh rpmname.rpm



Installing RRDTool on Ubuntu 
On Ubuntu distributions of linux, RRDTool can be installed by running the following: 

apt-get install librrds-perl rrdtool

 

Msnually Installing RRDTool From Source

To manually install RRDTool from the source code, SCP the tarball into the /usr/src directory on your linux box. From a command prompt, change into the /usr/src directory, and un-tar the tarball: 

cd /usr/srctar -xzvf rrdtool-1.2.12.tar.gz


Change into the newly created directory: 

cd rrdtool-1.2.12


Compile and install RRDTool: 

./configure --disable-tclmakemake install


TCL is disabled, as compilation of some of the TCL components for RRDTool 1.2.12 will otherwise fail on RedHat 9.
Run ./configure --help for more information on configuration options. 

The default installation location is /usr/local/rrdtool-VERSION, so make some symbolic links to the executables: 

ln -sf /usr/local/rrdtool-1.2.12/bin/rrdtool /usr/bin/rrdtoolln -sf /usr/local/rrdtool-1.2.12/bin/rrdupdate /usr/bin/rrdupdateln -sf /usr/local/rrdtool-1.2.12/bin/rrdcgi /usr/bin/rrdcgi


The RRDTool Perl library simplifies things when using RRDTool from a Perl script, so to compile and install the Perl library for RRDTool: 

make site-perl-install



Creating Data Directories for RRDTool 
Create a directory for RRDTool databases, and a directory for the web images which it‘ll generate: 

mkdir /var/lib/rrdmkdir /var/www/html/rrdtool

 

ubuntu和centos安裝RRDTool——cacti前置技能

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.