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

歡迎來(lái)到夢(mèng)飛科技

服務(wù)器租用

當(dāng)前優(yōu)惠活動(dòng):

打造高并發(fā)的Nginx處事器情況

空話(huà)不多說(shuō),直接上呼吁和代碼,不清楚的自行補(bǔ)課!

tar zxvf libunwind-1.1.tar.gz

cd libunwind-1.1/

CFLAGS=-fPIC ./configure

make CFLAGS=-fPIC && make CFLAGS=-fPIC install

/sbin/ldconfig

cd../

# 假如系統(tǒng)是64位的需要先安裝上面的 libunwind 庫(kù),32位系統(tǒng)則不需要安裝

# 32位系統(tǒng),不需要安裝 libunwind,可是必然要添加 –enable-frame-pointers參數(shù)

# 64位系統(tǒng),不需要添加 –enable-frame-pointers參數(shù)

tar zxvf gperftools-2.4.tar.gz

cd gperftools-2.4/

./configure --enable-frame-pointers

make && make install

/sbin/ldconfig

cd../

# 在高CPU焦點(diǎn)數(shù)環(huán)境下安裝

tar jxvf  jemalloc-4.0.4.tar.bz2

cd jemalloc-4.0.4/

./configure

make && make install

cd../

if `getconf WORD_BIT`==32 ]&&`getconf LONG_BIT`==64 ];then

    OS_BIT=64

else

    OS_BIT=32

fi

if -f "/usr/local/lib/libjemalloc.so" ];then

    if "$OS_BIT"=='64' ];then

        ln -s /usr/local/lib/libjemalloc.so.2  /usr/lib64/libjemalloc.so.1

       ln -s /usr/local/lib/libjemalloc.so.2  /usr/lib64/libjemalloc.so.2

    else

        ln -s /usr/local/lib/libjemalloc.so.2  /usr/lib/libjemalloc.so.1

       ln -s /usr/local/lib/libjemalloc.so.2  /usr/lib/libjemalloc.so.2

    fi

    echo '/usr/local/lib' /etc/ld.so.conf.d/local.conf

/sbin/ldconfig

    echo "jemalloc moduleinstall successfully! "

else

    echo "jemalloc installfailed, Please contact the author! "

fi

tar zxvf nginx-1.9.12.tar.gz

tar zxvf openssl-1.0.2e.tar.gz

cd nginx-1.9.12/

[-e /usr/local/lib/libtcmalloc.so && { je_tc_malloc=2; malloc_module="--with-google_perftools_module"}

[-e /usr/local/lib/libjemalloc.so &&  je_tc_malloc=1; malloc_module="--with-ld-opt='-ljemalloc'"}

echo $malloc_module

./configure --user=www --group=www --prefix=/usr/local/nginx --with-ipv6 --with-http_gzip_static_module --with-http_v2_module --with-http_realip_module $malloc_module --with-http_stub_status_module --with-http_sub_module --with-http_flv_module --with-http_ssl_module --with-openssl=../openssl-1.0.2e

make && make install

/sbin/ldconfig

cd../

#建設(shè)Nginx設(shè)置文件,在/usr/local/nginx/conf/目次中建設(shè)nginx.conf文件:

rm -fr  /usr/local/nginx/conf/nginx.conf

vi /usr/local/nginx/conf/nginx.conf

user  www www;

# nginx 歷程數(shù),發(fā)起憑據(jù)CPU數(shù)目來(lái)指定,一般為它的倍數(shù) (如,2個(gè)四核的CPU計(jì)為8)

# worker_processes 8;

# worker_cpu_affinity 00000001 00000010 00000100 00001000 0001000000100000 01000000 10000000;

# worker_processes 16;

夢(mèng)飛科技 - 全球數(shù)據(jù)中心基礎(chǔ)服務(wù)領(lǐng)先供應(yīng)商

Copyright © 2003-2019 MFISP.COM. 國(guó)外服務(wù)器租用 IDC公司 版權(quán)所有 ? 粵ICP備11019662號(hào)

主站蜘蛛池模板: 怀仁县| 永川市| 房山区| 昭苏县| 菏泽市| 隆回县| 通许县| 塔河县| 中西区| 湘乡市| 曲沃县| 肃南| 遵义县| 靖西县| 齐齐哈尔市| 延津县| 黔西县| 称多县| 肇源县| 宁陵县| 米林县| 固安县| 敦化市| 安丘市| 海南省| 蓬溪县| 汾西县| 通化市| 日照市| 上栗县| 那坡县| 镇江市| 东阿县| 闻喜县| 翁牛特旗| 五峰| 贺州市| 寿阳县| 彭州市| 城固县| 阜平县|