# systemctl stop firewalld # systemctl disable firewalld # setenforce 0
# cd /etc/yum.repos.d # yum -y install wget # wget http://mirrors.163.com/.help/CentOS7-Base-163.repo # yum clean all # yum makecache
# yum -y install mariadb mariadb-server # systemctl start mariadb # systemctl enable mariadb # mysql_secure_installation
# yum -y install httpd # systemctl start httpd # systemctl enable httpd
# yum -y install php php-mysql
# 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 # yum -y install zabbix-agent # mysql -uroot -p mysql>create database zabbix character set utf8 collate utf8_bin; mysql>grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; # cd /usr/share/doc/zabbix-server-mysql-3.2.1 # zcat create.sql.gz | mysql -uroot -p zabbix
# vim /etc/php.ini php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 php_value date.timezone Asia/Shanghai # systemctl restart httpd
http://IP/zabbix http://IP/zabbix/setup.php
总结
以上所述是小编给大家介绍的linux 中zabbix监控安装方法,希望对大家有所帮助,如果大家有任何疑问欢迎给我留言,小编会及时回复大家的!
声明:本文内容来源于网络,版权归原作者所有,内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:notice#nhooo.com(发邮件时,请将#更换为@)进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。