CentOS 7部署Zabbix 3.0(apache php mariadb)

前端之家收集整理的这篇文章主要介绍了CentOS 7部署Zabbix 3.0(apache php mariadb)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1、安装PHP

yuminstall-yPHPPHP-MysqLPHP-gdlibjpeg*PHP-ldapPHP-odbcPHP-pearPHP-xmlPHP-xmlrpcPHP-mbstringPHP-bcmathPHP-mhash
vim/etc/PHP.ini
max_input_time=300
max_execution_time=300
date.timezone=Asia/Shanghai
post_max_size=50M
memory_limit=128M
mbstring.func_overload=0
always_populate_raw_post_data=-1

2、安装apache

yuminstall-yhttpd
systemctlstarthttpd

3、安装mariadb

yuminstall-ymariadbmariadb-servermariadb-devel
systemctlstartmariadb
MysqL_secure_installation
MysqL-uroot-p
MysqL>createdatabasezabbixcharactersetutf8;
MysqL>grantallprivilegesonzabbix.*tozabbix@localhostidentifiedby'zabbix';
MysqL>flushprivileges;

4、安装zabbix

yuminstall-yautoconfautomakeimakelibxml2-develexpat-develcmakegccgcc-c++libaiolibaio-develbzrbisonlibtoolncurses5-develnet-snmp\*java-1.7.0-openjdk.x86_64java-1.7.0-openjdk-devel.x86_64libxml2libxml2-develbzip2libpng-develfreetype-develbzip2-develcurl*curl-devellibjpeg\*openjpeg\*
tarzvxfzabbix-3.0.3.tar.gz
cdzabbix-3.0.3/
./configure--prefix=/usr/local/zabbix--enable-server--enable-agent--with-MysqL--with-net-snmp--with-libcurl--with-libxml2--enable-java
make
makeinstall
MysqL-uzabbix-pzabbix<database/MysqL/schema.sql
MysqL-uzabbix-pzabbix<database/MysqL/images.sql
MysqL-uzabbix-pzabbix<database/MysqL/data.sql
cp-Rfrontends/PHP/*/var/www/html/
vim/usr/local/zabbix/etc/zabbix_server.conf
DBUser=zabbix
DBPassword=zabbix
cd/var/www/html/conf
cpzabbix.conf.PHP.examplezabbix.conf.PHP
vimzabbix.conf.PHP
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/tmp/MysqL.sock
useraddzabbix
/usr/local/zabbix/sbin/zabbix_server
/usr/local/zabbix/sbin/zabbix_agentd

将windows中的“楷体 常规”拷贝到/var/www/html/fonts

sed-i's/DejaVuSans/simkai/g'/var/www/html/include/defines.inc.PHP



参考博文:http://www.osyunwei.com/archives/7882.html

原文链接:https://www.f2er.com/centos/381343.html

猜你在找的CentOS相关文章