zabbix

關閉防火牆
systemctl stop firewalld.servicephp


關閉selinuxmysql

sestatus
setenforce 0
vi /etc/selinux/configlinux

SELINUX=disabled web

 

 


1:
rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpmsql

確認yum源數據庫

ll /etc/yum.repos.d/vim

2ide

yum install zabbix-server-mysql zabbix-web-mysqlypost

安裝數據庫ui

yum install mariadb-server


啓動數據庫

systemctl start mariadb

顯示庫
show databases;

 


3

建庫

create database zabbix character set utf8 collate utf8_bin;

受權

grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';

flush privileges;

quit;

導入表

zcat /usr/share/doc/zabbix-server-mysql-3.2.6/create.sql.gz | mysql -uzabbix -p zabbix

 

[

cp /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_server.conf.oldboy.ori


sed -i 's@# DBPassword=@DBPassword=zabbix@g' /etc/zabbix/zabbix_server.conf

]

 

# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=<password>


啓動服務

systemctl start zabbix-server

 

PHP

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 always_populate_raw_post_data -1

 

 

設置時區


sed -i 's#\# php_value date.timezone Europe/Riga#php_value date.timezone Asia/Shanghai#g' /etc/httpd/conf.d/zabbix.conf


啓動 php

systemctl start httpd

 

systemctl start zabbix-serversystemctl start httpdsystemctl start mariadb

相關文章
相關標籤/搜索