Escolar Documentos
Profissional Documentos
Cultura Documentos
md 1/26/2021
Definir timezone
timedatectl set-timezone America/Sao_Paulo
Instalar utilitários
yum install -y net-tools vim nano epel-release wget curl tcpdump
Desabilitar SELINUX
Verificar status atual do SELINUX
sestatus
2/8
instalacao_all_in_one_centos7_zbxmysql.md 1/26/2021
cat /etc/selinux/config
vim /etc/selinux/config
SELINUX=disabled
setenforce 0
sestatus
Instalando Mysql 7
Instalar repositório e pacote do MySQL
rpm -ivh http://repo.mysql.com/mysql80-community-release-el7.rpm
yum install -y mysql-community-server
Output
3/8
instalacao_all_in_one_centos7_zbxmysql.md 1/26/2021
mysql_secure_installation
The existing password for the user account root has expired. Please set a
new password.
Do you wish to continue with the password provided?(Press y|Y for Yes, any
other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) :
n
... skipping.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
4/8
instalacao_all_in_one_centos7_zbxmysql.md 1/26/2021
Remove test database and access to it? (Press y|Y for Yes, any other key
for No) : y
- Dropping test database...
Success.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
Se não usar a opção mysql_nativo_password você terá um erro ao iniciar o Zabbix server
26232:20210121:104600.402 [Z3001] connection to database 'zabbix' failed: [2059]
Authentication plugin 'caching_sha2_password' cannot be loaded:
/usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object
file: No such file or directory
5/8
instalacao_all_in_one_centos7_zbxmysql.md 1/26/2021
Zabbix!Maratona4
Output:
...
...
...
166 rows in set (0.01 sec)
Instalar frontend
Enable Red Hat Software Collections
Habilitar Red Hat Software Collections
yum install centos-release-scl
[zabbix-frontend]
...
enabled=1
...
Configurando o PHP
vim /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
php_value[date.timezone] = America/Sao_Paulo
7/8
instalacao_all_in_one_centos7_zbxmysql.md 1/26/2021
8/8