Centos 6.8 Install Zabbix 3.2 version install and modify fonts

Source: Internet
Author: User

Tags: update create user Web service TPS ORC groupadd zab timezone Microsoft ya Black

IP DNS I'm not going to tell you.

Install the Habitual software first

Yum-y Install nano wget lrzsz

    1. Update yum source I used Ali's

cd/etc/yum.repos.d/
\CP Centos-base.repo centos-base.repo.$ (date +%f) # #备份源文件

Wget-o Centos-base.repo Http://mirrors.aliyun.com/repo/Centos-6.repo
Yum Clean All
Yum Makecache
Yum-y Update # #升级

    1. Shutting down firewalls and SELinux
      /etc/init.d/iptables stop
      Chkconfig iptables off
      Sed-i ' s/selinux=enforcing/selinux=disabled/'/etc/selinux/config
      grep selinux=disabled/etc/selinux/config
      Setenforce 0

    2. Set Lamp source
      RPM-IVH http://repo.webtatic.com/yum/el6/latest.rpm
      RPM-IVH https://uk.repo.webtatic.com/yum/el6/latest.rpm # # #如果第一个有问题就换英国源 The first one you understand as an official.

    3. Install the required packages for PHP
      Yum-y Install httpd php56w php56w-gd php56w-mysql php56w-bcmath php56w-mbstring php56w-xml php56w-ldap wget ntpdate net-s nmp*
      Yum install-y gcc mysql-community-devel libxml2-devel unixodbc-devel net-snmp-devel libcurl-devel libssh2-devel Openipmi-devel Openssl-devel Openldap-devel

    4. MySQL Installation and account creation
      Yum-y install mysql-server MySQL
      Yum-y install MySQL mysql-devel mysql-server

/etc/init.d/mysqld restart

Mysql-u root-p
Create a Zabbix database
CREATE DATABASE Zabbix CHARACTER SET UTF8 COLLATE utf8_bin;
Authorizing the Zabbix system to access the MySQL database user and password:
GRANT all privileges the zabbix.* to [e-mail protected] identified by ' Zabbix ';

    1. Create user
      Groupadd Zabbix
      Useradd-g Zabbix Zabbix

    2. Uploading and installing Zabbix 3.2
      Mkdir/mnt/soft
      Cd/mnt/soft
      RZ zabbix-3.2.0.tar.gz

TAR-XVF zabbix-3.2.0.tar.gz
CD zabbix-3.2.0/database/mysql/
Mysql-u Zabbix-p Zabbix < Schema.sql
Mysql-u Zabbix-p Zabbix < Images.sql
Mysql-u Zabbix-p Zabbix < Data.sql
Cd.. /.. /
./configure--enable-server--with-mysql--enable-ipv6--with-net-snmp--with-libcurl--with-libxml2--WITH-UNIXODBC- -with-ssh2--WITH-OPENIPMI--with-openssl
Make install

    1. Configuring Startup files
      Nano/usr/local/etc/zabbix_server.conf
      Dbname=zabbix
      Dbuser=zabbix
      Dbpassword=zabbix

Create a Zabbix-web page folder
Mkdir/var/www/html/zabbix
cd/mnt/soft/zabbix-3.2.0/frontends/php/
Cp-a. /var/www/html/zabbix/

Create a rule that allows the Web server to access the front-end files
CHCON-RV--type=httpd_sys_content_t/var/www/html

Run Apache and Zabbix to access the extranet
Setsebool-p httpd_can_network_connect=1
Setsebool-p zabbix_can_network=1

To set the owner of the Apache user Web interface file
Chown-r Apache:apache/var/www/html/zabbix

Add permissions for the Zabbix Web interface
chmod +x/var/www/html/zabbix/conf/
Cp/data/zabbix-3.2.0/misc/init.d/fedora/core/zabbix_server/etc/init.d/zabbix_server
Chkconfig--add/etc/init.d/zabbix_server

Enable Zabbix server, Apache and MySQL service startup
Chkconfig httpd on
Chkconfig mysqld on
Chkconfig Zabbix_server on

Start
/ETC/INIT.D/HTTPD start
Service Zabbix_server start or/etc/init.d/zabbix_server start
#############################################
If error cannot run as root!
Re-create the next Zabbix user and authorize

Useradd Zabbix
chmod 777/etc/init.d/zabbix_server

Nano/etc/php.ini
post_max_size=16m
max_execution_time=300
max_input_time=300
Date.timezone=asia/shanghai
Always_populate_raw_post_data=-1

/ETC/INIT.D/HTTPD restart

Web Interface Play It
MySQL user password is Zabbix

###### #msyh是win7 with msyh is Microsoft ya Black # # #
Copy Path/var/www/html/zabbix/fonts

Web Interface Font Modification
nano/var/www/html/zabbix/include/defines.inc.php
defines.inc.php
#修改第93行
Define (' Zbx_font_name ', ' msyh ');
#修改第45行改为
Define (' Zbx_graph_font_name ', ' msyh ')

Centos 6.8 Install Zabbix 3.2 version install and modify fonts

Related Article

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.

Tags Index: