7 关于Zabbix配置Nginx的特别说明

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