<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>项目上线 · 梦想家内容管理系统(Dreamer CMS)</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="王俊南">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="Packaging.html" />
    

    
        <link rel="shortcut icon" href="./source/images/favicon.ico" type="image/x-icon">
    
    
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="./source/images/favicon.png">
    
    
        
    
    
        
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.iteachyou.cc" target="_blank" class="custom-link">I Teach You,我教你!</a>
        </li>
    
        
        <li>
            <a href="https://gitee.com/iteachyou/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Gitee)</a>
        </li>
    
        
        <li>
            <a href="https://github.com/iteachyou-wjn/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Github)</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    封面
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../COPYRIGHT.html">
            
                <a href="../COPYRIGHT.html">
            
                    
                    版权
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    前言
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../preface/">
            
                <a href="../preface/">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../preface/Topic.html">
            
                <a href="../preface/Topic.html">
            
                    
                    主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../preface/Publish.html">
            
                <a href="../preface/Publish.html">
            
                    
                    发行方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="../preface/Online.html">
            
                <a href="../preface/Online.html">
            
                    
                    在线手册
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="../preface/Last.html">
            
                <a href="../preface/Last.html">
            
                    
                    最后
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../chapter01/">
            
                <a href="../chapter01/">
            
                    
                    第一章 模板设计师要求
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="../chapter01/Designer.html">
            
                <a href="../chapter01/Designer.html">
            
                    
                    设计师
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="../chapter01/Developer.html">
            
                <a href="../chapter01/Developer.html">
            
                    
                    开发者
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../chapter02/">
            
                <a href="../chapter02/">
            
                    
                    第二章 模板制作流程
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="5.1" >
            
                <span>
            
                    
                    第三章 模板文件及目录结构
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1.1" data-path="../chapter03/">
            
                <a href="../chapter03/">
            
                    
                    模版目录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.1.2" data-path="../chapter03/Description.html">
            
                <a href="../chapter03/Description.html">
            
                    
                    模板文件与功能说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.1.3" data-path="../chapter03/DesignAndUse.html">
            
                <a href="../chapter03/DesignAndUse.html">
            
                    
                    概念,设计和使用模板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.1.4" data-path="../chapter03/NamingRules.html">
            
                <a href="../chapter03/NamingRules.html">
            
                    
                    命名规则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.1.5" data-path="../chapter03/Other.html">
            
                <a href="../chapter03/Other.html">
            
                    
                    其它模板说明
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../chapter04/">
            
                <a href="../chapter04/">
            
                    
                    第四章 模板引擎介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1.1" data-path="../chapter04/CoreDoc.html">
            
                <a href="../chapter04/CoreDoc.html">
            
                    
                    核心文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.2" data-path="../chapter04/Grammar.html">
            
                <a href="../chapter04/Grammar.html">
            
                    
                    模板语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.3" data-path="../chapter04/LabelCategory.html">
            
                <a href="../chapter04/LabelCategory.html">
            
                    
                    标签分类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="7.1" >
            
                <span>
            
                    
                    第五章 标签参考
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1.1" >
            
                <span>
            
                    
                    ▶全局标签
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.2" data-path="../chapter05/GlobalLabel.html">
            
                <a href="../chapter05/GlobalLabel.html">
            
                    
                    Global全局配置标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.3" data-path="../chapter05/VariableLabel.html">
            
                <a href="../chapter05/VariableLabel.html">
            
                    
                    Variable全局变量标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.4" data-path="../chapter05/TemplateLabel.html">
            
                <a href="../chapter05/TemplateLabel.html">
            
                    
                    Template模版路径标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.5" data-path="../chapter05/IncludeLabel.html">
            
                <a href="../chapter05/IncludeLabel.html">
            
                    
                    Include引入文件标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.6" data-path="../chapter05/TypeLabel.html">
            
                <a href="../chapter05/TypeLabel.html">
            
                    
                    Type栏目调用标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.7" data-path="../chapter05/ChannelLabel.html">
            
                <a href="../chapter05/ChannelLabel.html">
            
                    
                    Channel频道列表标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.8" data-path="../chapter05/ListLabel.html">
            
                <a href="../chapter05/ListLabel.html">
            
                    
                    List文章列表标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.9" data-path="../chapter05/CategoryArtListLabel.html">
            
                <a href="../chapter05/CategoryArtListLabel.html">
            
                    
                    CategoryArtListLabel栏目内容列表标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.10" data-path="../chapter05/TagLabel.html">
            
                <a href="../chapter05/TagLabel.html">
            
                    
                    TagLabel标签列表标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.11" data-path="../chapter05/TreeLabel.html">
            
                <a href="../chapter05/TreeLabel.html">
            
                    
                    TreeLabel栏目树标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.12" data-path="../chapter05/AttachmentLabel.html">
            
                <a href="../chapter05/AttachmentLabel.html">
            
                    
                    AttachmentLabel附件标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.13" data-path="../chapter05/SqlLabel.html">
            
                <a href="../chapter05/SqlLabel.html">
            
                    
                    SqlLabel SQL标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.14" data-path="../chapter05/IfLabel.html">
            
                <a href="../chapter05/IfLabel.html">
            
                    
                    IfLabel判断标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.15" >
            
                <span>
            
                    
                    ▶分页标签
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.16" data-path="../chapter05/CategoryLabel.html">
            
                <a href="../chapter05/CategoryLabel.html">
            
                    
                    Category分页栏目标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.17" data-path="../chapter05/TopCategoryLabel.html">
            
                <a href="../chapter05/TopCategoryLabel.html">
            
                    
                    TopCategory分页顶级栏目标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.18" data-path="../chapter05/LocationLabel.html">
            
                <a href="../chapter05/LocationLabel.html">
            
                    
                    Location当前位置标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.19" >
            
                <span>
            
                    
                    ▶列表标签
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.20" data-path="../chapter05/PageListLabel.html">
            
                <a href="../chapter05/PageListLabel.html">
            
                    
                    PageList文章分页标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.21" data-path="../chapter05/PaginationLabel.html">
            
                <a href="../chapter05/PaginationLabel.html">
            
                    
                    Pagination显示分页标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.22" >
            
                <span>
            
                    
                    ▶内容标签
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.23" data-path="../chapter05/ArticleLabel.html">
            
                <a href="../chapter05/ArticleLabel.html">
            
                    
                    Article文章页标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.24" data-path="../chapter05/PrevNextLabel.html">
            
                <a href="../chapter05/PrevNextLabel.html">
            
                    
                    PrevNext上一篇、下一篇标签
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../chapter06/DataBase.html">
            
                <a href="../chapter06/DataBase.html">
            
                    
                    第六章 数据库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3" >
            
                <span>
            
                    
                    第七章 模板扩展
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.3.1" data-path="../chapter07/Message.html">
            
                <a href="../chapter07/Message.html">
            
                    
                    留言投稿
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3.2" data-path="../chapter07/Search.html">
            
                <a href="../chapter07/Search.html">
            
                    
                    网站搜索
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3.3" data-path="../chapter07/DefineLabel.html">
            
                <a href="../chapter07/DefineLabel.html">
            
                    
                    定义标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3.4" data-path="../chapter07/Regexp.html">
            
                <a href="../chapter07/Regexp.html">
            
                    
                    正则工具类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.4" >
            
                <span>
            
                    
                    第八章 部署上线
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.4.1" data-path="Environment.html">
            
                <a href="Environment.html">
            
                    
                    环境准备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.4.2" data-path="Packaging.html">
            
                <a href="Packaging.html">
            
                    
                    应用打包
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="7.4.3" data-path="Online.html">
            
                <a href="Online.html">
            
                    
                    项目上线
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.5" >
            
                <span>
            
                    
                    第九章 常见问题
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.5.1" data-path="../chapter09/Business.html">
            
                <a href="../chapter09/Business.html">
            
                    
                    商业授权
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5.2" data-path="../chapter09/ResourceDir.html">
            
                <a href="../chapter09/ResourceDir.html">
            
                    
                    资源目录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5.3" data-path="../chapter09/RichTextEditor.html">
            
                <a href="../chapter09/RichTextEditor.html">
            
                    
                    富文本编辑器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5.4" data-path="../chapter09/NavActive.html">
            
                <a href="../chapter09/NavActive.html">
            
                    
                    导航Active
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5.5" data-path="../chapter09/CategoryPage.html">
            
                <a href="../chapter09/CategoryPage.html">
            
                    
                    栏目分页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5.6" data-path="../chapter09/CategoryFilter.html">
            
                <a href="../chapter09/CategoryFilter.html">
            
                    
                    多级栏目筛选
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5.7" data-path="../chapter09/MutipleLanguage.html">
            
                <a href="../chapter09/MutipleLanguage.html">
            
                    
                    多语言网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5.8" data-path="../chapter09/UploadContrl.html">
            
                <a href="../chapter09/UploadContrl.html">
            
                    
                    上传大小控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5.9" data-path="../chapter09/ResourceNotFound.html">
            
                <a href="../chapter09/ResourceNotFound.html">
            
                    
                    上线图片404
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5.10" data-path="../chapter09/Favicon.html">
            
                <a href="../chapter09/Favicon.html">
            
                    
                    站点Favicon
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.6" >
            
                <span>
            
                    
                    第十章 关于捐赠
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.6.1" data-path="../chapter10/DonationList.html">
            
                <a href="../chapter10/DonationList.html">
            
                    
                    授权和捐赠
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >项目上线</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div style="display: flex;">
    <img src="https://oss.iteachyou.cc/logo.png" height="30">
    <div style="margin-left: 5px; font-size: 30px; line-height: 30px; font-weight: bold;">&#x68A6;&#x60F3;&#x5BB6;&#x5185;&#x5BB9;&#x7BA1;&#x7406;&#x7CFB;&#x7EDF;</div>
</div>

<hr>
<h3 id="&#x5E94;&#x7528;&#x6253;&#x5305;"><a name="&#x5E94;&#x7528;&#x6253;&#x5305;" class="plugin-anchor" href="#&#x5E94;&#x7528;&#x6253;&#x5305;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5E94;&#x7528;&#x6253;&#x5305;</h3>
<ol>
<li><p>&#x542F;&#x52A8;&#x5E94;&#x7528;</p>
<pre><code class="lang-shell">cd /opt/programs/
# &#x666E;&#x901A;&#x6253;&#x5305;&#xFF0C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x5B9E;&#x9645;&#x60C5;&#x51B5;&#x6765;&#x9009;&#x62E9;
nohup java -jar dreamer-cms.jar &gt; dreamer-cms.log &amp;
# &#x5C06;jar&#x5305;&#x5355;&#x72EC;&#x6253;&#x5230;&#x76EE;&#x5F55;&#x4E2D;
# nohup java -Dloader.path=libs/ -jar dreamer-cms.jar &gt; dreamer-cms.log &amp;
</code></pre>
</li>
<li><p>&#x914D;&#x7F6E;Nginx</p>
<ol>
<li><p>&#x666E;&#x901A;&#x65B9;&#x5F0F;&#xFF08;Http&#xFF09;</p>
<pre><code class="lang-shell">server {
 listen       80;
 server_name  www.iteachyou.cc iteachyou.cc;

 location / {
     add_header X-Via $upstream_addr;
     proxy_ignore_client_abort on;
     proxy_set_header Host  $http_host;
     proxy_set_header Cookie $http_cookie;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $http_x_forwarded_for;
     proxy_set_header X-Forwarded-Proto $scheme;
     proxy_pass http://127.0.0.1:8888;
     proxy_set_header Upgrade $http_upgrade;
     proxy_set_header Connection &quot;upgrade&quot;;
 }
}
</code></pre>
</li>
<li><p>SSL&#x65B9;&#x5F0F;&#xFF08;Https&#xFF09;</p>
<pre><code class="lang-shell">server {
 listen       80;
 server_name  www.iteachyou.cc iteachyou.cc;
 proxy_set_header X-Real-IP $remote_addr;

 rewrite ^(.*)$ https://$host$1 permanent; # &#x5F3A;&#x5236;http&#x8FDB;&#x5165;https 

 error_page  403 404  /update.html;
     location = /update.html {
     root html;
 }
 # redirect server error pages to the static page /50x.html
 error_page   500 502 503 504  /50x.html;
     location = /50x.html {
     root   html;
 }
}
server {
#SSL &#x8BBF;&#x95EE;&#x7AEF;&#x53E3;&#x53F7;&#x4E3A; 443
listen 443 ssl;
#&#x586B;&#x5199;&#x7ED1;&#x5B9A;&#x8BC1;&#x4E66;&#x7684;&#x57DF;&#x540D;
server_name www.iteachyou.cc iteachyou.cc;
#&#x8BC1;&#x4E66;&#x6587;&#x4EF6;&#x540D;&#x79F0;&#xFF08;&#x4FEE;&#x6539;&#x4E3A;&#x81EA;&#x5DF1;&#x7684;&#x8DEF;&#x5F84;&#xFF09;
ssl_certificate /opt/ssl/iteachyou.cc/1_iteachyou.cc_bundle.crt;
#&#x79C1;&#x94A5;&#x6587;&#x4EF6;&#x540D;&#x79F0;&#xFF08;&#x4FEE;&#x6539;&#x4E3A;&#x81EA;&#x5DF1;&#x7684;&#x8DEF;&#x5F84;&#xFF09;
ssl_certificate_key /opt/ssl/iteachyou.cc/2_iteachyou.cc.key;
ssl_session_timeout 5m;
#&#x8BF7;&#x6309;&#x7167;&#x8FD9;&#x4E2A;&#x534F;&#x8BAE;&#x914D;&#x7F6E;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
#&#x8BF7;&#x6309;&#x7167;&#x8FD9;&#x4E2A;&#x5957;&#x4EF6;&#x914D;&#x7F6E;&#xFF0C;&#x914D;&#x7F6E;&#x52A0;&#x5BC6;&#x5957;&#x4EF6;&#xFF0C;&#x5199;&#x6CD5;&#x9075;&#x5FAA; openssl &#x6807;&#x51C6;&#x3002;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location / {
  add_header X-Via $upstream_addr;
  proxy_ignore_client_abort on;
  proxy_set_header Host  $http_host;
  proxy_set_header Cookie $http_cookie;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $http_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_pass http://127.0.0.1:8888;
  proxy_redirect ~^http://([^:]+)(:\d+)?(.*)$  https://$1$3;
}
}
</code></pre>
</li>
<li>&#x914D;&#x7F6E;Websocket&#xFF0C;&#x5728;nginx.conf&#x4E2D;http&#x6A21;&#x5757;&#x4E2D;<pre><code class="lang-shell">#websocket
map $http_upgrade $connection_upgrade {
default upgrade;
&apos;&apos; close;
}
</code></pre>
</li>
<li>&#x914D;&#x7F6E;Gzip&#x538B;&#x7F29;&#xFF0C;&#x5728;nginx.conf&#x4E2D;http&#x6A21;&#x5757;&#x4E2D;<pre><code class="lang-shell"># &#x5F00;&#x542F;gzip
gzip on;
# &#x542F;&#x7528;gzip&#x538B;&#x7F29;&#x7684;&#x6700;&#x5C0F;&#x6587;&#x4EF6;&#xFF1B;&#x5C0F;&#x4E8E;&#x8BBE;&#x7F6E;&#x503C;&#x7684;&#x6587;&#x4EF6;&#x5C06;&#x4E0D;&#x4F1A;&#x88AB;&#x538B;&#x7F29;
gzip_min_length 1k;
# gzip &#x538B;&#x7F29;&#x7EA7;&#x522B; 1-10 
gzip_comp_level 4;
# &#x8FDB;&#x884C;&#x538B;&#x7F29;&#x7684;&#x6587;&#x4EF6;&#x7C7B;&#x578B;&#x3002;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
# &#x662F;&#x5426;&#x5728;http header&#x4E2D;&#x6DFB;&#x52A0;Vary: Accept-Encoding&#xFF0C;&#x5EFA;&#x8BAE;&#x5F00;&#x542F;
gzip_vary on;
</code></pre>
</li>
</ol>
</li>
<li><p>&#x4E0A;&#x7EBF;&#x540E;&#x914D;&#x7F6E;
&#x9879;&#x76EE;&#x901A;&#x8FC7;&#x4EE5;&#x4E0A;&#x6B65;&#x9AA4;&#xFF0C;&#x5219;&#x53EF;&#x4EE5;&#x6B63;&#x5E38;&#x901A;&#x8FC7;&#x57DF;&#x540D;&#x6216;IP&#x8BBF;&#x95EE;&#x540E;&#x53F0;&#xFF0C;&#x4F46;&#x662F;&#x540E;&#x53F0;&#x4E2D;&#x8FD8;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x4E00;&#x4E9B;&#x7F51;&#x5740;&#x3002;&#x7F51;&#x7AD9;&#x914D;&#x7F6E;=&gt;&#x7F51;&#x7AD9;&#x5730;&#x5740;&#x9700;&#x8981;&#x4FEE;&#x6539;&#x4E3A;&#x6B63;&#x5F0F;&#x7684;&#x57DF;&#x540D;&#x6216;IP&#x5730;&#x5740;&#xFF0C;&#x5982;&#xFF1A;<a href="https://www.iteachyou.cc/" target="_blank">https://www.iteachyou.cc/</a> &#x6216; <a href="http://192.168.1.10:8888/" target="_blank">http://192.168.1.10:8888/</a></p>
</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Packaging.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 应用打包">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"项目上线","level":"7.4.3","depth":2,"next":{"title":"第九章 常见问题","level":"7.5","depth":1,"ref":"","articles":[{"title":"商业授权","level":"7.5.1","depth":2,"path":"chapter09/Business.md","ref":"chapter09/Business.md","articles":[]},{"title":"资源目录","level":"7.5.2","depth":2,"path":"chapter09/ResourceDir.md","ref":"chapter09/ResourceDir.md","articles":[]},{"title":"富文本编辑器","level":"7.5.3","depth":2,"path":"chapter09/RichTextEditor.md","ref":"chapter09/RichTextEditor.md","articles":[]},{"title":"导航Active","level":"7.5.4","depth":2,"path":"chapter09/NavActive.md","ref":"chapter09/NavActive.md","articles":[]},{"title":"栏目分页","level":"7.5.5","depth":2,"path":"chapter09/CategoryPage.md","ref":"chapter09/CategoryPage.md","articles":[]},{"title":"多级栏目筛选","level":"7.5.6","depth":2,"path":"chapter09/CategoryFilter.md","ref":"chapter09/CategoryFilter.md","articles":[]},{"title":"多语言网站","level":"7.5.7","depth":2,"path":"chapter09/MutipleLanguage.md","ref":"chapter09/MutipleLanguage.md","articles":[]},{"title":"上传大小控制","level":"7.5.8","depth":2,"path":"chapter09/UploadContrl.md","ref":"chapter09/UploadContrl.md","articles":[]},{"title":"上线图片404","level":"7.5.9","depth":2,"path":"chapter09/ResourceNotFound.md","ref":"chapter09/ResourceNotFound.md","articles":[]},{"title":"站点Favicon","level":"7.5.10","depth":2,"path":"chapter09/Favicon.md","ref":"chapter09/Favicon.md","articles":[]}]},"previous":{"title":"应用打包","level":"7.4.2","depth":2,"path":"chapter08/Packaging.md","ref":"chapter08/Packaging.md","articles":[]},"dir":"ltr"},"config":{"plugins":["anchors","favicon-absolute","highlight"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"favicon-absolute":{"appleTouchIconMore":{},"appleTouchIconPrecomposed152":"./source/images/favicon.png","appleTouchIconPrecomposedMore":{},"favicon":"./source/images/favicon.ico"},"anchors":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"王俊南","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦想家内容管理系统(Dreamer CMS)","language":"zh-hans","links":{"sidebar":{"I Teach You,我教你!":"http://www.iteachyou.cc","Dreamer CMS(Gitee)":"https://gitee.com/iteachyou/dreamer_cms","Dreamer CMS(Github)":"https://github.com/iteachyou-wjn/dreamer_cms"}},"gitbook":"3.2.3","description":"Dreamer CMS,梦想家内容管理系统官方使用文档"},"file":{"path":"chapter08/Online.md","mtime":"2023-09-28T07:00:56.535Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-05-14T01:34:04.807Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>