wget <https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+bionic_all.deb>
sudo dpkg -i zabbix-release_5.0-1+bionic_all.deb
sudo apt update
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-agent mysql-server
sudo mysql_secure_installation
sudo mysql -uroot -p
Enter password:
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix. to zabbix@localhost identified by '1qaz@WSX';*
mysql> exit
#Import database shema (password: 1qaz@WSX)
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
sudo nano /etc/zabbix/zabbix_server.conf
Change/uncomment the parameters:
DBHost=localhost