zabbix安裝記錄

2021-07-14 03:10:43 字數 1664 閱讀 7537

apt-get install php5-gd

/etc/init.d/apache2 restart

service zabbix-server restart

建立mysql賬號

mysql -u root -p

mysql> create user 'zabbix'@'localhost'identified by 'zabbix';

mysql> create database zabbix;

mysql> grant all privileges on zabbix.*to 'zabbix'@'localhost';

mysql> flush privileges;

mysql> exit;

[編輯]匯入初始化資料

cd /usr/share/zabbix-server-mysql/

sudo gunzip *.gz

mysql -u zabbix -p zabbix < schema.sql

mysql -u zabbix -p zabbix < images.sql

mysql -u zabbix -p zabbix < data.sql

sudo cp /home/ubuntu/zabbix.conf.php/etc/zabbix/

檢視日誌發現有報錯如下

3135:20160628:005148.392 [z3001] connection to database 'zabbix' failed:[1045] access denied for user 'zabbix'@'localhost' (using password: no)

3135:20160628:005148.393 cannot set mysql character set to"utf8"

3135:20160628:005148.393 database is down: reconnecting in 10 seconds

3135:20160628:005158.393 [z3001] connection to database 'zabbix' failed:[1045] access denied for user 'zabbix'@'localhost' (using password: no)

3135:20160628:005158.393 cannot set mysql character set to"utf8"

3135:20160628:005158.393 database is down: reconnecting in 10 seconds

3135:20160628:005208.394 [z3001] connection to database 'zabbix' failed:[1045] access denied for user 'zabbix'@'localhost' (using password: no)

3135:20160628:005208.394 cannot set mysql character set to"utf8"

解決方法:

在/etc/zabbix/zabbix_server.conf

配置檔案中找到下面的行,取消注釋,等號後面寫你管理

zabbix

資料庫的使用者密碼。

dbpassword=zabbix

最後,貼一張成功接入windows域的截圖。

zabbix安裝記錄

環境 ubuntu 18.04 官方安裝指導文件 1 新增zabbix倉庫 許可權不夠時要加sudo wget dpkg i zabbix release 3.4 1 bionic all.deb apt update 2 安裝zabbix server和mysql支援 許可權不夠時要加sudo a...

zabbix安裝記錄

更新最新的zabbix源 rpm ivh 安裝zabbix伺服器 客戶端 mysql伺服器 yum install y zabbix server mysql zabbix web mysql zabbix agent mysql server 啟動mysql伺服器 service mysqld s...

安裝zabbix 全記錄

os win xp sp3 虛擬機器 vmbox 4.22 1.先去找了ubantu 12.10 desktop 版,發現是x64 x86的,本機是i386 失敗.3.關閉系統程序,加速 安裝教程,應該先 apt get update 下,獲取最新包,不然安裝不了.卡了很久 貌似沒什麼好關的,輸入q...