Close SeLinux
setenforce 0
Permanently closed:
vi /etc/selinux/config
Turn off the firewall
systemctl stop firewalld.service
Note: Of course, you can also open the designated port
Installation Environment
LAMP
# Install apache
yum install -y httpd
# httpd service starts to start automatically
systemctl enable httpd
# Start httpd service
systemctl start httpd
Zabbix wants to store the 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
Create 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 the sql script into the zabbix database
cd /usr/share/doc/zabbix-server-mysql-4.0.13
Unzip:
gunzip create.sql.gz
Login to mysql
mysql -u root -p #Just enter the password
Switch data
use zabbix
Import sql
source create.sql
drop out
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 time zone. **
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 URL settings
192.168.43.161 /zabbix/
mysql connection configuration:
Set the service name:
ok login below:
The login account is Admin
Password is zabbix
Chinese configuration
Set Chinese:
The display is Chinese:
to sum up
The above is the CentOS7 installation zabbix 4.0 tutorial introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message. The editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!
Recommended Posts