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

歡迎來(lái)到云服務(wù)器

服務(wù)器租用

利用nginx設(shè)置負(fù)載平衡基本教程

需要的預(yù)置情況:

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用戶(hù)mkdir目次/usr/local/nginx/

2)將這4個(gè)包安排在該目次下,并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)檢測(cè)下安裝是否樂(lè)成

利用nginx設(shè)置負(fù)載平衡基本教程

這種環(huán)境暗示是對(duì)的。

然后查察一下/usr/local/nginx/conf/nginx.conf,主要想看看端標(biāo)語(yǔ),

在/usr/local/nginx/conf/路徑下有一個(gè)nginx.conf.default,其實(shí)我是用的這個(gè),“原生態(tài)”的這個(gè)文件如下,

#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;
    #    }
    #}
}

可以看到,端標(biāo)語(yǔ)listen 80,因此,我測(cè)試下會(huì)見(jiàn)http://210.10.5.189:80/,5.189就是這臺(tái)陳設(shè)nginx處事的linux紅帽6

利用nginx設(shè)置負(fù)載平衡基本教程

所以陳設(shè)是正確的。

其實(shí)這里的頁(yè)面是目次/usr/local/nginx/html下面的,所以默認(rèn)的狀態(tài)靜態(tài)頁(yè)面都是在此目次下

利用nginx設(shè)置負(fù)載平衡基本教程

騰訊云代理

Copyright © 2003-2021 MFISP.COM. 國(guó)外vps服務(wù)器租用 夢(mèng)飛云服務(wù)器租用 版權(quán)所有 ? 粵ICP備11019662號(hào)

主站蜘蛛池模板: 喀喇沁旗| 德令哈市| 栖霞市| 临清市| 行唐县| 河西区| 阿合奇县| 呈贡县| 乡城县| 莱州市| 安丘市| 方山县| 垣曲县| 盱眙县| 临城县| 信阳市| 滦南县| 绥滨县| 岚皋县| 山东| 乾安县| 惠来县| 革吉县| 衡水市| 海安县| 桂东县| 双峰县| 清镇市| 天柱县| 陇川县| 天等县| 龙州县| 梧州市| 永丰县| 鲁山县| 怀远县| 南宫市| 昭通市| 通化市| 乐亭县| 连州市|