lyd2004888 发表于 2018-1-1 13:45:15

zabbix安装、部署、lnmp(一)

user nginx nginx;  
worker_processes
8;  
error_log logs
/error.log info;  
pid logs
/nginx.pid;  
events {
  
use epoll;
  
worker_connections
1024;  
}
  
http {
  
include mime.types;
  
default_type application
/octet-stream;  
log_format main
'$remote_addr - $remote_user [$time_local] "$request" '  
'$status $body_bytes_sent "$http_referer" '
  
'"$http_user_agent" "$http_x_forwarded_for"';
  
sendfile on;
  
tcp_nopush on;
  
keepalive_timeout 65;
  
gzip on;
  
server {
  
listen 80;
  
server_name localhost;
  
access_log logs/host.access.log main;
  
index index.php index.html index.htm;
  
root /zabbix_web;
  
location /{
  
try_files $uri $uri//index.php?$args;
  
}
  
location ~.*\.(php)?$ {
  
fastcgi_split_path_info ^(.+.php)(.*)$;
  
include fastcgi_params;
  
fastcgi_pass unix:/var/run/fastcgi/fastcgi.socket;
  
fastcgi_index index.php;
  
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  
include fastcgi_params;
  
}
  
}
  
}
页: [1]
查看完整版本: zabbix安装、部署、lnmp(一)