HOWTO Install Zabbix 1.4.2 from source (usefull for all systems)
2008-12-18 15:02
525 查看
Install Zabbix 1.4.2 from source !!!
1)
ls /tmp/installs
curl-7.16.3.tar.gz libxml2-sources-2.6.29.tar.gz
fping-2.4b2.tar.gz mysql-5.0.41.tar.gz
gd-2.0.35.tar.gz net-snmp-5.4.tar.gz
httpd-2.2.4.tar.gz perl-5.8.8.tar.gz
jpegsrc.v6b.tar.gz php-5.2.3.tar.gz
libiconv-1.11.tar.gz prezabbix-1.4.2.tar.gz
libpng-2.1.18.tar.gz zlib-1.2.3.tar.gz
2)
cd /temp/installs
tar -xvpf curl-7.16.3.tar.gz
tar -xvpf libxml2-sources-2.6.29.tar.gz
tar -xvpf fping-2.4b2.tar.gz
tar -xvpf mysql-5.0.41.tar.gz
tar -xvpf gd-2.0.35.tar.gz
tar -xvpf net-snmp-5.4.tar.gz
tar -xvpf httpd-2.2.4.tar.gz
tar -xvpf perl-5.8.8.tar.gz
tar -xvpf jpegsrc.v6b.tar.gz
tar -xvpf php-5.2.3.tar.gz
tar -xvpf libiconv-1.11.tar.gz
tar -xvpf prezabbix-1.4.2.tar.gz
tar -xvpf libpng-2.1.18.tar.gz
tar -xvpf zlib-1.2.3.tar.gz
3)
#cd ../perl-5.8.8
#./configure.gnu --prefix=/usr/local && make && make install
4)
#cd ../zlib-1.2.3
#./configure --prefix=/usr/local && make && make install
5)
#cd ../libpng-2.1.18
#./configure --prefix=/usr/local && make && make install
6)
#cd ../jpeg-6b
#./configure --prefix=/usr/local --enable-shared --enable-static && make && make install
7)
#cd ../gd-2.0.35
#./configure --prefix=/usr/local --x-includes=/usr/local/include --x-libraries=/usr/local/lib && make && make install
8) cd ../httpd-2.2.4
#./configure --preifx=/usr/local/apache2 --enable-so && make && make install
#ee /usr/local/apache2/conf/httpd.conf: DirectoryIndex index.php index.html
#ee /usr/local/apache2/conf/httpd.conf: Addtype application/x-httpd-php .php
9)
#adduser username=mysql shell=nologin password=mysql
#cd mysql-5.0.41
#./configure --prefix=/usr/local/mysql --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disable-shared --enable-assembler --without-bench --without-man --without-docs --without-debug --with-berkeley-db --with-charset=koi8r --with-extra-charsets=none --localstatedir=/usr/local/mysql/data --with-mysqld-user=mysql --disable-large-files --with-libwrap && make && make install
#mkdir /usr/local/mysql/data
#/usr/local/mysql/bin/mysql_install_db
#chown -R root:mysql /usr/local/mysql
#chown -R mysql:mysql /usr/local/mysql/data
#chmod -R 755 /usr/local/mysql/data
9)
#cd ../libxml2-2.6.29
#./configure --prefix=/usr/local --with-zlib && make && make install
#cd ../libiconv-1.11
#./configure --prefix=/usr/local && make && make install
10)
#cd ../php-5.2.3
#./configure --with-mysql=/usr/local/mysql --enable-bcmath --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib --with-apxs2=/usr/local/apache2/bin/apxs --disable-cgi --disable-ipv6 && make && make install
#cp php.ini-recommended /usr/local/lib/php.ini
#ee /usr/local/lib/php.ini
doc_root = "/usr/local/apache2/htdocs/"
max_execution_time = 300
date.timezone = Europe/Moscow
11)
#cd ../net-snmp-5.4
#./configure --prefix=/usr/local --disable-debugging --disable-manuals && make && make install
12)
#cd ../curl-7.16.3
#./configure --prefix=/usr/local --disable-ipv6 --without-ssl && make && make install
13)
#adduser (username=zabbix shell=nologin password=zabbix)
#cp /usr/local/lib/libcurl* /usr/lib/
#cd ../zabbix-1.4.2
#./configure --enable-server --enable-agent --enable-static --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl=/usr/local/bin/curl-config && make && make install
#mkdir /etc/zabbix
#cp ./misc/conf/zabbix_server.conf /etc/zabbix/zabbix_server.conf
#chmod –R 700 /etc/zabbix
#chown –R zabbix:zabbix /etc/zabbix
#rm -rf /usr/local/apache2/htdocs/*
#cp -rf ./frontends/php/* /usr/local/apache2/htdocs/
#chmod -R 755 /user/local/apache2/htdocs
#ee /etc/zabbix/zabbix_server.conf
FpingLocation=/usr/local/sbin/fping
PingerFrequency=30
14)
#cd ../fping-2.4b2
#./configure && make && make install
#chown root:zabbix /usr/local/sbin/fping
#chmod ug+s /usr/local/sbin/fping
-------------------------------------------------------------------------------------------------
15)
#/usr/local/mysql/bin/mysqld_safe --user=mysql &
#/usr/local/mysql/bin/mysql -u root
mysql> create database zabbix;
mysql> grant all on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> exit;
# cd create/schema
#/usr/local/mysql/bin/mysql -u zabbix --password='zabbix' zabbix < mysql.sql
# cd ../data
#/usr/local/mysql/bin/mysql -u zabbix --password='zabbix' zabbix < data.sql
#/usr/local/mysql/bin/mysql -u zabbix --password='zabbix' zabbix < images_mysql.sql
Run you browser address http://serverip/, follow instructions. (Mysql -> localhost, base -> zabbix, username -> zabbix, password -> zabbix). Save config zabbix.conf.php to /usr/local/apache2/htdocs/conf/
#chmod -R 755 /usr/local/apache2/htdocs/conf/zabbix.conf.php
Login: admin
1)
ls /tmp/installs
curl-7.16.3.tar.gz libxml2-sources-2.6.29.tar.gz
fping-2.4b2.tar.gz mysql-5.0.41.tar.gz
gd-2.0.35.tar.gz net-snmp-5.4.tar.gz
httpd-2.2.4.tar.gz perl-5.8.8.tar.gz
jpegsrc.v6b.tar.gz php-5.2.3.tar.gz
libiconv-1.11.tar.gz prezabbix-1.4.2.tar.gz
libpng-2.1.18.tar.gz zlib-1.2.3.tar.gz
2)
cd /temp/installs
tar -xvpf curl-7.16.3.tar.gz
tar -xvpf libxml2-sources-2.6.29.tar.gz
tar -xvpf fping-2.4b2.tar.gz
tar -xvpf mysql-5.0.41.tar.gz
tar -xvpf gd-2.0.35.tar.gz
tar -xvpf net-snmp-5.4.tar.gz
tar -xvpf httpd-2.2.4.tar.gz
tar -xvpf perl-5.8.8.tar.gz
tar -xvpf jpegsrc.v6b.tar.gz
tar -xvpf php-5.2.3.tar.gz
tar -xvpf libiconv-1.11.tar.gz
tar -xvpf prezabbix-1.4.2.tar.gz
tar -xvpf libpng-2.1.18.tar.gz
tar -xvpf zlib-1.2.3.tar.gz
3)
#cd ../perl-5.8.8
#./configure.gnu --prefix=/usr/local && make && make install
4)
#cd ../zlib-1.2.3
#./configure --prefix=/usr/local && make && make install
5)
#cd ../libpng-2.1.18
#./configure --prefix=/usr/local && make && make install
6)
#cd ../jpeg-6b
#./configure --prefix=/usr/local --enable-shared --enable-static && make && make install
7)
#cd ../gd-2.0.35
#./configure --prefix=/usr/local --x-includes=/usr/local/include --x-libraries=/usr/local/lib && make && make install
8) cd ../httpd-2.2.4
#./configure --preifx=/usr/local/apache2 --enable-so && make && make install
#ee /usr/local/apache2/conf/httpd.conf: DirectoryIndex index.php index.html
#ee /usr/local/apache2/conf/httpd.conf: Addtype application/x-httpd-php .php
9)
#adduser username=mysql shell=nologin password=mysql
#cd mysql-5.0.41
#./configure --prefix=/usr/local/mysql --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disable-shared --enable-assembler --without-bench --without-man --without-docs --without-debug --with-berkeley-db --with-charset=koi8r --with-extra-charsets=none --localstatedir=/usr/local/mysql/data --with-mysqld-user=mysql --disable-large-files --with-libwrap && make && make install
#mkdir /usr/local/mysql/data
#/usr/local/mysql/bin/mysql_install_db
#chown -R root:mysql /usr/local/mysql
#chown -R mysql:mysql /usr/local/mysql/data
#chmod -R 755 /usr/local/mysql/data
9)
#cd ../libxml2-2.6.29
#./configure --prefix=/usr/local --with-zlib && make && make install
#cd ../libiconv-1.11
#./configure --prefix=/usr/local && make && make install
10)
#cd ../php-5.2.3
#./configure --with-mysql=/usr/local/mysql --enable-bcmath --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib --with-apxs2=/usr/local/apache2/bin/apxs --disable-cgi --disable-ipv6 && make && make install
#cp php.ini-recommended /usr/local/lib/php.ini
#ee /usr/local/lib/php.ini
doc_root = "/usr/local/apache2/htdocs/"
max_execution_time = 300
date.timezone = Europe/Moscow
11)
#cd ../net-snmp-5.4
#./configure --prefix=/usr/local --disable-debugging --disable-manuals && make && make install
12)
#cd ../curl-7.16.3
#./configure --prefix=/usr/local --disable-ipv6 --without-ssl && make && make install
13)
#adduser (username=zabbix shell=nologin password=zabbix)
#cp /usr/local/lib/libcurl* /usr/lib/
#cd ../zabbix-1.4.2
#./configure --enable-server --enable-agent --enable-static --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl=/usr/local/bin/curl-config && make && make install
#mkdir /etc/zabbix
#cp ./misc/conf/zabbix_server.conf /etc/zabbix/zabbix_server.conf
#chmod –R 700 /etc/zabbix
#chown –R zabbix:zabbix /etc/zabbix
#rm -rf /usr/local/apache2/htdocs/*
#cp -rf ./frontends/php/* /usr/local/apache2/htdocs/
#chmod -R 755 /user/local/apache2/htdocs
#ee /etc/zabbix/zabbix_server.conf
FpingLocation=/usr/local/sbin/fping
PingerFrequency=30
14)
#cd ../fping-2.4b2
#./configure && make && make install
#chown root:zabbix /usr/local/sbin/fping
#chmod ug+s /usr/local/sbin/fping
-------------------------------------------------------------------------------------------------
15)
#/usr/local/mysql/bin/mysqld_safe --user=mysql &
#/usr/local/mysql/bin/mysql -u root
mysql> create database zabbix;
mysql> grant all on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> exit;
# cd create/schema
#/usr/local/mysql/bin/mysql -u zabbix --password='zabbix' zabbix < mysql.sql
# cd ../data
#/usr/local/mysql/bin/mysql -u zabbix --password='zabbix' zabbix < data.sql
#/usr/local/mysql/bin/mysql -u zabbix --password='zabbix' zabbix < images_mysql.sql
Run you browser address http://serverip/, follow instructions. (Mysql -> localhost, base -> zabbix, username -> zabbix, password -> zabbix). Save config zabbix.conf.php to /usr/local/apache2/htdocs/conf/
#chmod -R 755 /usr/local/apache2/htdocs/conf/zabbix.conf.php
Login: admin
相关文章推荐
- How To Install LAMP From Source Code
- How to install plugin for Eclipse from .zip
- how to build and install vim from source code
- How To Use RMAN CONVERT DATABASE on Source Host for Cross Platform Migration
- How to install PostGIS 2.0 on Ubuntu 11.10 (oneiric) from source
- geeksforgeeks Count all possible walks from a source to a destination with exactly k edges
- How to build ubuntu package from source? Useful for debugging ubuntu packages
- [fw]How to use DISM to install a hotfix from within Windows
- Unix: How to Install BerkeleyDB From Source
- How to use the Install from Media feature to promote Windows Server 2003-based domain controllers
- how to install nginx from the source
- How to use eclipse to debug android source(from google official site)
- How to Install Apache CouchDB on CentOS 6 (from Source and EPEL)
- How to use the HTML source for debugging issues
- 【转】How to build and install PHP 5.6.9 from source on Ubuntu 14.04 VPS
- How to Install and Configure Nginx from Source on centos--转
- java - How to install and use db4o for Android? - Stack Overflow
- how to install OpenFetion using source, not deb, on Ubuntu
- how to download document from SCRIBD for free?
- Python:use Freeze to compile executables for Unix systems.