./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";
}
}