第一步宝塔面板安裝
Centos 安裝命令:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
Ubuntu/Deepin 安裝命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
Debian 安裝命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
Fedora
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
安裝宝塔面板後一鍵部署 lnmp 環境
PHP 版本必須為 5.6
數據庫名稱必須是 zabbix
安裝 zabbix
進入你網站的路徑,比如我的:cd /www/wwwroot/zabbix.icunity.com
wget http://www.tieww.com/soft/zabbix.sh
sh zabbix.sh
這個在線安裝很慢,建議先上傳 zabbix 安裝包,然後在執行 sh zabbix.sh
zabbix 安裝包網盤: https://www.lanzous.com/i4aa5wb
Enter zabbix database password:
輸入你創建數據庫時的密碼
進入宝塔面板數據庫複製 zabbix 粘貼數據密碼 回車鍵
zabbix site directory, for example (/www/default):
輸入你網站的路徑,比如我的 /www/wwwroot/zabbix.icunity.com 回車鍵
耐心等待安裝完成即可。安裝成功會提示:
Starting zabbix_server: [ OK ]
Starting zabbix_agentd: [ OK ]
Prompt: zabbix installed successfully.
進入宝塔面板軟件商店修改 php5.6 配置
將此處修改為 300
此處將 702 行的前面冒號刪除
進入網站或者 ip 地址
配置數據庫信息 database port 填寫:3306 password 填寫數據庫的密碼
下一步 安裝完成
修改 web 界面為中文
/www/wwwroot/ 你的域名 /include/locales.inc.php
將此處改為 true
從 Windows 系統上的 C:\Windows\Fonts 目錄中複製一個中文字體文件
字體包網盤: https://www.lanzous.com/i4aa5od
把字體文件 msyh.ttf 上傳到 zabbix 站點根目錄下 fonts 文件夾中
例如:/www/wwwroot/zabbix.icunity.com/fonts
備份默認的字體文件:DejaVusSans.ttf-bak
修改 msyh.ttf 名稱為 DejaVusSans.ttf
最後進入網站或者 ip,個人中心修改配置信息,把默認語言修改為中文
Language:Chinese(zh_CN)
測試站 zabbix.icunity.com 安裝好後的帳號:admin 密碼:zabbix
啟動 zabbix3.0
點擊主機 默認是關閉狀態,選擇啟用