日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Zabbix的简单使用

發布時間:2024/7/19 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Zabbix的简单使用 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

0. 卸載mariadb 安裝mysql

? ? 方法 rpm -qa |grep mariadb?

? ? 然后 rpm -e --nodeps mariadb*****

? ? 安裝mysql

? ??# 下載mysql源安裝包

shell> wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

# 安裝mysql源

?shell> yum localinstall mysql57-community-release-el7-8.noarch.rpm

安裝mysql

yum install mysql-community-server

啟動mysql

shell> systemctl start mysqld 設置開機自動啟動 systemctl enable mysqld

查找默認的mysql臨時密碼:
grep 'temporary password' /var/log/mysqld.log

修改為新密碼:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Test6530!';

默認配置文件路徑:?
配置文件:/etc/my.cnf?
日志文件:/var/log//var/log/mysqld.log?
服務啟動腳本:/usr/lib/systemd/system/mysqld.service?
socket文件:/var/run/mysqld/mysqld.pid

原作者目錄:

https://www.linuxidc.com/Linux/2016-09/135288.htm
?

1. 通過官網查找安裝攻略

地址:https://www.zabbix.com/download

內容:

  • a. Install Repository with MySQL database
    # rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
    b. Install Zabbix server, frontend, agent
    # yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
    c. Create initial database
    # mysql -uroot -p
    password
    mysql> create database zabbix character set utf8 collate utf8_bin;
    mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'Test6530!';
    mysql> quit;

    Import initial schema and data. You will be prompted to enter your newly created password.

    # zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
    d. Configure the database for Zabbix server
    DBPassword=password
    e. Start Zabbix server and agent processes

    Start Zabbix server and agent processes and make it start at system boot:

    # systemctl restart zabbix-server zabbix-agent httpd
    # systemctl enable zabbix-server zabbix-agent httpd
    f. Configure PHP for Zabbix frontend
    Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.# php_value date.timezone Europe/Riga

    Now your Zabbix server is up and running!

  • Configure Zabbix fronten

  • 出現錯誤的解決
  • zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
  • yum install mysql-devel mysql-libs
  • httpd 啟動不起來 修改 /etc/httpd/conf里面的配置文件 將 ServerName locahost:80 修改一下。
  • 一開始出現 php的連接錯誤

    因為安裝順序的問題 重新安裝一下??php-mysql-5.4.16-43.el7_4.1.x86_64

    127 rpm -qa|grep php
    128 rpm -qa|grep mysql
    129 rpm -e php-mysql-5.4.16-43.el7_4.1.x86_64
    130 rpm -e --nodeps php-mysql-5.4.16-43.el7_4.1.x86_64
    131 yum install php-mysql-5.4.16-43.el7_4.1.x86_64

    即可

    然后web端進行安裝.?

    基本上可用了

    ?

    4. 添加ESXi主機

    ?

    轉載于:https://www.cnblogs.com/jinanxiaolaohu/p/8999575.html

    總結

    以上是生活随笔為你收集整理的Zabbix的简单使用的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。