CentOS6.8 RPM包安装快速zabbix22
CentOS6.8 RPM包安装快速zabbix22
yum install -y epel-release
# yum install -y httpd php php-devel mysql-server mysql-devel # yum install -y libxml2-devel unixODBC-devel OpenIPMI OpenIPMI-devel net-snmp net-snmp-devel libssh2-devel curl-devel # yum install -y php-mysql php-bcmath php-mbstring php-gd libjpeg libjpeg-devel libpng libpng-devel php-xml # yum install -y gcc make wget curl-devel # yum install -y zabbix22 zabbix22-agent zabbix22-dbfiles-mysql zabbix22-proxy zabbix22-proxy-mysql zabbix22-server zabbix22-server-mysql zabbix22-web zabbix22-web-mysql # /etc/init.d/zabbix-server start # /etc/init.d/zabbix-agent start # /etc/init.d/httpd start # /etc/init.d/mysqld start # vi /etc/my.cnf [mysql] default-character-set = utf8 [mysqld] character_set_server = utf8 # cat /etc/zabbix/zabbix_server.conf LogFile=/var/log/zabbixsrv/zabbix_server.log LogFileSize=0 PidFile=/var/run/zabbixsrv/zabbix_server.pid DBName=zabbix DBUser=zabbix_user DBPassword=zabbix_passwd DBSocket=/var/lib/mysql/mysql.sock AlertScriptsPath=/var/lib/zabbixsrv/alertscripts ExternalScripts=/var/lib/zabbixsrv/externalscripts TmpDir=/var/lib/zabbixsrv/tmp # mysql -uroot -p -e "create database zabbix" # mysql -uroot -p -e "grant all on zabbix.* to 'zabbix_user'@'localhost' identified by 'zabbix_passwd'" # mysql -uroot -p --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/schema.sql # mysql -uroot -p --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/images.sql # mysql -uroot -p --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/data.sql