全国直销电话:4006-854-568
IT-technology
以人为本,众志成城,以“用户至上”.“服务上乘”为原则,
追求产品和服务高质量,努力实现与客户之间真诚有效的沟通,
不断地圆梦、奔跑与腾飞。
新闻动态   NEWS
采用LNMP环境用Zabbix6.2搭建一个实用的中小企业IT运维监控平台-北京赛维博信科技发展有限公司
来源:本文摘自网络,如有侵权请联系删除 | 作者:svbx001 | 发布时间: 2022-11-08 | 9795 次浏览 | 分享到:
2.4配置lnmp环境
2.4.1配置nginx

这里先修改nginx配置文件,用来包括php-fpm功能:

备份一下:

[root@NEWZABBIXSERVER conf]# cp nginx.conf nginx.conf.ori.20221102
[root@NEWZABBIXSERVER conf]# 

然后编辑:

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        location ~ .php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /usr/local/nginx/html$fastcgi_script_name;
            include        fastcgi_params;
        }
 

服务热线

1391-024-6332