標籤:zabbix
1、安裝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-mhashvim /etc/php.inimax_input_time = 300 max_execution_time = 300 date.timezone = Asia/Shanghaipost_max_size = 50M memory_limit = 128M mbstring.func_overload = 0always_populate_raw_post_data = -1
2、安裝apache
yum install -y httpd systemctl start httpd
3、安裝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、安裝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
將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
CentOS 7部署Zabbix 3.0(apache php mariadb)