hx0011yy 发表于 2018-11-12 08:44:31

Nginx+PHP-select * from Mibon;

userwww www;  worker_processes 8;
  error_log/data1/logs/nginx_error.logcrit;
  pid      /usr/local/webserver/nginx/nginx.pid;
  #Specifies the value for maximum file descriptors that can be opened by this process.
  worker_rlimit_nofile 51200;
  events
  {
  use epoll;
  worker_connections 51200;
  }
  http
  {
  include       mime.types;
  default_typeapplication/octet-stream;
  charsetutf-8;
  server_names_hash_bucket_size 128;
  sendfile on;
  tcp_nopush   on;
  keepalive_timeout 60;
  tcp_nodelay on;
  fastcgi_connect_timeout 60;
  fastcgi_send_timeout 180;
  fastcgi_read_timeout 180;
  fastcgi_buffer_size 128k;
  fastcgi_buffers 4 128k;
  fastcgi_busy_buffers_size 128k;
  fastcgi_temp_file_write_size 128k;
  fastcgi_temp_path /dev/shm;
  gzip on;
  gzip_min_length1k;
  gzip_buffers   4 8k;
  gzip_http_version 1.1;
  gzip_types       text/plain application/x-javascript text/css text/html application/xml;
  server
  {
  listen       80;
  server_nameblog.s135.com;
  index index.html index.htm index.php;
  root/data0/htdocs/blog;
  if (-d $request_filename)
  {
  rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent;
  }
  location ~ .*\.php?$
  {
  include fcgi.conf;
  #fastcgi_passunix:/tmp/php-cgi.sock;
  fastcgi_pass127.0.0.1:9000;
  fastcgi_index index.php;
  }
  log_formataccess'$remote_addr - $remote_user [$time_local] "$request" '
  '$status $body_bytes_sent "$http_referer" '
  '"$http_user_agent" $http_x_forwarded_for';
  access_log/data1/logs/access.logaccess;
  }
  server
  {
  listen       80;
  server_namewww.s135.com;
  index index.html index.htm index.php;
  root/data0/htdocs/www;
  if (-d $request_filename)
  {
  rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent;
  }
  location ~ .*\.php?$
  {
  include fcgi.conf;
  #fastcgi_passunix:/tmp/php-cgi.sock;
  fastcgi_pass127.0.0.1:9000;
  fastcgi_index index.php;
  }
  log_formatwwwlogs'$remote_addr - $remote_user [$time_local] "$request" '
  '$status $body_bytes_sent "$http_referer" '
  '"$http_user_agent" $http_x_forwarded_for';
  access_log/data1/logs/wwwlogs.logwwwlogs;
  }
  server
  {
  listen80;
  server_namestatus.blog.s135.com;
  location / {
  stub_status on;
  access_log   off;
  }
  }
  }

页: [1]
查看完整版本: Nginx+PHP-select * from Mibon;