Zabbix监控内网环境实现流程
一. 部署监控服务器(服务器IP:192.168.2.204)
- 安装LNMP环境
(1)安装nginx依赖包
yum -y install gcc pcre-devel openssl-devel
(2)下载和解压nginx源码包
下载地址:http://nginx.org/en/download.html
tar -xf nginx-1.12.2.tar.gz
(3)编译安装
./configure --with-http_ssl_module
make && make install
(4)安装php与mysql数据库
yum -y install php php-mysql php-fpm
(5)修改nginx配置文件,支持php动态网站
vim /usr/local/nginx/conf/nginx.conf
http{
fastcgi_buffers 8 16k; //缓存php生成的页面内容,8个16k
fastcgi_buffer_size 32k; //缓存php生产的头部信息
fastcgi_connect_timeout 300; //连接PHP的超时时间fastcgi_send_timeout 300; //发送请求的超时时间fastcgi_read_timeout 300; //读取请求的超时时间location ~ .php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
(6)