#systemctl stop firewalld
#vim /etc/selinux/config
SELINUX=permissive
#setenforce 0
rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
# yum install -y zabbix-server-mysql zabbix-web-mysql
# yum install zabbix-proxy-mysql -y
安裝zabbix-agent客戶端
為華鎣等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計制作服務(wù),及華鎣網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為成都網(wǎng)站設(shè)計、成都網(wǎng)站制作、華鎣網(wǎng)站設(shè)計,以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達到每一位用戶的要求,就會得到認可,從而選擇與我們長期合作。這樣,我們也可以走得更遠!
# yum install zabbix-agent -y
設(shè)置開機自啟動
# systemctl start zabbix-agent
# chkconfig zabbix-agent on
# rpm -U vh http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-release-el6-5.noarch.rpm
# yum install -y mysql-community-server
# systemctl start mysqld
# chkconfig mysqld on
# mysql_secure_installation
# mysql -uroot -p
創(chuàng)建一個zabbix庫并設(shè)置為utf8的字符編碼格式
mysql> create database zabbix character set utf8 collate utf8_bin;
創(chuàng)建賬戶并且授權(quán)設(shè)置密碼
mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';
刷新
mysql> flush privileges;
# zcat /usr/share/doc/zabbix-server-mysql-4.2.0/create.sql.gz | mysql zabbix -uzabbix -pzabbix
# vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
# vim /etc/php.ini
在最后一行添加一下內(nèi)容
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
安裝ntp服務(wù)
# yum install ntpdate -y
調(diào)整為亞洲上海時區(qū)
# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
同步時間服務(wù)器
# ntpdate us.pool.ntp.org
# date
# vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
啟動apache
# systemctl start httpd
# systemctl enable httpd
# systemctl status httpd
啟動zabbix-server服務(wù)并設(shè)置為開機啟動
# systemctl start zabbix-server
# systemctl enable zabbix-server
查看zabbix-server日志
# vim /var/log/zabbix/zabbix_server.log
18050:20190827:135341.502 Starting Zabbix Server. Zabbix 4.2.5 (revision 2c0e4d1d39).
18050:20190827:135341.503 ****** Enabled features ******
18050:20190827:135341.503 SNMP monitoring: YES
18050:20190827:135341.503 IPMI monitoring: YES
18050:20190827:135341.503 Web monitoring: YES
18050:20190827:135341.503 VMware monitoring: YES
18050:20190827:135341.503 SMTP authentication: YES
18050:20190827:135341.503 Jabber notifications: NO
18050:20190827:135341.503 Ez Texting notifications: YES
18050:20190827:135341.503 ODBC: YES
18050:20190827:135341.503 SSH2 support: YES
18050:20190827:135341.503 IPv6 support: YES
18050:20190827:135341.503 TLS support: YES
18050:20190827:135341.503 ******************************
18050:20190827:135341.503 using configuration file: /etc/zabbix/zabbix_server.conf
http://本機IP/zabbix
希望可×××學(xué)習(xí)。蟹蟹
分享題目:【Zabbix4.2學(xué)習(xí)筆記】1、CentOS7.5安裝zabbix4.2
分享路徑:http://jinyejixie.com/article20/ppjgjo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航、網(wǎng)站設(shè)計、關(guān)鍵詞優(yōu)化、網(wǎng)站營銷、網(wǎng)站排名、網(wǎng)站維護
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)