zoukankan      html  css  js  c++  java
  • nginx 配置文件

    #基于ip设置

    server{
    listen 80;
    server_name 192.168.116.129;
    location /{
        root /usr/etc/ngin/html/ip;
        index index.html;
      }

    }

    #基于域名

    server{
      listen 80;
      server_name z.com;
      location /{
        root z.com;
        index index.html;
      }

    }

    #基于端口号

    server{
      listen 2022;
      server_name z.com;
      location /{
        root /var/www/html;
        index index.html;
      }

    }

    # -s reload 重新读取配置文件

    # -t 编译配置文件是否正确

    负载均衡配置

    代理到一台服务器:

    location / {
                   proxy_pass      http://192.168.18.201;
           }
     
    连接状态 

    location /status {
      stub_status on;
      access_log off;
      allow 192.168.170.151;
      deny all;
    }

     安装压力测试 ab  # yum install httpd-tools

    配置文件详解:http://blog.csdn.net/tjcyjd/article/details/50695922

  • 相关阅读:
    Dom修改元素样式
    URL百分号编码
    accesskey附上一些实例
    dom实例
    dom 创建时间
    关系运算符
    赋值运算符
    js图片随机切换
    js自增图片切换
    transform-origin盒子旋转位置
  • 原文地址:https://www.cnblogs.com/lijiasnong/p/6011805.html
Copyright © 2011-2022 走看看