Build Zabbix (yum install zabbix,ngixn,mysql, source install PHP)

Source: Internet
Author: User
Tags fpm install php php source code

Yum install Zabbix,ngixn,mysql, source code installation PHP, not have special effect, but Zabbix source installation failed ...

1. Installing the Zabbix Repo
2.yum Installation

3.yum Mounting MARIADB Mariadb-server
4. Create library Zabbix, empower Zabbix users
5. Import the Library of the Zabbix file into MySQL

6. Modify the zabbix_server.conf configuration file
7. Start Boot Zabbix_server.service

8.yum installation Nginx
9. Modify the nginx.conf configuration file, check with NGINX-T, if the code is not a problem, check 80 port is not occupied
10. Start Boot Nginx.service
11. To the/etc/zabbix/web of the genus of the main group Nginx
11. Check the Zabbix port, PHP-FPM service

12. Page Access: http://IP/index.php
13. Page Installation Zabbix
14. There are several points worth noting!!!
====== recommended mysql5.7 version, do not use mysql8.0, not other, really to the author's level can not be mastered
======php source code before the installation also has written, here will not repeat, careful on the good,
====== compiled installation and Yum installation have done generally have two configuration files, need to see which program is running which
15. Install the Code
RPM-IVH http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
Yum-y Install Zabbix-server-mysql zabbix-web-mysql zabbix-get zabbix-agent
Yum-y Install mariadb Mariadb-server

Vim/etc/my.cnf
Skip-grant-tables
Wq
Systemctl Restart Mariadb.service
Systemctl Enable Mariadb.service
Mysql_secure_installation
mysql-uroot-plixiang45.bbya!

Create database Zabbix character set UTF8 collate utf8_bin;
Grant all privileges on Zabbix. To [e- Mail protected] ' localhost ' identified by ' lixiang45.bbya! ';
Grant all privileges on Zabbix.
to [e-mail protected] '% ' identified by ' lixiang45.bbya! ';
Grant all privileges on zabbix.* to [e-mail protected] ' 127.0.0.1 ' identified by ' lixiang45.bbya! '
Flush privileges;
cd/usr/share/doc/zabbix-server-mysql-3.2.11/
Zcat create.sql.gz | mysql-uzabbix-plixiang45.bbya! Zabbix

Vim/etc/zabbix/zabbix_server.conf
dbhost=10.18.42.163
Dbname=zabbix
Dbuser=zabbix
Dbpassword=password
Wq
Systemctl Restart Zabbix-server.service
Systemctl Enable Zabbix-server.service
Vim/etc/nginx/nginx.conf
Location/{
Root/usr/share/zabbix;
}

    location ~ "\.php$" {        fastcgi_pass 10.18.42.163:9000;        fastcgi_index index.php;        fastcgi_param SCRIPT_FILENAME /usr/share/zabbix/$    fastcgi_script_name;        include fastcgi_params;    }

Wq
Nginx-t
Systemctl Status httpd
Systemctl Stop httpd
Systemctl Disable httpd
Systemctl start Nginx
Systemctl Enable Nginx

lsof-i:9000
Systemctl Status Zabbix-server.service
ll/etc/zabbix/web/
Chown-r Nginx.nginx/etc/zabbix/web

Vim/etc/php.ini
Systemctl Restart Php-fpm.service
Vim/usr/local/php/lib/php.ini
Systemctl Restart Php-fpm.service
Systemctl Status Zabbix-server.service

Build Zabbix (yum install zabbix,ngixn,mysql, source install PHP)

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.