[Original] Zabbix Learning Tour II: Yum installation

Source: Internet
Author: User

For the environment that allows the connection to the public network, it is obvious that Yum installation is the easiest and most convenient way to install the website. By installing this way, PHP, Apache, and Zabbix itself are installed, which solves the annoying dependency package problem.

This article describes how to do a yum installation. Install MySQL

Zabbix support is installed on a variety of databases, the database in this scenario is MySQL. The installation and library tables are set up as follows:

    • Install mysql5.6.28, installation method for RPM installation, before installation if the computer has old MySQL, please uninstall.
RPM–IVH mysql-server-5.6.28-1. EL6.X86_64.RPMRPM–IVH mysql-client-5.6.28-1. El6.x86_64.rpmrpm–ivh Mysql-devel-5.6.28-1. EL6.X86_64.RPMRPM–IVH mysql-shared-compat-5.6.28-1.el6.x86_64.rpm  
    • Add a soft connection to the mysqlclient (if not added, the subsequent Zabbix installation may have an error saying that mysqlclient is not found).
cd/usr/lib64ln-s libmysqlclient.so.16.0.0 libmysqlclient.so  ln-s libmysqlclient_r.so.16.0.0 libmysqlclient_r.so 
    • After installation, the default configuration file is/usr/my.cnf, and the default MySQL root account password is saved in/root/.mysql_secret.
    • Check if MySQL is in the list of randomly launched, add it if none, and start.
Chkconfig--list|grep Mysqlchkconfig--add mysqlchkconfig MySQL on
    • Change the root account password.
Mysql–uroot–pset Password=password (' 123456 '); flush privileges;
    • Create the Zabbix database and its access account.
Create database Zabbix character Set UTF8 collate utf8_bin;grant all privileges on zabbix.* to [email protected] Identifie D by ' Zabbix '; flush privileges;
    • Initializes the Zabbix database.
Mysql-uzabbix–p Zabbix < schema.sqlmysql-uzabbix–p Zabbix < images.sqlmysql-uzabbix–p Zabbix < dat A.sql

Installing Zabbix
    • Add Zabbix account, Zabbix server runs under Zabbix account by default.
Groupadd zabbixuseradd–g Zabbix Zabbix
    • Installing Zabbix
-IVH http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm# Installing ZabbixYum install Zabbix-server-mysql zabbix-web-mysql
    • Configure and start Zabbix
#修改zabbix配置文件 vi /etc/zabbix/zabbix_server.conflogfile=/var/log/zabbix/zabbix_server.loglogfilesize =Tendbhost=localhostdbname=Zabbixdbuser=Zabbixdbpassword=  zabbix# starting Zabbixservice zabbix_server start
    • Configure PHP
vi /etc/httpd/conf.d/date. TimeZone asia/ Shanghai
    • Launch Apache
Service httpd Start

At this point, the boot is complete, you can access the Zabbix server through Http://localhost/zabbix, the default user name password is: Admin/zabbix.

[Original] Zabbix Learning Tour II: Yum installation

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.