zoukankan      html  css  js  c++  java
  • 搭建lnmp环境,nginx的配置文件/etc/nginx/nginx.conf

    #user nobody;
    worker_processes 1;
    
    #error_log logs/error.log;
    #error_log logs/error.log notice;
    #error_log logs/error.log info;
    
    #pid logs/nginx.pid;
    
    
    events {
        worker_connections 1024;
    }
    
    http {
        include mime.types;
        default_type application/octet-stream;
    
        sendfile on;
    
        keepalive_timeout 65;
    
        server {
            listen 80;
            server_name localhost;
    
            location / {
                root /usr/share/nginx/html;
                index index.php index.html index.htm;
            }
    
            error_page 500 502 503 504 /50x.html;
                location = /50x.html {
                root html;
            }
    
            location ~ .php$ {
                root           /usr/share/nginx/html;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;   
                include        fastcgi_params;
            }
        }
    }
    

      

  • 相关阅读:
    if..endif 语法
    WordPress程序流程分析
    php锁表
    jQuery入门必须掌握的一些API
    集合栈
    回文链表
    链式A+B
    链表分割
    访问单个节点的删除
    链表中倒数第k个结点
  • 原文地址:https://www.cnblogs.com/heyongzhen/p/9157023.html
Copyright © 2011-2022 走看看