zabbix部署官网文档:
https://www.zabbix.com/download
一,zabbix部署需要lamp环境:
1,apache安装
yum install httpd libxml2-devel net-snmp-devel libcurl-devel
常见问题:启动apache的时候,会有输出如下:
Could not reliably determine the server's ully qualified domain name, using 127.0.0.1 for ServerName
这个问题是因为不确认主机名是否正确。
处理方法:1),可以不做任何处理;2)指定ServerName x.x.x.x:port
启动并加开机自启: /etc/init.d/httpd start &&chkconfig httpd on
2, Mysql安装
建议安装MySQL5.6 centos6 默认安装mysql是5.1 不是很稳定 性能也没有MySQL5.6好
下载rpm源及安装:
#rpm -ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
# yum install -y mysql-server mysql-devel
vim /etc/my.cnf
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8
启动数据库
#service mysqld start
MySQL安全设置:
# mysql_secure_installation
Enter current password for root (enter for none): #直接回车
OK, successfully used password, moving on...