内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

Gzip壓縮技術(shù)讓網(wǎng)站的速度提升起來!修改默認(rèn)200K文件上傳限制

2023-05-17    分類: 網(wǎng)站建設(shè)

IIS-》網(wǎng)站屬性-》服務(wù)鉤選-》HTTP壓縮-》確定

IIS-》Web服務(wù)擴(kuò)展-》右鍵 添加一個新的Web服務(wù)擴(kuò)展-》添加擴(kuò)展名-》HTTP Compression
要求的文件-》添加-》C:WINDOWSsystem32inetsrvgzip.dll-》確定
IIS-》Web服務(wù)擴(kuò)展-》選擇HTTP Compression-》右側(cè)點(diǎn)擊允許
設(shè)置Gzip參數(shù)
需要手工修改C:windowssystem32inetsrv 目錄下的 MetaBase.xml 文件
注意MetaBase.xml對于IIS的運(yùn)行非常重要,若被破壞輕則IIS不能正常運(yùn)行,重則可導(dǎo)致重裝系統(tǒng),所以修改這個文件之前一定要做好備份,復(fù)制一個命名為MetaBase_backup.xml文件備份。
暫停運(yùn)行IIS命令 net stop iisadmin
記事本編輯MetaBase.xml文件,
找到
HcCompressionDll="%windir%system32inetsrvgzip.dll"
HcCreateFlags="0"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="FALSE"
HcDynamicCompressionLevel="0"
HcFileExtensions="htm
html
txt"
HcOnDemandCompLevel="10"
HcPriority="1"
HcScriptFileExtensions="asp
dll
exe"
>
HcCompressionDll="%windir%system32inetsrvgzip.dll"
HcCreateFlags="1"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="TRUE"
HcDynamicCompressionLevel="0"
HcFileExtensions="htm
html
txt"
HcOnDemandCompLevel="10"
HcPriority="1"
HcScriptFileExtensions="asp
dll
exe"
>
設(shè)置deflate壓縮參數(shù)。
HcDynamicCompressionLevel="0" 更改為 HcDynamicCompressionLevel="1"
設(shè)置gzip壓縮參數(shù)。
HcDynamicCompressionLevel="0" 更改為 HcDynamicCompressionLevel="1"
HcDoStaticCompression="FALSE" 更改為 HcDoStaticCompression="TRUE"
增加靜態(tài)和動態(tài)擴(kuò)展名整體修改如下
HcCompressionDll="%windir%system32inetsrvgzip.dll"
HcCreateFlags="0"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="TRUE"
HcDynamicCompressionLevel="1"
HcFileExtensions="htm
html
css
swf
xml
txt"
HcOnDemandCompLevel="10"
HcPriority="1"
HcScriptFileExtensions="asp
aspx
php
zip
rar
dll
exe"
>
HcCompressionDll="%windir%system32inetsrvgzip.dll"
HcCreateFlags="1"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="TRUE"
HcDynamicCompressionLevel="1"
HcFileExtensions="htm
html
css
swf
xml
txt"
HcOnDemandCompLevel="10"
HcPriority="1"
HcScriptFileExtensions="asp
aspx
php
zip
rar
dll
exe"
>
===================================
更改默認(rèn)附件上傳文件大小的限制
修改文件 metabase.xml
AspMaxRequestEntityAllowed="204800"
更改為
AspMaxRequestEntityAllowed="20480000"
即默認(rèn)200k更改為20M
===================================
保存文件
重啟IIS命令 net start w3svc 命令 iisreset
如果不想停止IIS而直接編輯MetaBase.xml文件則這樣操作。
計(jì)算機(jī)管理-》Internet信息服務(wù)(IIS)管理器屬性-》鉤選“允許直接編輯配置數(shù)據(jù)庫”
這樣就可以,不用停止IIS編輯MetaBase.xml文件
檢測是否壓縮工具 http://tool.chinaz.com/Gzips/

網(wǎng)站標(biāo)題:Gzip壓縮技術(shù)讓網(wǎng)站的速度提升起來!修改默認(rèn)200K文件上傳限制
地址分享:http://m.rwnh.cn/news/259538.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航、網(wǎng)站內(nèi)鏈、外貿(mào)建站、網(wǎng)站建設(shè)、云服務(wù)器、用戶體驗(yàn)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

墨竹工卡县| 玉龙| 荥经县| 台州市| 渝中区| 宾川县| 雷州市| 嘉定区| 通州市| 民权县| 米脂县| 松溪县| 屯昌县| 神农架林区| 柘城县| 民乐县| 余姚市| 和林格尔县| 罗城| 阜新市| 秀山| 大关县| 布尔津县| 卓资县| 务川| 托克托县| 准格尔旗| 乳山市| 丰原市| 漳州市| 合阳县| 延吉市| 焉耆| 简阳市| 兴海县| 绍兴县| 北票市| 宁夏| 墨脱县| 甘德县| 林甸县|