centos7安装zabbix3.0超详细步骤解析

centos7安装zabbix3.0超详细步骤解析

很详细,感谢作者

以下是我操作的history

622 java -version
623 javac -version
624 grep SELINUX /etc/selinux/config
625 vim /etc/selinux/config
626 grep SELINUX /etc/selinux/config
627 getenforce
628 /usr/sbin/sestatus -v
629 vim /etc/selinux/config
630 /usr/sbin/sestatus -v
631 reboot
632 yum -y install wget net-snmp-devel OpenIPMI-devel httpd openssl-devel java lrzsz fping-devel libcurl-devel perl-DBI pcre-devel libxml2 libxml2-devel mysql-devel gcc php php-bcmath php-gd php-xml php-mbstring php-ldap php-mysql.x86_64 php-pear php-xmlrpcnet-tools wget vim-enhanced   #fping-devel未找到包,没有安装
633 yum search mysql|tac
634 wget -P /etc/yum.repos.d http://mirrors.aliyun.com/repo/Centos-7.repo
635 yum -y install mariadb mariadb-server php php-mysql httpd
636 systemctl enable mariadb.service
637 systemctl start mariadb.service
638 mysql_secure_installation
639 mysql -uroot -p123456 -e "create database zabbix default character set utf8 collate utf8_bin;"
643 mysql -uroot -p123456 -e "grant all on zabbix.* to "zabbix"@"%" identified by "zabbix";"  #这一步报错了,进到mysql里面去操作即可

644 mysql -uroot -p

>grant all on zabbix.* to "zabbix"@"%" identified by "zabbix";


645 mysql -uzabbix -pzabbix
646*
647* systemctl status htt
648 systemctl enable httpd.service
649 systemctl start httpd.service
650 systemctl status httpd.service
651 systemctl
652 systemctl start httpd.service
653 netstat -punta | grep LISTE
654 systemctl stop nginx.service
655 systemctl start httpd.service
656 systemctl disable nginx.service
657 netstat -ltun
658 rpm -ivh http://mirrors.aliyun.com/epel/7/x86_64/e/epel-release-7-8.noarch.rpm #这个链接已过期
659 rpm -ivh https://mirrors.aliyun.com/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
660 rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
661 yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-get
662 cd /usr/share/doc/zabbix-server-mysql-3.0.14/
663 ll
664 zcat create.sql.gz | mysql -uroot -pDe123456 zabbix
665 zcat create.sql.gz | mysql -uroot -p123456 zabbix
666 vi /etc/zabbix/zabbix_server.conf
667 vim /etc/zabbix/zabbix_server.conf
668 vi /etc/httpd/conf.d/zabbix.conf
669 vim /etc/httpd/conf.d/zabbix.conf
670 systemctl enable zabbix-server.service
671 systemctl start zabbix-server.service
672 systemctl restart httpd.service
673 history

上一篇:CentOS 7安装zabbix3.0


下一篇:centos7.2编译安装zabbix-3.0.4