8 Zabbix在Nginx特定发行版中的注意事项
RHEL
Nginx仅在EPEL中可用:
# dnf -y install epel-release
SLES 12
在SUSE Linux Enterprise Server 12中,您需要添加Nginx存储库,然后再安装Nginx:
zypper addrepo -G -t dnf -c 'http://nginx.org/packages/sles/12' nginx
您还需要配置 php-fpm
:
cp /etc/php5/fpm/php-fpm.conf{.default,}
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
:
cp /etc/php7/fpm/php-fpm.conf{.default,}
cp /etc/php7/fpm/php-fpm.d/www.conf{.default,}
sed -i 's/user = nobody/user = wwwrun/; s/group = nobody/group = www/' /etc/php7/fpm/php-fpm.d/www.conf