欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到夢飛科技

服務器租用

當前優惠活動:

利用nginx設置負載平衡基本教程

需要的預置情況:

1.openssl-fips-2.0.5.tar.gz 

2.pcre-8.32.tar.gz 

3.zlib-1.2.7.tar.gz

4.nginx-1.2.6.tar.gz

1)root用戶mkdir目次/usr/local/nginx/

2)將這4個包安排在該目次下,并tar -zxvf *.tar.gz解壓

3)安裝openssl-fips-2.0.5,

3.1)cd /usr/local/nginx/openssl-fips-2.0.5/

3.2)./config

3.3)make

3.4)make install

4)安裝pcre-8.32和zlib-1.2.7用*取代

4.1)cd /usr/local/nginx/*/

4.2)./configure

4.3)make

4.4)make install

5)安裝nginx-1.2.6

5.1)cd /usr/local/nginx/nginx-1.2.6/

5.2)

./configure --with-pcre=../pcre-8.32 --with-zlib=../zlib-1.2.7 --with-openssl=../openssl-fips-2.0.5

5.3)make

5.4)make install

6)檢測下安裝是否樂成

操作nginx配置負載均衡根基教程

這種環境暗示是對的。

然后查察一下/usr/local/nginx/conf/nginx.conf,主要想看看端標語,

在/usr/local/nginx/conf/路徑下有一個nginx.conf.default,其實我是用的這個,“原生態”的這個文件如下,

#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;
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
    #access_log  logs/access.log  main;
    sendfile        on;
    #tcp_nopush     on;
    #keepalive_timeout  0;
    keepalive_timeout  65;
    #gzip  on;
    server {
        listen       80;
        server_name  localhost;
        #charset koi8-r;
        #access_log  logs/host.access.log  main;
        location / {
            root   html;
            index  index.html index.htm;
        }
        #error_page  404              /404.html;
        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://127.0.0.1;
        #}
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}
        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }
    # another virtual host using mix of IP-, name-, and port-based configuration
    #
    #server {
    #    listen       8000;
    #    listen       somename:8080;
    #    server_name  somename  alias  another.alias;
    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}
    # HTTPS server
    #
    #server {
    #    listen       443;
    #    server_name  localhost;
    #    ssl                  on;
    #    ssl_certificate      cert.pem;
    #    ssl_certificate_key  cert.key;
    #    ssl_session_timeout  5m;
    #    ssl_protocols  SSLv2 SSLv3 TLSv1;
    #    ssl_ciphers  HIGH:!aNULL:!MD5;
    #    ssl_prefer_server_ciphers   on;
    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}
}

可以看到,端標語listen 80,因此,我測試下會見http://210.10.5.189:80/,5.189就是這臺陳設nginx處事的linux紅帽6

操作nginx配置負載均衡根基教程

所以陳設是正確的。

其實這里的頁面是目次/usr/local/nginx/html下面的,所以默認的狀態靜態頁面都是在此目次下

操作nginx配置負載均衡根基教程

夢飛科技 - 全球數據中心基礎服務領先供應商

Copyright © 2003-2019 MFISP.COM. 國外服務器租用 IDC公司 版權所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 错那县| 扎兰屯市| 迁安市| 盈江县| 雷波县| 高唐县| 涿州市| 澳门| 松溪县| 宜章县| 朝阳县| 梁平县| 新竹市| 昌乐县| 原平市| 灌阳县| 楚雄市| 舒城县| 沁阳市| 柳江县| 绿春县| 德阳市| 福泉市| 邻水| 石屏县| 仲巴县| 昂仁县| 南川市| 湖口县| 永康市| 黔东| 建水县| 温州市| 榆树市| 得荣县| 嘉定区| 晋宁县| 清苑县| 清丰县| 开江县| 开鲁县|