CentOS 7 Deployment Zabbix 3.0 (Apache PHP mariadb)

Source: Internet
Author: User
Tags apache php curl install php snmp

1. Install PHP

Yum install-y php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath PHP-MHA Shvim/etc/php.inimax_input_time = Max_execution_time = Date.timezone = Asia/shanghaipost_max_size = 50M Memory_li MIT = 128M Mbstring.func_overload = 0always_populate_raw_post_data =-1

2. Installing Apache

Yum install-y httpd systemctl start httpd

3, Installation mariadb

Yum install-y mariadb mariadb-server mariadb-develsystemctl start mariadbmysql_secure_installationmysql-u root-pmysql  >create database Zabbix Character Set utf8;mysql>grant all privileges on zabbix.* to [email protected] identified by ' Zabbix '; mysql>flush privileges;

4, Installation Zabbix

Yum install -y autoconf automake imake libxml2-devel expat-devel cmake  gcc gcc-c++ libaio libaio-devel bzr bison libtool ncurses5-devel  net-snmp\* java-1.7.0-openjdk.x86_64 java-1.7.0-openjdk-devel.x86_64 libxml2  Libxml2-devel bzip2 libpng-devel freetype-devel bzip2-devel curl* curl-devel  libjpeg\* openjpeg\*tar zvxf zabbix-3.0.3.tar.gzcd zabbix-3.0.3/./configure -- prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --with-net-snmp  --with-libcurl --with-libxml2 --enable-javamakemake installmysql -u zabbix -p  zabbix<database/mysql/schema.sql mysql -u zabbix -p zabbix<database/mysql /images.sql mysql -u zabbix -p zabbix<database/mysql/data.sqlcp -r  frontends/php/* /var/www/html/vim /usr/local/zabbix/etc/zabbix_server.conf    dbuser=zabbix     dbpassword=zabbixcd /var/www/html/confcp zabbix.conf.php.example zabbix.conf.phpvim  zabbix.conf.php    dbhost=localhost    dbname=zabbix     dbuser=zabbix    dbpassword=zabbix    dbsocket=/tmp/ Mysql.sockuseradd zabbix/usr/local/zabbix/sbin/zabbix_server/usr/local/zabbix/sbin/zabbix_agentd

Copy "italic routine" in Windows to/var/www/html/fonts

Sed-i ' s/dejavusans/simkai/g '/var/www/html/include/defines.inc.php



Reference post: http://www.osyunwei.com/archives/7882.html


CentOS 7 Deployment Zabbix 3.0 (Apache PHP mariadb)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.