[comment]: # translation:outdated

[comment]: # ({1fdddac0-840eea1a})
# 9 Izplatīšanai specifiskas piezīmes par Nginx iestatīšanu Zabbix vajadzībām

[comment]: # ({/1fdddac0-840eea1a})

[comment]: # ({09288947-4b966990})
#### RHEL

RHEL 8, 9 un 10 versijā Nginx ir iekļauts AppStream — nav nepieciešami papildu repozitoriji.
Vienkārši iespējojiet un instalējiet to ar:

```bash
dnf module list nginx
dnf -y install nginx
```

RHEL 7 versijā Nginx var instalēt no CentOS 7 Extras repozitorija (ja izmantojat CentOS), izmantojot:

```bash
yum -y install nginx
```

Ja vēlaties pašas jaunākās upstream būves, konfigurējiet oficiālo NGINX repozitoriju failā `/etc/yum.repos.d/nginx.repo`:

```bash
cat > /etc/yum.repos.d/nginx.repo << 'EOF'
[nginx-stable]
name=nginx stable repo
baseurl=https://nginx.org/packages/rhel/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
EOF
dnf -y install nginx
```

[comment]: # ({/09288947-4b966990})

[comment]: # ({d5f7bb10-31bd54eb})
#### SLES 15

SUSE Linux Enterprise Server 15 sistēmā jums jākonfigurē `php-fpm` (ceļš uz konfigurācijas failu var nedaudz atšķirties atkarībā no servisa pakotnes):

```bash
cp /etc/php8/fpm/php-fpm.conf{.default,}
cp /etc/php8/fpm/php-fpm.d/www.conf{.default,}
sed -i 's/user = nobody/user = wwwrun/; s/group = nobody/group = www/' /etc/php8/fpm/php-fpm.d/www.conf
```

[comment]: # ({/d5f7bb10-31bd54eb})
