nginx安装

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

缺少依赖?

yum -y install zlib-devel openssl-devel pcre-devel

创建软连接?

ln -s /usr/local/nginx/sbin/nginx /usr/bin


GLIBC_2.14

strings /lib64/libc.so.6 | grep GLIBC

GLIBC_2.14
mkdir build
cd build
../configure --prefix=/usr/local/glibc-2.14.1 --with-headers=/usr/include
make j4
(LD_LIBRARY_PATH=)(make)
make install
(whereis ld.so.conf)
export LD_LIBRARY_PATH=/usr/local/glibc-2.14.1/lib:$LD_LIBRARY_PATH 
ln -s  /usr/local/glibc-2.14.1/lib/libc-2.14.1.so  /lib64/libc.so.6

 

编码问题:

检查:locale

cd build

make localedata/install-locales

/etc/sysconfig/i18n

LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
LC_ALL=
export LC_ALL

 

安装glicb_2.14后时间问题:

Thu Feb 27 10:22:21 Local time zone must be set--see zic manual page 2020

 

ll /usr/local/glibc-2.14/etc/
localtime -> ../share/zoneinfo/Factory

cd /usr/local/glibc-2.14/etc/

mv localtime localtime.bak 

ln -s /usr/local/glibc-2.14/share/zoneinfo/Asia/Shanghai localtime

 

server {
        listen       443 ssl;
        server_name  localhost;
        
        if ($request_method !~ ^(GET|PUT|POST|DELETE)$ ) {
            return 403;
        }
        
        #proxy_intercept_errors on;
        #error_page  404  /40x.html;
        #location = /40x.html {
        #    root   html;
        #}
        #error_page  500  /50x.html;
        #location = /50x.html {
        #    root   html;
        #}

        ssl_certificate      D://aaa.crt;  #
        
        ssl_certificate_key  D://aaa.key;  #

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location / {
          proxy_pass http://localhost:8086;
          proxy_cookie_path / "/; httponly; secure";
          
        }
        
    }

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值