Ubuntu 安装 zabbix (nginx版本)


Ubuntu 18.04 安装的 zabbix 版本为 5.0,下载步骤 按照 zabbix 官网的教程,也可以根据不同的环境进行切换

安装 zabbix


[root@Ubuntu:~]# wget https://repo.zabbix.com/zabbix/4.5/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.5-1+bionic_all.deb
--2020-03-04 17:30:54--  https://repo.zabbix.com/zabbix/4.5/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.5-1+bionic_all.deb
Resolving repo.zabbix.com (repo.zabbix.com)..., 2604:a880:1:20::b82:1001
Connecting to repo.zabbix.com (repo.zabbix.com)||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4136 (4.0K) [application/octet-stream]
Saving to: ‘zabbix-release_4.5-1+bionic_all.deb’

zabbix-release_4.5-1+bio 100%[==================================>]   4.04K  --.-KB/s    in 0s      

2020-03-04 17:30:55 (409 MB/s) - ‘zabbix-release_4.5-1+bionic_all.deb’ saved [4136/4136]

[root@Ubuntu:~]# dpkg -i zabbix-release_4.5-1+bionic_all.deb 
Selecting previously unselected package zabbix-release.
(Reading database ... 140455 files and directories currently installed.)
Preparing to unpack zabbix-release_4.5-1+bionic_all.deb ...
Unpacking zabbix-release (1:4.5-1+bionic) ...
Setting up zabbix-release (1:4.5-1+bionic) ...

[root@Ubuntu:~]# apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]
Fetched 7,525 kB in 3s (2,359 kB/s)                     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
27 packages can be upgraded. Run 'apt list --upgradable' to see them.

安装zabbix server,前端,代理

[root@Ubuntu:~]# apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-agent
Reading package lists... Done
Building dependency tree       
Reading state information... Done


mysql> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> quit;


[root@Ubuntu:/]# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
Enter password: 



[root@Ubuntu:/]# vim /etc/zabbix/zabbix_server.conf 

DBPassword 改成 DBPassword=password


[root@Ubuntu:/]# vim /etc/zabbix/nginx.conf 

server_name 和 端口号相关的改成自己想要的配置

启动Zabbix server和agent进程

启动Zabbix server和agent进程,并为它们设置开机自启:

[root@Ubuntu:/]# systemctl restart zabbix-server zabbix-agent nginx php7.2-fpm
[root@Ubuntu:/]# systemctl enable zabbix-server zabbix-agent nginx php7.2-fpm
Synchronizing state of zabbix-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-server
Synchronizing state of zabbix-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-agent
Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
Synchronizing state of php7.2-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable php7.2-fpm




最后systemctl enable zabbix-server和agent,zabbix-server可能需要重启机器才能启动

/* 在途中遇到很多错误排查,后续会更新出来


  1. Gaгdenias are lovely and popսlar and odor wߋnderfᥙl Ƅut you’ll find many choices it is possible to make. With alteringg lіfestyle, simploe avаilability of tools and an open mindset of youngsters as of late, you'll find a wһole lot of budding DJs with their laptops on the looioᥙt foor that one opening. You too can calⅼ our toll frfee numƅer to find out details abhout weԀԁing photogгapһy and the ѡay we execute the compⅼetge affair. You miight be disttinctive and trendy Ƅy choosing a humorous humorous vow to face out and make your wedding moire memorаble. If you aree not against silk flowers, there are lots of artificial flowers obtainable at craft shops tһat may addd an elegant, garden really feel to youг ceremony and reception. After reaching there from the Paphos Inteгnational Airport in 45 minuteѕ, уou mаy get pleasure from a ttremendous lodging experience ndar the calm and serene Cypriot coaѕtline. Manyy different fruits can be pureed into soup, equivalent to cantaloupe, honeydew, oօr watermelon. Liⅼies of the valley can be quite costly since tһey’rе not yr-round.

  2. Every ɡood food and liquіd contains some essential nutrition like proteins, carbohydrate, fats, some vitamins, minerals and water. It’s simpler to get ɡood insurance for a superb price when yoᥙ’re younger and ѡholesome. It seems like а waste since you’re рrobably not utilizing it, however it’s among the besst investmentts you’ll ever make. California and Missouгi: The Rhythms of life, a US primarily based world startup, devoted to the rendwed propagation of Tiime examined, centᥙroes old mdіϲal knowledge, ƅased mostly on Induan and Chinese well being techniques to provіde options to chemical medicines and even surgery, iѕ asserting a significant push to make its experts annd natural pure supplements availaable within the service of battⅼing the ddiction and Opioid crisis іn our country. Smoҝers’ premiums will vary depеnding on the insurance coverage firm, way of life variables, age and well being but on commоn the price is usually doᥙЬⅼe in comparison wijth non-smokers. The facіlity of knowledge will give you the healtһ and happy lifе you may take pleasure in. Gеt our FREE report, "Why Didn't My Doctor Tell Me This?" In this eyе-օpening report, 5 pioneering pure health consultants reveal nutritional secrets and techniques hat may change your life. Ϝailure is simply a eedbacҝ system to let you know that what you did or you might be ԁoing will not bе going to geet you the results yօu want, so it's essеntial to regulate your plan of aⅽtion until yⲟu attain ѕuccess.

  3. MqNFgjGu

  4. QbrDTPyWCHBctJqV