Disable SeLinux Permanently closed: Turn off firewall Note: Of course, you can also open the specified port Installation Environment LAMP # Install apache yum install -y httpd # The httpd service starts automatically when it is turned on systemctl enable httpd # Start the httpd service systemctl start httpd Zabbix needs to store data in the database, so you need to install Mysql : https://blog.csdn.net/qq_43059674/article/details/100729776#_mySql_174 Install zabbix repository # yum clean all # rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm Install zabbix zabbix-server-mysql zabbix-web-mysql zabbix-agent yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent Creating the Initial Database #mysql -uroot -p password mysql> create database zabbix character set utf8 collate utf8_bin; mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; mysql> quit; Import sql script into zabbix database cd /usr/share/doc/zabbix-server-mysql-4.0.13 Unzip: gunzip create.sql.gz Login to mysql mysql -u root -p # Enter the password Switch Data use zabbix Import SQL source create.sql quit Configure database for zabbix server vi /etc/zabbix/zabbix_server.conf DBPassword=zabbix Edit /etc/httpd/conf/zabbix.conf, uncomment and set the correct timezone for . vi /etc/httpd/conf.d/zabbix.conf Configuration time php_value date.timezone Asia/Shanghai start up # systemctl restart zabbix-server zabbix-agent httpd # systemctl enable zabbix-server zabbix-agent httpd Log in to zabbix website settings 192.168.43.161/zabbix/ mysql connection configuration: Set the service name: OK, log in below: Login account is Admin The password is zabbix Chinese configuration Set Chinese: What is displayed is Chinese: Summarize The above is the CentOS7 installation zabbix 4.0 tutorial introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: The architecture and practice of synchronizing Meituan DB data to the data warehouse
>>: Using JS to implement a small game of aircraft war
Table of contents Breaking down components Left P...
today select * from table name where to_days(time...
Table of contents 1. Cancel duplicate requests 2....
The Golden Rule Always follow the same set of cod...
Classification of color properties Any color can ...
Server Status Analysis View Linux server CPU deta...
After setting the table width in the page to width...
Preface During my internship at the company, I us...
1. The role of doctype, the difference between st...
background When I was using Docker these two days...
Table of contents 1. Test environment 1.1 Install...
The information on Baidu is so diverse that it...
Overview binlog2sql is an open source MySQL Binlo...
Table of contents Preface optimization Extract va...
Enter Alibaba vector icon library Alibaba Vector ...