Repository navigation
Zabbix server 44
Sivaldo Martins edited this page Apr 25, 2020
·
5 revisions
https://repo.zabbix.com/zabbix/4.4/debian/pool/main/z/zabbix-release/
* Debian 10.0
wget https://repo.zabbix.com/zabbix/4.4/debian/pool/main/z/zabbix-release/zabbix-release_4.4-1%2Bbuster_all.deb
* Apache/MySQL
apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-get zabbix-sender
* Ngix/MySQL
apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-get zabbix-sender
* Apache/PostgreSQL
apt install zabbix-server-pgsql zabbix-frontend-php php7.3-pgsql zabbix-apache-conf
* Ngix/PostgreSQL
apt install zabbix-server-pgsql zabbix-frontend-php php7.3-pgsql zabbix-nginx-conf
service mysql stop
mysqld_safe --skip-grant-tables &
mysql
UPDATE mysql.user SET Password=PASSWORD('123456') WHERE User='root';
FLUSH PRIVILEGES; exit;
mysqladmin -u root -p shutdown
service mysql start
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 'zabbix';
mysql> quit;
zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix
su - postgres
createuser --pwprompt zabbix
createdb -O zabbix zabbix
zcat /usr/share/doc/zabbix-server-pgsql/create.sql.gz | psql -U zabbix zabbix
vim /etc/zabbix/zabbix_server.conf
DBPassword=zabbix
*Apache
vim /etc/apache2/conf-available/zabbix.conf
php_value date.timezone America/Sao_Paulo
*Ngix
(descomentar)
vim /etc/zabbix/nginx.conf
# listen 80;
# server_name example.com;
vim /etc/zabbix/php-fpm.conf
;php_value[date.timezone] = America/Sao_Paulo
*Zabbix/Apache
systemctl restart zabbix-server apache2
systemctl enable zabbix-server apache2
*Zabbix/Ngix
systemctl restart zabbix-server nginx php7.3-fpm
systemctl enable zabbix-server nginx php7.3-fpm