8 Zabbix在Nginx特定发行版中的注意事项

RHEL

Nginx仅在EPEL中可用:

  1. # yum -y install epel-release

SLES 12

在SUSE Linux Enterprise Server 12中,您需要添加Nginx存储库,然后再安装Nginx:

  1. zypper addrepo -G -t yum -c 'http://nginx.org/packages/sles/12' nginx

您还需要配置 php-fpm:

  1. cp /etc/php5/fpm/php-fpm.conf{.default,}
  2. sed -i 's/user = nobody/user = wwwrun/; s/group = nobody/group = www/' /etc/php5/fpm/php-fpm.conf

SLES 15

在 SUSE Linux Enterprise Server 15 中,您需要配置 php-fpm:

  1. cp /etc/php7/fpm/php-fpm.conf{.default,}
  2. cp /etc/php7/fpm/php-fpm.d/www.conf{.default,}
  3. sed -i 's/user = nobody/user = wwwrun/; s/group = nobody/group = www/' /etc/php7/fpm/php-fpm.d/www.conf