麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 網(wǎng)站 > WEB開發(fā) > 正文

linux下安裝nginx詳細(xì)步驟

2024-04-27 15:16:53
字體:
供稿:網(wǎng)友


先將需要的壓縮包下載好,放到/usr/local下nginx-1.10.1.tar.gzopenssl-1.0.2h.tar.gzpcre-8.38.tar.gzzlib-1.2.8.tar.gz

1.cd /usr/local2.安裝GCC 和GCC-C++   yum install gcc   yum install -y gcc gcc-c++3.安裝pcre庫   cd /usr/local/   tar -zxvf pcre-8.38.tar.gz   cd pcre-8.38   ./configure   make   make install4.安裝zlib庫   cd /usr/local/    tar -zxvf zlib-1.2.8.tar.gz    cd zlib-1.2.8/   ./configure   make   make install5.安裝ssl   cd /usr/local/   tar -zxvf openssl-1.0.2h.tar.gz   cd openssl-1.0.2h   ./config   make   make install6.安裝nginx   cd /usr/local/   tar -zxvf nginx-1.10.1.tar.gz   ./configure --PRefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_ssl_module   執(zhí)行此步若出現(xiàn)報錯1,如下,則執(zhí)行yum -y install openssl-devel   若出現(xiàn)抱錯2,如下,則執(zhí)行   yum downgrade openssl   yum install openssl-devel   然后再執(zhí)行  ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_ssl_module   make   make install   安裝完成7.啟動nginxcd /usr/local/nginx./sbin/nginx

啟動時若出現(xiàn)nginx:[emerg] getpwnam("www")failed則將配置文件nginx.conf中user  nobody; 的注釋去掉----------------------------------------------------------------------------報錯1:./configure: error: SSL modules require the OpenSSL library.You can either do not enable the modules, or install the OpenSSL libraryinto the system, or build the OpenSSL library statically from the sourcewith nginx by using --with-openssl=<path> option.

報錯2:Error:  Multilib version problems found. This often means that the root       cause is something else and multilib version checking is just       pointing out that there is a problem. Eg.:

         1. You have an upgrade for openssl which is missing some            dependency that another package requires. Yum is trying to            solve this by installing an older version of openssl of the            different architecture. If you exclude the bad architecture            yum will tell you what the root cause is (which package            requires what). You can try redoing the upgrade with            --exclude openssl.otherarch ... this should give you an error            message showing the root cause of the problem.

         2. You have multiple architectures of openssl installed, but            yum can only see an upgrade for one of those arcitectures.            If you don't want/need both architectures anymore then you            can remove the one with the missing update and everything            will work.

         3. You have duplicate versions of openssl installed already.            You can use "yum check" to get yum show these errors.

       ...you can also use --setopt=protected_multilib=false to remove       this checking, however this is almost never the correct thing to       do as something else is very likely to go wrong (often causing       much more problems).

       Protected multilib versions: openssl-1.0.1e-15.el6.i686 != openssl-1.0.1                                                                                         -48.el6_8.1.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 欧美成人一级片 | 久久久久久高清 | 亚洲一区二区三区四区精品 | 91av久久 | 免费黄色一级网站 | 麻豆蜜桃在线观看 | 免费久久久久 | 久久久久亚洲精品国产 | xxxeexxx性国产 | 久久久精品视频国产 | 中文字幕视频在线播放 | 草逼一区 | 国产精品免费久久久久 | 久草手机视频在线观看 | 午夜视频免费在线观看 | 久久久久久久久久久综合 | 成人在线观看一区二区 | 久久亚洲网 | 多人乱大交xxxxx变态 | 黄色网址免费进入 | 日韩黄网站| 黄网站在线免费看 | 欧美成人精品一级 | 久久久久九九九女人毛片 | 精品亚洲va在线va天堂资源站 | 国产三级国产精品国产普男人 | 天天黄色片 | 国产精品成人亚洲一区二区 | 久久久久免费电影 | 亚洲国产精品久久久久久久久久 | 成人情欲视频在线看免费 | 久久久久国 | 精品一区视频 | 久草在线视频首页 | www.9191.com| 国产精品区一区二区三区 | 亚洲成人高清在线观看 | 欧美色大成网站www永久男同 | 亚洲国产高清一区 | 欧美日韩亚州综合 | 国产午夜精品一区 |