| Required | |
| PHP version | 5.3.0 |
| PHP option memory_limit | 128M |
| PHP option post_max_size | 16M |
| PHP option upload_max_filesize | 2M |
| PHP option max_execution_time | 300 |
| PHP option max_input_time | 300 |
| PHP time zone | |
| PHP databases support | |
| PHP bcmath | |
| PHP mbstring | |
| PHP sockets | |
| PHP gd | 2.0 |
| PHP gd PNG support | |
| PHP gd JPEG support | |
| PHP gd FreeType support | |
| PHP libxml | 2.6.15 |
| PHP xmlwriter | |
| PHP xmlreader | |
| PHP ctype | |
| PHP session | |
| PHP session auto start | off |
| PHP gettext |
1、在已有的LAMP或者LNMP的基础上安装zabbix,安装一些依赖包:
1 | yum -y install mysql-devel libcurl-devel net-snmp-devel |
2、添加用户:
1 2 | groupadd zabbixuseradd zabbix -g zabbix |
3、创建数据库,添加授权账号
1 2 | create database zabbix character set utf8;grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; |
4、编译安装zabbix
1 2 3 4 5 | tar zxf zabbix-2.2.0.tar.gzcd zabbix-2.2.0./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurlmake install |
5、导入数据库
1 2 3 | mysql -uzabbix -pzabbix -hlocalhost zabbix < database/mysql/schema.sqlmysql -uzabbix -pzabbix -hlocalhost zabbix < database/mysql/images.sqlmysql -uzabbix -pzabbix -hlocalhost zabbix < database/mysql/data.sql |
6、修改配置文件