zabbix-server 的安装-centos7
生活随笔
收集整理的這篇文章主要介紹了
zabbix-server 的安装-centos7
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.zabbix ?yum源
| 1 | rpm?-ivh?http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm |
修改源
cd ?/etc/yum.repos.d/zabbix.repo
3.4的源:
| 1 2 3 4 5 6 7 8 9 10 11 12 | [zabbix] name=Zabbix?Official?Repository?-?$basearch baseurl=http://repo.zabbix.com/zabbix/3.4/rhel/7/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 [zabbix-non-supported] name=Zabbix?Official?Repository?non-supported?-?$basearch? baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX gpgcheck=1 |
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | [zabbix] name=Zabbix?Official?Repository?-?$basearch baseurl=http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX [zabbix-non-supported] name=Zabbix?Official?Repository?non-supported?-?$basearch? baseurl=http://mirrors.aliyun.com/zabbix/non-supported/rhel/7/$basearch/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX gpgcheck=1 |
2.安裝數據庫 zabbix-server
| 1 | .[root@zabbix-server?yum.repos.d]#?yum?install?zabbix-server-mysql?zabbix-web-mysql?-y |
3.啟動mariadb
| 1 2 3 4 | yum?-y?install??mariadb-server??mariadb [root@zabbix-server?~]#?systemctl?enable??mariadb? Created?symlink?from?/etc/systemd/system/multi-user.target.wants/mariadb.service?to?/usr/lib/systemd/system/mariadb.service. [root@zabbix-server?~]#?systemctl?start???mariadb |
4.初始化操作 ?root ?123456
| 1 | [root@zabbix-server?~]#?mysql_secure_installation |
5.授權zabbix
| 1 | create?database?zabbix??character?set?utf8?collate?utf8_bin; |
| 1 | MariaDB?[(none)]>?grant?all??on?zabbix.*??to?zabbix@'localhost'???identified??by??'123456'; |
6.初始化數據庫
| 1 | zcat?/usr/share/doc/zabbix-server-mysql-3.0.*/create.sql.gz?|?mysql?-uzabbix?-p123456??zabbix |
7.修改httpd的文件
| 1 2 3 4 5 6 | vim??/etc/httpd/conf/httpd.conf? ServerName?127.0.0.1:80 vim??/etc/httpd/conf.d/zabbix.conf? ?php_value?date.timezone?Asia/Shanghai systemctl??restart??htttpd? systemctl??enable??htttpd |
8.修改zabbix_server 的配置數據庫的文件 ?數據庫不在一臺機器上修改下
| 1 2 3 4 | [root@zabbix-server?yum.repos.d]#?vim??/etc/zabbix/zabbix_server.conf? DBName=zabbix DBUser=zabbix DBPassword=123456 |
9訪問 ?192.168.56.18/zabbix
centos6安裝zabbix3.0參考
http://www.aclstack.com/351.html
本文轉自 小小三郎1 51CTO博客,原文鏈接:http://blog.51cto.com/wsxxsl/1903337,如需轉載請自行聯系原作者
總結
以上是生活随笔為你收集整理的zabbix-server 的安装-centos7的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: OneProxy实现MySQL读写分离与
- 下一篇: 半导体公司IC设计环境概况