plantegg 发表于 2017-12-23 18:47:33

安装phpredisadmin linux nginx服务器下

server {  listen 8080;
  server_namelocalhost;
  root    /home/www/phpRedisAdmin;
  access_log/home/log/phpRedisAdmin.access.logmain;
  

  fastcgi_connect_timeout 300;
  fastcgi_send_timeout 600;
  fastcgi_read_timeout 600;
  fastcgi_buffer_size 128k;
  fastcgi_buffers 8 128k;
  fastcgi_busy_buffers_size 256k;
  fastcgi_temp_file_write_size 256k;
  

  location / {
  indexindex.html index.htm index.php;
  concat on;
  concat_max_files 20;
  concat_delimiter "\n";
  }
  location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  {
  expires      30d;
  access_log off;
  log_not_found on;
  }
  location ~ .*\.(js|css)?$
  {
  expires      12h;
  access_log off;
  log_not_found on;
  }
  location = /favicon.ico {
  log_not_found off;
  }
  location ~ \.php$ {
  fastcgi_pass   127.0.0.1:9000;
  #fastcgi_pass   unix:/dev/shm/php-cgi.sock;
  fastcgi_indexindex.php;
  fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;
  include      fastcgi_params;
  }
  location /nginx-status {
  stub_status on;
  access_logoff;
  }
  
}
  
页: [1]
查看完整版本: 安装phpredisadmin linux nginx服务器下