zabbix2.0.3安装
最小化安装系统Centos 5.4 x64通过yum下载安装包,建立LAMP环境:#yum install mysql-server httpd php下载其他的安装包:#yum install mysql-devel gcc net-snmp-devel curl-devel perl-DBI php-gd php-mysql php-bcmath php-mbstring php-xml数据库准备启动数据库:#service mysqld start修改数据库root密码为root(原密码为空):#mysqladmin –u root-p password root
创建zabbix用户# groupadd zabbix# useradd -g zabbix -M zabbix
下载zabbix包www.zabbix.com下载cd /data/tools# mkdir zabbixwget http://www.zabbix.com/downloads/ ... nux2_6.amd64.tar.gz agents包下载wget http://nchc.dl.sourceforge.net/p ... zabbix-2.0.2.tar.gz zabbix主程序包下载# tar zxf zabbix-2.0.2.tar.gz
安装zabbix# cd zabbix-2.0.2# ./configure --with-mysql --with-net-snmp --with-libcurl --enable-server --enable-agent --enable-proxy --prefix=/usr/local/zabbix有显示:************************************************************ Now run 'make install' ** ** Thank you for using Zabbix! ** <http://www.zabbix.com> ************************************************************#说明成功# make install# echo $?0
启动服务# cd sbin/# ./zabbix_server # service httpd start# chkconfig --level 3 httpd on# chkconfig --level 3 mysqld on# service mysqld start# ./zabbix_agent# ./zabbix_proxy
配置apache中的zabbix项目# cd /data/tools/zabbix/zabbix-2.0.2/# cd frontends/# mv php/ /var/www/html/zabbix# chown -R zabbix:zabbix /var/www/html/zabbix/
配置php# vi /etc/php.ini max_execution_time = 300max_input_time = 300memory_limit = 128M#在初始配置时,会有提示。
重启apache# service httpd restart
配置mysqlmysql> update user set passwork=password('123456') where user='root';mysql> create database zabbix character set utf8;grant ALL on zabbix.* to zabbix@'%' identified by '123456';mysql> flush privileges;mysql> exit#给zabbix库导入数据(数据导入时有先后顺序)# cd /data/tools/zabbix-2.0.2/# cd database/mysql/# mysql -h localhost -uroot -p'123456' zabbix <schema.sql# mysql -h localhost -uroot -p'123456' zabbix <images.sql# mysql -h localhost -uroot -p'123456' zabbix <data.sql
WEB访问:http://192.168.48.133/zabbix/进入初始配置向导:步骤1You should see the first screen of the frontend installation wizard.您应该看到的第一个屏幕前端安装向导。
< !---->
步骤2:Make sure that all software prerequisites are met.确保所有软件先决条件得到满足。
< !---->
步骤3:Enter details for connecting to the database. Zabbix database must already be created.输入连接数据库的详细信息。Zabbix数据库必须已经被创建。
< !----><!---->
步骤4:Enter Zabbix server details.输入Zabbix服务器的细节。
< !----><!---->
步骤5:Review a summary of settings.回顾总结设置。
< !---->
步骤6:Download the configuration file and place it under conf/.下载配置文件,并将其置于conf /。
< !----><!---->
< !----><!---->
步骤7:Finish the installation.完成安装。
步骤8:Zabbix frontend is ready! The default user name is Admin, password zabbix.Zabbix前端是准备好了!默认的用户名是Admin,密码zabbix。
找到好贴不容易,我顶你了,谢了 看尽天下A片,心中自然无码~ 睡眠是一门艺术——谁也无法阻挡我追求艺术的脚步! 不错不错,楼主您辛苦了。。。 路过,学习下 爱护环境,人人有病。
页:
[1]