<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    JAVA—咖啡館

    ——歡迎訪問rogerfan的博客,常來《JAVA——咖啡館》坐坐,喝杯濃香的咖啡,彼此探討一下JAVA技術,交流工作經驗,分享JAVA帶來的快樂!本網站部分轉載文章,如果有版權問題請與我聯系。

    BlogJava 首頁 新隨筆 聯系 聚合 管理
      447 Posts :: 145 Stories :: 368 Comments :: 0 Trackbacks

    系統:Centos6.6  64

    Nginx:  http://nginx.org/en/download.html 目前最新版本1.9.4 我下載1.8.0

    下載模塊依賴性Nginx需要依賴下面3個包
    1.gzip 模塊需要 zlib 庫 ( 下載: http://www.zlib.net/ )
    2.rewrite 模塊需要 pcre 庫 ( 下載: http://www.pcre.org/ )
    3.ssl 功能需要 openssl 庫 ( 下載: http://www.openssl.org/ )

    依賴包安裝順序依次為:openssl、zlib、pcre, 然后安裝Nginx包

    如果沒有安裝c++編譯環境,還得安裝,通過yum install gcc-c++完成安裝
    下載完成后:



    下一步,編譯安裝

    openssl 

     

    [root@localhost] tar zxvf openssl-fips-2.0.9.tar.gz

    [root@localhost] cd openssl-fips-2.0.9

    [root@localhost] ./config && make && make install

     

    pcre:

     

    [root@localhost] tar zxvf pcre-8.36.tar.gz

    [root@localhost] cd pcre-8.36

    [root@localhost]  ./configure && make && make install

     

    zlib:

    [root@localhost]tar zxvf zlib-1.2.8.tar.gz

    [root@localhost] cd zlib-1.2.8

    [root@localhost]  ./configure && make && make install

     

    最后安裝nginx

    [root@localhost]tar zxvf nginx-1.8.0.tar.gz

    [root@localhost] cd nginx-1.8.0

    [root@localhost]  ./configure && make && make install


    安裝完成后,可啟動nginx

    啟動命令:/usr/local/nginx/sbin/nginx
    發現報錯了:
    error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
    經網上查詢,這是linux的通病

    [root@localhost nginx]# sbin/nginx 
    sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
    [root@localhost nginx]# error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
    [root@localhost nginx]# whereis libpcre.so.1
    libpcre.so: /lib64/libpcre.so.0 /usr/local/lib/libpcre.so /usr/local/lib/libpcre.so.1
    [root@localhost nginx]# ln -s /usr/local/lib/libpcre.so.1 /lib64
    [root@localhost nginx]# sbin/nginx   
                               
    先找到libpcre.so.1所在位置,然后做個軟鏈接就可以了。
    查看是否已啟動:


    通過瀏覽器訪問:


    看到這個就說明nginx安裝并啟動成功。

     

    ps:

    啟動:/usr/local/nginx/sbin/nginx
    停止/重新加載:/usr/local/nginx/sbin/nginx -s stop(quit、reload)
    驗證配置文件是否合法:/usr/local/nginx/sbin/nginx -t
    命令幫助:/usr/local/nginx/sbin/nginx -h
    posted on 2016-04-22 17:11 rogerfan 閱讀(319) 評論(0)  編輯  收藏 所屬分類: 【開源技術】
    主站蜘蛛池模板: 亚洲妇女熟BBW| 亚洲高清在线mv| 老司机午夜精品视频在线观看免费| 2021精品国产品免费观看| 亚洲va国产va天堂va久久| 国产在线观看免费av站| 麻豆国产VA免费精品高清在线 | 亚洲av无码成人精品区一本二本| 国产va免费精品观看精品| 国产成人精品免费直播| 亚洲精品在线观看视频| 亚洲欧洲精品视频在线观看| 91大神在线免费观看| 亚洲一区无码精品色| 精品国产污污免费网站入口在线| 国产精品亚洲高清一区二区| 中文字幕无线码免费人妻| 亚洲AV中文无码乱人伦下载| 中文字幕视频免费| 亚洲一卡2卡3卡4卡5卡6卡| 精品免费国产一区二区| 成人午夜免费视频| 国产特级淫片免费看| 成人在线免费视频| 亚洲av日韩av高潮潮喷无码| jizz18免费视频| 亚洲第一区香蕉_国产a| 永久免费的网站在线观看| 黄网站在线播放视频免费观看| 国内精品99亚洲免费高清| 67194国产精品免费观看| 亚洲爆乳无码精品AAA片蜜桃| 国产偷窥女洗浴在线观看亚洲| 久久久久国产精品免费网站| 亚洲 欧洲 日韩 综合在线| 国产免费午夜a无码v视频| 欧美日韩亚洲精品| 久久综合九九亚洲一区| 卡1卡2卡3卡4卡5免费视频| 久久av免费天堂小草播放| 中中文字幕亚洲无线码|