1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      Linux服務(wù)器---squid緩存-創(chuàng)新互聯(lián)

      Squid 緩存

      青州ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為成都創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:13518219792(備注:SSL證書合作)期待與您的合作!

      代理服務(wù)器會(huì)在本地硬盤設(shè)置緩存,這樣可以提高網(wǎng)絡(luò)效率

      1 修改squid配置文件“/etc/squid/squid.conf”,參數(shù)“cache_dir_ufs”就是設(shè)置緩存目錄的

      [root@localhost   wj]#  gedit /etc/squid/squid.conf

      # Uncomment and   adjust the following to add a disk cache directory.

      cache_dir ufs /var/spool/squid 100 16 256    // 緩存目錄 var/spool/squid ,大小 100M

       

      2 、重啟squid服務(wù)

      [root@localhost   wj]#  service squid start

      正在啟動(dòng)  squid .                                          [ 確定 ]

      [root@localhost   wj]# gedit /etc/squid/squid.conf

      [root@localhost   wj]# service squid restart

      停止  squid 2018/08/15   11:17:31| WARNING cache_mem is larger than total disk cache space!

      ................                                           [ 確定 ]

      init_cache_dir   /var/spool/squid...  正在啟動(dòng)  squid .       [ 確定 ]

      [root@localhost   wj]#

       

      3 、查看squid緩存目錄,其中swap.state會(huì)隨著訪問網(wǎng)頁的增多二逐漸增大

      [root@localhost   wj]#  ls -al /var/spool/squid/

      總用量  76

      drwxr-x---   18 squid squid 4096 8   15 11:18 .

      drwxr-xr-x.  15 root    root  4096 8   15 10:50 ..

      drwxr-x---  258 squid squid 4096 8   15 11:18 00

      drwxr-x---  258 squid squid 4096 8   15 11:18 01

      drwxr-x---  258 squid squid 4096 8   15 11:18 02

      drwxr-x---  258 squid squid 4096 8   15 11:18 03

      drwxr-x---  258 squid squid 4096 8   15 11:18 04

      drwxr-x---  258 squid squid 4096 8   15 11:18 05

      drwxr-x---  258 squid squid 4096 8   15 11:18 06

      drwxr-x---  258 squid squid 4096 8   15 11:18 07

      drwxr-x---  258 squid squid 4096 8   15 11:18 08

      drwxr-x---  258 squid squid 4096 8   15 11:18 09

      drwxr-x---  258 squid squid 4096 8   15 11:18 0A

      drwxr-x---  258 squid squid 4096 8   15 11:18 0B

      drwxr-x---  258 squid squid 4096 8   15 11:18 0C

      drwxr-x---  258 squid squid 4096 8   15 11:18 0D

      drwxr-x---  258 squid squid 4096 8   15 11:18 0E

      drwxr-x---  258 squid squid 4096 8   15 11:18 0F

      -rw-r-----    1 squid squid   52 8   15 11:18 swap.state

      [root@localhost wj]#

       

      4 、定期清理緩存

      在squid的緩存目錄下,swap.state慢慢的變大,用戶需要定時(shí)清除這個(gè)文件,或者可以做一個(gè)計(jì)劃任務(wù)來清除。

      做了一個(gè)Linux學(xué)習(xí)的平臺(tái),目前出來一個(gè)個(gè)形,各位可以參考使用
      鏈接: https    ://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ密碼:n7bk

      Linux服務(wù)器---squid緩存


      本文標(biāo)題:Linux服務(wù)器---squid緩存-創(chuàng)新互聯(lián)
      網(wǎng)站地址:http://ef60e0e.cn/article/dohsop.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        曲松县| 双牌县| 通州市| 枞阳县| 西乌珠穆沁旗| 海阳市| 永胜县| 德昌县| 南通市| 瑞安市| 靖安县| 祁连县| 阿克苏市| 铁岭市| 舟曲县| 谢通门县| 富阳市| 亳州市| 禹城市| 牟定县| 堆龙德庆县| 辛集市| 永州市| 威海市| 资兴市| 湘潭县| 西藏| 喜德县| 泗洪县| 镇沅| 闽侯县| 竹北市| 绍兴县| 错那县| 天峻县| 来凤县| 潮安县| 大宁县| 明光市| 夏津县| 饶阳县|