zabbix install and configuration

Install required software:LAMP(linux,apache,mysql,php)
 
Install apache:yum -y install httpd
Install mysql:yum -y install mysql-server mysql-devel
Install php:yum -y install php php-ldap
 
Install the php-gd graphics library: yum -y install php-gd
 
add a user for zabbix:
 
useradd  zabbix -s /sbin/nologin
 
Start the mySQL server:service mysql start
 
add mysql to the startup scripts: chkconfig mysqld on
 
change mySQL root password:mysqladmin -u root password 'yourpassword string'
 
create the zabbix database:mysql -uroot -p
 
create database zabbix;
 
grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'password';
download the zabbix sourece and unzip:
 
wget http://
 
tar xzvf zabbix-xxx.tar.gz
 
initialise the zabbix database:
 
mysql -uzabbix -ppassword zabbix < mysql.sql
 
mysql -uzabbix -ppassword zabbix < data.sql
 
mysql -uzabbix -ppassword zabbix < p_w_picpaths_mysql.sql
相關文章
相關標籤/搜索