<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ### 1.下載nginx安裝包 下載地址:[http://nginx.org/en/download.html](http://nginx.org/en/download.html) ### 2.解壓 ``` tar -zxvf nginx-1.18.0.tar.gz ``` ![](https://img.kancloud.cn/66/61/6661b49dc2a11f08e5e152453eacb0ea_714x177.png) ### 3.安裝執行編譯依賴 ``` yum -y install gcc openssl openssl-devel pcre-devel zlib zlib-devel ``` ![](https://img.kancloud.cn/38/68/386844e82d92005c96a14194de514344_931x244.png) ### 4.編譯安裝 ``` ./configure //如需部署https需安裝ssl模塊請執行 ./configure --with-http_ssl_module make make install ``` ![](https://img.kancloud.cn/10/be/10bedb59ebd2fcdf590d951e85c62564_1271x322.png) ### 5.啟動 ``` cd /sbin ./nginx ``` ### 6.驗證nginx是否啟動 關閉防火墻訪問地址默認80端口 ``` //查看nginx進程 ps -ef | grep nginx //關閉nginx進程 kill -9 15623 ``` ![](https://img.kancloud.cn/45/0c/450cd5f03c096da94956aa2e11676e0e_689x82.png) ### 7.設置nginx轉發代理配置目錄 ``` cd /usr/local/nginx/conf vi nginx.conf ``` ![](https://img.kancloud.cn/02/e4/02e4c0d52e3e062f63221e8d4e0bb203_1232x104.png) 添加目錄路徑,可按需求設置 ``` //匹配conf.d下以.conf結尾的文件 include /usr/local/nginx/conf.d/*.conf; ``` ![](https://img.kancloud.cn/e0/ec/e0ecbe6f29312b67af6834119e0f8bfc_513x389.png) ### 8.常用命令:進入nginx/sbin ``` 1.重新加載配置文件: ./nginx -s reload 2.停止nginx訪問: ./nginx -s stop 3.啟動nginx: ./nginx ``` ### 9.前端路徑和端口配置:進入nginx/conf.d ``` 查看配置文件:vim xxx.conf 修改:i 退出修改::q 退出并保存::wq ``` ![](https://img.kancloud.cn/7d/bd/7dbdff715ccd3998c54562ceea2f0705_1399x127.png) ![](https://img.kancloud.cn/b7/ff/b7ff3be7c7e1b4400b6745af1383bfdf_1540x930.png) ### 10.防火墻 ``` 查看已開放的tcp/ip端口:netstat -tuln 添加9000端口:sudo firewall-cmd --zone=public --add-port=9000/tcp --permanent 重啟防火墻:sudo firewall-cmd --reload ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看