Zabbix 安装部署
生活随笔
收集整理的這篇文章主要介紹了
Zabbix 安装部署
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Zabbix?
安裝服務器端:
yum?install?zabbix-server-mysql-3.0.2-1.el7.x86_64.rpm?zabbix-get-3.0.2-1.el7.x86_64.rpm安裝Web GUI
yum?install?httpd?php?php-mysql?php-mbstring?php-gd?php-bcmath?php-ldap?php-xml yum?install?zabbix-web-3.0.2-1.el7.noarch.rpm?zabbix-web-mysql-3.0.2-1.el7.noarch.rpm準備zabbix 數據庫
[root@zabbix?~]#?yum?-y?install?mariadb-server?mysql [root@zabbix?~]#?systemctl?enable?mariadb.service? [root@zabbix?~]#?systemctl?start?mariadb.service?MariaDB?[(none)]>?CREATE?DATABASE?zabbix?CHARSET?'utf8'; Query?OK,?1?row?affected?(0.00?sec)MariaDB?[(none)]>?GRANT?ALL?ON?zabbix.*?TO?'zabbix_user'@'%'?IDENTIFIED?BY?'zabbix_pass'; Query?OK,?0?rows?affected?(0.00?sec)MariaDB?[(none)]>?FLUSH?PRIVILEGES; Query?OK,?0?rows?affected?(0.00?sec)服務端數據庫初始化:
查看數據庫文件安裝目錄 [root@zabbix?~]#?rpm?-ql?zabbix-server-mysql /etc/logrotate.d/zabbix-server /etc/zabbix/zabbix_server.conf /usr/lib/systemd/system/zabbix-server.service /usr/lib/tmpfiles.d/zabbix-server.conf /usr/lib/zabbix/alertscripts /usr/lib/zabbix/externalscripts /usr/sbin/zabbix_server_mysql /usr/share/doc/zabbix-server-mysql-3.0.2 /usr/share/doc/zabbix-server-mysql-3.0.2/AUTHORS /usr/share/doc/zabbix-server-mysql-3.0.2/COPYING /usr/share/doc/zabbix-server-mysql-3.0.2/ChangeLog /usr/share/doc/zabbix-server-mysql-3.0.2/NEWS /usr/share/doc/zabbix-server-mysql-3.0.2/README /usr/share/doc/zabbix-server-mysql-3.0.2/create.sql.gz /usr/share/man/man8/zabbix_server.8.gz /var/log/zabbix /var/run/zabbix [root@zabbix?~]#?cp?/usr/share/doc/zabbix-server-mysql-3.0.2/create.sql.gz?. [root@zabbix?~]#?gzip??-d??create.sql.gz [root@zabbix?~]#?mysql?-uzabbix_user?-h192.168.99.82?-p?zabbix?<?create.sqlzabbix服務端配置:
配置zabbix-web:
????php時區設定: ?
[root@zabbix?~]#?grep?date.timezone?/etc/php.ini? ;?http://php.net/date.timezone date.timezone?=?Asia/Shanghai [root@zabbix?~]#?grep?date.timezone?/etc/httpd/conf.d/ autoindex.conf??php.conf????????README??????????userdir.conf????welcome.conf????zabbix.conf????? [root@zabbix?~]#?grep?date.timezone?/etc/httpd/conf.d/zabbix.conf?php_value?date.timezone?Asia/Shanghai啟動zabbix-server
[root@zabbix?~]#?systemctl?start?zabbix-server.service? [root@zabbix?~]#?systemctl?enable?zabbix-server.service? Created?symlink?from?/etc/systemd/system/multi-user.target.wants/zabbix-server.service?to?/usr/lib/systemd/system/zabbix-server.service.開啟httpd服務
[root@zabbix?~]#?systemctl?start?httpd.service? [root@zabbix?~]#?systemctl?enable?httpd.service? Created?symlink?from?/etc/systemd/system/multi-user.target.wants/httpd.service?to?/usr/lib/systemd/system/httpd.service.訪問:
http://zabbix.runner.vip/zabbix/
安裝zabbix 并配置mysql的相關信息
安裝完成后,默認的登錄用戶名密碼
admin:zabbix
轉載于:https://blog.51cto.com/runingday/1872472
總結
以上是生活随笔為你收集整理的Zabbix 安装部署的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: com.android.ddmlib.S
- 下一篇: 树状数组的特殊形式