分类: LINUX
2017-10-10 16:45:47
服务端安装
#wget %20Latest%20Stable/3.0.1/zabbix-3.0.1.tar.gz
#rpm -Uvh
#yum install httpd php54w php54w-gd php54w-mbstring php54w-bcmath php54w-xmlwriter php54w-mysql
#yum install mysql-server mysql-devel net-snmp-devel libxml2-devel OpenIPMI-devel libssh2-devel fping curl-devel
#wget
#tar xf iksemel-1.4.tar.gz
#cd iksemel-1.4
#./configure
#make && make install
#wget https://curl.haxx.se/download/curl-7.20.0.tar.gz --no-check-certificate
#tar xf curl-7.20.0.tar.gz
#cd curl-7.20.0
#./configure --without-libssh2
#make && make install
#mv /usr/lib64/libcurl.so.4 /usr/lib64/libcurl.so.4_bak
#ln -s /usr/local/lib/libcurl.so.4.2.0 /usr/lib64/libcurl.so.4
#mv /usr/bin/curl /usr/bin/curl_7.19
# ln -s /usr/local/bin/curl /usr/bin/curl
安装zabbix
#useradd zabbix
#./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 --prefix=/usr/local/zabbix --with-ssh2 --with-openipmi
#make insatll
#cp frontends /var/www/html/zabbix
#cd /var/www/html/zabbix
#wget
#patch -Np0
安装过程中数据脚本要手动导入
zabbix-3.0.1/database/mysql
# mysql -uroot -p123 zabbix < schema.sql
# mysql -uroot -p123 zabbix < images.sql
# mysql -uroot -p123 zabbix < data.sql
修改zabbix配置文件数据库信息
#vim /usr/local/zabbix/etc/zabbix_server.conf
安装后默认账户
user:Admin, password:zabbix
开启web中文语言支持
#vim /var/www/html/zabbix/include/locales.inc.php
解决中文图片乱码问题
#vim /var/www/html/zabbix/include/defines.inc.php
#修改第93行define('ZBX_FONT_NAME', 'msyh');
#修改第45行改为 define('ZBX_GRAPH_FONT_NAME', 'msyh')
然后下载微软楷体(simkai),传入/home/www/zabbix/fonts 目录