7 关于Zabbix配置Nginx的特别说明
SLES 12
在SUSE Linux Enterprise Server 12中,需要在安装Nginx之前添加Nginx源:
zypper addrepo -G -t yum -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