CentOS 7部署Zabbix 3.0(apache php mariadb)
1、安装php
yuminstall-yphpphp-mysqlphp-gdlibjpeg*php-ldapphp-odbcphp-pearphp-xmlphp-xmlrpcphp-mbstringphp-bcmathphp-mhashvim/etc/php.inimax_input_time=300max_execution_time=300date.timezone=Asia/Shanghaipost_max_size=50Mmemory_limit=128Mmbstring.func_overload=0always_populate_raw_post_data=-1
2、安装apache
yuminstall-yhttpdsystemctlstarthttpd
3、安装mariadb
yuminstall-ymariadbmariadb-servermariadb-develsystemctlstartmariadbmysql_secure_installationmysql-uroot-pmysql>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.gzcdzabbix-3.0.3/./configure--prefix=/usr/local/zabbix--enable-server--enable-agent--with-mysql--with-net-snmp--with-libcurl--with-libxml2--enable-javamakemakeinstallmysql-uzabbix-pzabbix<database/mysql/schema.sqlmysql-uzabbix-pzabbix<database/mysql/p_w_picpaths.sqlmysql-uzabbix-pzabbix<database/mysql/data.sqlcp-Rfrontends/php/*/var/www/html/vim/usr/local/zabbix/etc/zabbix_server.confDBUser=zabbixDBPassword=zabbixcd/var/www/html/confcpzabbix.conf.php.examplezabbix.conf.phpvimzabbix.conf.phpDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=zabbixDBSocket=/tmp/mysql.sockuseraddzabbix/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
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。