-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
204 lines (119 loc) · 53.3 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>贤时间</title>
<subtitle>为天地立心,为生民立命,为往圣继绝学,为万世开太平</subtitle>
<link href="/atom.xml" rel="self"/>
<link href="https://www.yangshixian.me/"/>
<updated>2018-09-23T10:46:15.340Z</updated>
<id>https://www.yangshixian.me/</id>
<author>
<name>Young</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>RedHat6.5 安装EBS 12.1 系列前的预安装rpm包</title>
<link href="https://www.yangshixian.me/post/6c991b0d.html"/>
<id>https://www.yangshixian.me/post/6c991b0d.html</id>
<published>2018-09-23T10:40:58.000Z</published>
<updated>2018-09-23T10:46:15.340Z</updated>
<content type="html"><![CDATA[<blockquote><p>参考文章:<a href="https://blog.csdn.net/vindak/article/details/7803588/" target="_blank" rel="noopener">https://blog.csdn.net/vindak/article/details/7803588/</a><br>参考MOS文章: Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64 [ID 761566.1]</p></blockquote><a id="more"></a><h2 id="配置-oracle-ebs-专用yum源"><a href="#配置-oracle-ebs-专用yum源" class="headerlink" title="配置 oracle ebs 专用yum源"></a>配置 oracle ebs 专用yum源</h2><p> 配置oracle yum安装源:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># cd /etc/yum.repos.d</span></span><br><span class="line"><span class="comment"># wget http://public-yum.oracle.com/public-yum-ol6.repo</span></span><br></pre></td></tr></table></figure><p>修正成如下内容</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">[ol6_latest]</span><br><span class="line"></span><br><span class="line">name=Oracle Linux <span class="variable">$releasever</span> Latest (<span class="variable">$basearch</span>)</span><br><span class="line"></span><br><span class="line">baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/<span class="variable">$basearch</span>/</span><br><span class="line"></span><br><span class="line">gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6</span><br><span class="line"></span><br><span class="line">gpgcheck=1</span><br><span class="line"></span><br><span class="line">enabled=1</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">[ol6_addons]</span><br><span class="line"></span><br><span class="line">name=Oracle Linux <span class="variable">$releasever</span> Add ons (<span class="variable">$basearch</span>)</span><br><span class="line"></span><br><span class="line">baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/<span class="variable">$basearch</span>/</span><br><span class="line"></span><br><span class="line">gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6</span><br><span class="line"></span><br><span class="line">gpgcheck=1</span><br><span class="line"></span><br><span class="line">enabled=1</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">[ol6_UEK_latest]</span><br><span class="line"></span><br><span class="line">name=Latest Unbreakable Enterprise Kernel <span class="keyword">for</span> Oracle Linux <span class="variable">$releasever</span> (<span class="variable">$basearch</span>)</span><br><span class="line"></span><br><span class="line">baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/<span class="variable">$basearch</span>/</span><br><span class="line"></span><br><span class="line">gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6</span><br><span class="line"></span><br><span class="line">gpgcheck=1</span><br><span class="line"></span><br><span class="line">enabled=0</span><br></pre></td></tr></table></figure><h2 id="执行安装"><a href="#执行安装" class="headerlink" title="执行安装"></a>执行安装</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># yum update</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment"># yum install oracle-ebs-server-R12-preinstall </span></span><br><span class="line">Setting up Install Process</span><br><span class="line">Resolving Dependencies</span><br><span class="line">--> Running transaction check</span><br><span class="line">---> Package oracle-ebs-server-R12-preinstall.x86_64 0:1.0-3.el6 will be installed</span><br><span class="line">--> Processing Dependency: libstdc++-devel <span class="keyword">for</span> package: oracle-ebs-server-R12-preinstall-1.0-3.el6.x86_64</span><br><span class="line">--> Processing Dependency: libXp(x86-32) <span class="keyword">for</span> package: oracle-ebs-server-R12-preinstall-1.0-3.el6.x86_64</span><br><span class="line">..</span><br><span class="line">..</span><br><span class="line"></span><br><span class="line">Transaction Summary</span><br><span class="line">================================================================================</span><br><span class="line">Install 176 Package(s)</span><br><span class="line">Upgrade 11 Package(s)</span><br><span class="line">Total download size: 168 M</span><br><span class="line">Is this ok [y/N]: y</span><br><span class="line">Downloading Packages:</span><br><span class="line">..</span><br><span class="line">..</span><br><span class="line"></span><br><span class="line">Dependency Updated:</span><br><span class="line"> db4.x86_64 0:4.7.25-18.el6_4 </span><br><span class="line"> db4-utils.x86_64 0:4.7.25-18.el6_4 </span><br><span class="line"> glib2.x86_64 0:2.26.1-3.el6 </span><br><span class="line"> glibc.x86_64 0:2.12-1.132.el6 </span><br><span class="line"> glibc-common.x86_64 0:2.12-1.132.el6 </span><br><span class="line"> libblkid.x86_64 0:2.17.2-12.14.el6 </span><br><span class="line"> libgcc.x86_64 0:4.4.7-4.el6 </span><br><span class="line"> libstdc++.x86_64 0:4.4.7-4.el6 </span><br><span class="line"> libuuid.x86_64 0:2.17.2-12.14.el6 </span><br><span class="line"> nss-softokn-freebl.x86_64 0:3.14.3-9.el6 </span><br><span class="line"> util-linux-ng.x86_64 0:2.17.2-12.14.el6 </span><br><span class="line">Complete!</span><br></pre></td></tr></table></figure><p>若第一次不成功,多试几次最后一个安装命令即可,反正我试了三次才安装成功。</p><h2 id="修改交换空间的大小"><a href="#修改交换空间的大小" class="headerlink" title="修改交换空间的大小"></a>修改交换空间的大小</h2><p>一般直接配置memory_target 这个参数直接限制oracle 数据库的的总内存,pga 和 sga让oracle自动进行调整,如果oracle使用的内存超过交换空间的内存,则报如下错误</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">ORA-00845: MEMORY_TARGET not supported on this system </span><br><span class="line">`</span><br></pre></td></tr></table></figure><p>解决方法:</p><p>修改/etc/fstab,在swap和tmpfs 的defaults后面加入size=XXG</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">[root@localhost ~]<span class="comment"># cat /etc/fstab </span></span><br><span class="line"></span><br><span class="line"><span class="comment">#</span></span><br><span class="line"><span class="comment"># /etc/fstab</span></span><br><span class="line"><span class="comment"># Created by anaconda on Sun Sep 23 05:22:04 2018</span></span><br><span class="line"><span class="comment">#</span></span><br><span class="line"><span class="comment"># Accessible filesystems, by reference, are maintained under '/dev/disk'</span></span><br><span class="line"><span class="comment"># See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info</span></span><br><span class="line"><span class="comment">#</span></span><br><span class="line">UUID=f9589126-32c9-4cd0-a6fe-d2ece6e7c8f5 / ext4 defaults 1 1</span><br><span class="line">UUID=05560d62-9dc9-41d3-a717-e3e91d18f81a /boot ext4 defaults 1 2</span><br><span class="line">UUID=ed237d3f-ca5b-41d0-a38b-91aaf1f5af3e swap swap defaults,size=8G 0 0</span><br><span class="line">tmpfs /dev/shm tmpfs defaults,size=8G 0 0</span><br><span class="line">devpts /dev/pts devpts gid=5,mode=620 0 0</span><br><span class="line">sysfs /sys sysfs defaults 0 0</span><br><span class="line">proc /proc proc defaults 0 0</span><br><span class="line">[root@localhost ~]<span class="comment">#</span></span><br></pre></td></tr></table></figure><p>然后重新挂载:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[root@localhost ~]<span class="comment"># mount -o remount,size=8G /dev/shm</span></span><br></pre></td></tr></table></figure>]]></content>
<summary type="html">
<blockquote>
<p>参考文章:<a href="https://blog.csdn.net/vindak/article/details/7803588/" target="_blank" rel="noopener">https://blog.csdn.net/vindak/article/details/7803588/</a><br>参考MOS文章: Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64 [ID 761566.1]</p>
</blockquote>
</summary>
<category term="ORACLE EBS DBA" scheme="https://www.yangshixian.me/categories/ORACLE-EBS-DBA/"/>
<category term="ORACLE EBS DBA" scheme="https://www.yangshixian.me/tags/ORACLE-EBS-DBA/"/>
</entry>
<entry>
<title>RedHat6.5更新为CentOS源</title>
<link href="https://www.yangshixian.me/post/41a2e6fe.html"/>
<id>https://www.yangshixian.me/post/41a2e6fe.html</id>
<published>2018-09-20T06:27:46.000Z</published>
<updated>2018-09-23T10:14:20.922Z</updated>
<content type="html"><![CDATA[<p>基于 <a href="https://blog.csdn.net/u011641865/article/details/78518214" target="_blank" rel="noopener">https://blog.csdn.net/u011641865/article/details/78518214</a><br>有改动<br><a id="more"></a></p><h2 id="删除自带的包"><a href="#删除自带的包" class="headerlink" title="删除自带的包"></a>删除自带的包</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">#1.检查yum包</span></span><br><span class="line">rpm -qa |grep yum </span><br><span class="line"><span class="comment">#2.删除自带包 </span></span><br><span class="line">rpm -aq | grep yum | xargs rpm -e --nodeps </span><br><span class="line"><span class="comment">#3.再检查一下 </span></span><br><span class="line">rpm -qa |grep yum</span><br></pre></td></tr></table></figure><h2 id="下载更新rpm包"><a href="#下载更新rpm包" class="headerlink" title="下载更新rpm包"></a>下载更新rpm包</h2><p>新建一个文件夹,把这个放到先建立的文件夹下</p><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## 注意:包名不会变,不要直接拷贝下面的命令,因为版本会更新,如果404 not found则根据名字查下最新的版本号</span></span><br><span class="line"></span><br><span class="line">wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm</span><br><span class="line">wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm</span><br><span class="line">wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm</span><br><span class="line">wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-updateonboot-1.1.30-41.el6.noarch.rpm</span><br><span class="line">wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm</span><br><span class="line">wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-utils-1.1.30-41.el6.noarch.rpm</span><br></pre></td></tr></table></figure><h2 id="执行安装"><a href="#执行安装" class="headerlink" title="执行安装"></a>执行安装</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">[root@bogon yum_rpms]<span class="comment"># ls</span></span><br><span class="line">python-urlgrabber-3.9.1-11.el6.noarch.rpm yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm</span><br><span class="line">yum-3.2.29-81.el6.centos.noarch.rpm yum-updateonboot-1.1.30-41.el6.noarch.rpm</span><br><span class="line">yum-metadata-parser-1.1.2-16.el6.x86_64.rpm yum-utils-1.1.30-41.el6.noarch.rpm</span><br><span class="line">[root@bogon yum_rpms]<span class="comment"># rpm -ivh yum-*</span></span><br><span class="line">warning: yum-3.2.29-81.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY</span><br><span class="line">error: Failed dependencies:</span><br><span class="line"> python-urlgrabber >= 3.9.1-10 is needed by yum-3.2.29-81.el6.centos.noarch</span><br><span class="line">[root@bogon yum_rpms]<span class="comment"># rpm -Uvh python-urlgrabber-3.9.1-11.el6.noarch.rpm </span></span><br><span class="line">warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY</span><br><span class="line">Preparing... <span class="comment">########################################### [100%]</span></span><br><span class="line"> 1:python-urlgrabber <span class="comment">########################################### [100%]</span></span><br><span class="line">[root@bogon yum_rpms]<span class="comment"># rpm -ivh yum-*</span></span><br><span class="line">warning: yum-3.2.29-81.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY</span><br><span class="line">Preparing... <span class="comment">########################################### [100%]</span></span><br><span class="line"> 1:yum-metadata-parser <span class="comment">########################################### [ 20%]</span></span><br><span class="line"> 2:yum-plugin-fastestmirro<span class="comment">########################################### [ 40%]</span></span><br><span class="line"> 3:yum <span class="comment">########################################### [ 60%]</span></span><br><span class="line"> 4:yum-updateonboot <span class="comment">########################################### [ 80%]</span></span><br><span class="line"> 5:yum-utils <span class="comment">########################################### [100%]</span></span><br></pre></td></tr></table></figure><h2 id="更新repo源"><a href="#更新repo源" class="headerlink" title="更新repo源"></a>更新repo源</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line">[root@bogon yum.repos.d]# cd /etc/yum.repos.d/</span><br><span class="line">[root@bogon yum.repos.d]# mv rhel-source.repo rhel-source.repo.bak</span><br><span class="line">[root@bogon yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo</span><br><span class="line">--2018-09-20 07:17:38-- http://mirrors.163.com/.help/CentOS6-Base-163.repo</span><br><span class="line">Resolving mirrors.163.com... 59.111.0.251</span><br><span class="line">Connecting to mirrors.163.com|59.111.0.251|:80... connected.</span><br><span class="line">HTTP request sent, awaiting response... 200 OK</span><br><span class="line">Length: 2006 (2.0K) [application/octet-stream]</span><br><span class="line">Saving to: “CentOS6-Base-163.repo”</span><br><span class="line"></span><br><span class="line">100%[===================================================================================>] 2,006 --.-K/s in 0s </span><br><span class="line"></span><br><span class="line">2018-09-20 07:17:38 (363 MB/s) - “CentOS6-Base-163.repo” saved [2006/2006]</span><br><span class="line"></span><br><span class="line">[root@bogon yum.repos.d]# ls</span><br><span class="line">CentOS6-Base-163.repo rhel-source.repo.bak</span><br><span class="line"></span><br><span class="line">#用vi编辑命令 :1,$s/$releasever/6</span><br><span class="line">#将CentOS6-Base-163.repo 里面的$releasever 替换为6</span><br></pre></td></tr></table></figure><h2 id="清理缓存-并验证"><a href="#清理缓存-并验证" class="headerlink" title="清理缓存 并验证"></a>清理缓存 并验证</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">#清理缓存 </span></span><br><span class="line">yum clean all</span><br><span class="line"></span><br><span class="line">yum makecache</span><br><span class="line"></span><br><span class="line"><span class="comment">#验证</span></span><br><span class="line"></span><br><span class="line">yum install telnet</span><br></pre></td></tr></table></figure>]]></content>
<summary type="html">
<p>基于 <a href="https://blog.csdn.net/u011641865/article/details/78518214" target="_blank" rel="noopener">https://blog.csdn.net/u011641865/article/details/78518214</a><br>有改动<br>
</summary>
<category term="Linux" scheme="https://www.yangshixian.me/categories/Linux/"/>
<category term="RedHat6.5 yum源" scheme="https://www.yangshixian.me/tags/RedHat6-5-yum%E6%BA%90/"/>
</entry>
<entry>
<title>HEXO-next 文章阅读次数、gulp压缩、调试命令优化</title>
<link href="https://www.yangshixian.me/post/9eb3a5aa.html"/>
<id>https://www.yangshixian.me/post/9eb3a5aa.html</id>
<published>2018-08-28T13:49:33.000Z</published>
<updated>2018-09-02T06:00:38.342Z</updated>
<content type="html"><![CDATA[<p>配置显示阅读次数、压缩js和css文件、几个偷懒小技巧</p><a id="more"></a><h2 id="插件gitlab-地址"><a href="#插件gitlab-地址" class="headerlink" title="插件gitlab 地址"></a>插件gitlab 地址</h2><p><a href="https://github.com/theme-next/hexo-leancloud-counter-security" target="_blank" rel="noopener">https://github.com/theme-next/hexo-leancloud-counter-security</a></p><h3 id="大致步骤参考如下博主文章:"><a href="#大致步骤参考如下博主文章:" class="headerlink" title="大致步骤参考如下博主文章:"></a>大致步骤参考如下博主文章:</h3><p><a href="https://leaferx.online/2018/02/11/lc-security/" target="_blank" rel="noopener">https://leaferx.online/2018/02/11/lc-security/</a></p><p>其中在修正deploy的时候注意tab的控制,不然编译会报错:</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">deploy:</span></span><br><span class="line"> <span class="comment">#type: git</span></span><br><span class="line"> <span class="comment">#repository: [email protected]:x695/thinkee.github.io.git</span></span><br><span class="line"> <span class="comment">#repository: https://github.com/x695/thinkee.github.io.git </span></span><br><span class="line"> <span class="comment">#branch: master</span></span><br><span class="line"><span class="attr"> - type:</span> <span class="string">git</span></span><br><span class="line"> <span class="comment">#repository: [email protected]:yangshixian/blog.git</span></span><br><span class="line"><span class="attr"> repository:</span> <span class="string">[email protected]:thinkee/blog.coding.me.git</span></span><br><span class="line"><span class="attr"> branch:</span> <span class="string">master</span></span><br><span class="line"><span class="attr"> - type:</span> <span class="string">leancloud_counter_security_sync</span></span><br></pre></td></tr></table></figure><h2 id="gulp进行压缩"><a href="#gulp进行压缩" class="headerlink" title="gulp进行压缩"></a>gulp进行压缩</h2><p>参考下面博主的文章:</p><p><a href="https://blog.csdn.net/sunshine940326/article/details/70936988" target="_blank" rel="noopener">https://blog.csdn.net/sunshine940326/article/details/70936988</a></p><p><a href="https://blog.csdn.net/ganzhilin520/article/details/79052512" target="_blank" rel="noopener">https://blog.csdn.net/ganzhilin520/article/details/79052512</a></p><h2 id="nmp-脚本运行-简化调试动作"><a href="#nmp-脚本运行-简化调试动作" class="headerlink" title="nmp 脚本运行 简化调试动作"></a>nmp 脚本运行 简化调试动作</h2><figure class="highlight js"><figcaption><span>在博客根目录下的package.json 中最后加入</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">,</span><br><span class="line"> <span class="string">"scripts"</span>: {</span><br><span class="line"> <span class="string">"d"</span>: <span class="string">"hexo cl && hexo g && gulp && hexo d && hexo s"</span></span><br><span class="line"> }</span><br></pre></td></tr></table></figure><p>这样因为跑清理、部署、调试的时候,执行下<br><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nmp run d</span><br></pre></td></tr></table></figure></p><p>就可以了。</p><h2 id="新建文章后自动打开vs-code"><a href="#新建文章后自动打开vs-code" class="headerlink" title="新建文章后自动打开vs code"></a>新建文章后自动打开vs code</h2><p>在博客跟目录下 建立 scripts 文件夹</p><p>写入下面的js文件,文件名随意命名</p><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">let</span> spawn = <span class="built_in">require</span>(<span class="string">'hexo-util/lib/spawn'</span>);</span><br><span class="line"></span><br><span class="line">hexo.on(<span class="string">'new'</span>, (data) => {</span><br><span class="line"> spawn(<span class="string">'code'</span>, [hexo.base_dir, data.path]);</span><br><span class="line">});</span><br></pre></td></tr></table></figure><p> 这样就自动打开了</p> <figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta"> $</span><span class="bash"> hexo new <span class="string">"HEXO-next 文章阅读次数、gulp压缩、调试命令优化"</span></span></span><br><span class="line">INFO Created: ~\hexo\blog\source\_posts\HEXO-next-文章阅读次数、gulp压缩、调试命令优化.md</span><br></pre></td></tr></table></figure>]]></content>
<summary type="html">
<p>配置显示阅读次数、压缩js和css文件、几个偷懒小技巧</p>
</summary>
<category term="HEXO" scheme="https://www.yangshixian.me/categories/HEXO/"/>
<category term="HEXO 优化" scheme="https://www.yangshixian.me/tags/HEXO-%E4%BC%98%E5%8C%96/"/>
</entry>
<entry>
<title>hexo-theme-next主题升级的时候配置文件冲突解决方法</title>
<link href="https://www.yangshixian.me/post/f1011520.html"/>
<id>https://www.yangshixian.me/post/f1011520.html</id>
<published>2018-08-28T09:33:00.000Z</published>
<updated>2018-08-28T09:39:45.855Z</updated>
<content type="html"><![CDATA[<blockquote><p>hexo-theme-next主题是hexo一个广为使用的主题。当采用git pull 升级的时候,会将master分支拉到本地中,然而 主题配置文件会和我们已经自定义过的配置冲突。官方提供了两个方法</p></blockquote><a id="more"></a><h2 id="next主题github地址"><a href="#next主题github地址" class="headerlink" title="next主题github地址"></a>next主题github地址</h2><p><a href="https://github.com/theme-next/hexo-theme-next" target="_blank" rel="noopener">https://github.com/theme-next/hexo-theme-next</a></p><p>当采用git pull 升级的时候,会将master分支拉到本地中,然而 主题配置文件会和我们已经自定义过的配置冲突。官方提供了两个方法:</p><h3 id="1-git-操作命令来解决"><a href="#1-git-操作命令来解决" class="headerlink" title="1. git 操作命令来解决"></a>1. git 操作命令来解决</h3><p><a href="https://stackoverflow.com/questions/15745045/how-do-i-resolve-git-saying-commit-your-changes-or-stash-them-before-you-can-me/15745424#15745424" target="_blank" rel="noopener">https://stackoverflow.com/questions/15745045/how-do-i-resolve-git-saying-commit-your-changes-or-stash-them-before-you-can-me/15745424#15745424</a></p><p>核心命令:</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">Commit the change using</span><br><span class="line">git commit -m "My message"</span><br><span class="line">Stash it.</span><br><span class="line">Stashing acts as a stack, where you can push changes, and you pop them in reverse order.</span><br><span class="line"></span><br><span class="line">To stash, type</span><br><span class="line"></span><br><span class="line">git stash</span><br><span class="line">Do the merge, and then pull the stash:</span><br><span class="line"></span><br><span class="line">git stash pop</span><br><span class="line">Discard the local changes</span><br><span class="line">using git reset --hard</span><br><span class="line">or git checkout -t -f remote/branch</span><br><span class="line"></span><br><span class="line">Or: Discard local changes for a specific file</span><br><span class="line">using git checkout filename</span><br></pre></td></tr></table></figure><h3 id="2-用HEXO的DATA-FILES-来解决"><a href="#2-用HEXO的DATA-FILES-来解决" class="headerlink" title="2 用HEXO的DATA-FILES 来解决"></a>2 用HEXO的DATA-FILES 来解决</h3><p>参见 <a href="https://github.com/theme-next/hexo-theme-next/blob/master/docs/DATA-FILES.md" target="_blank" rel="noopener">https://github.com/theme-next/hexo-theme-next/blob/master/docs/DATA-FILES.md</a></p><p>推荐方法:</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">Please ensure you are using Hexo 3 (or above).</span><br><span class="line">Create an file named next.yml in site's hexo/source/_data directory (create _data directory if it did not exists).</span><br><span class="line">And after that steps there are 2 variants, need to choose only one of them and resume next steps.</span><br><span class="line"></span><br><span class="line">Variant 2: override: true:</span><br><span class="line"></span><br><span class="line">In next.yml set override option on true.</span><br><span class="line">Copy all NexT theme options from theme's next/_config.yml into hexo/source/_data/next.yml.</span><br><span class="line">Then, in main site's hexo/_config.yml need to define theme: next option (and if needed, source_dir: source).</span><br><span class="line">Use standart parameters to start server, generate or deploy (hexo clean && hexo g -d && hexo s).</span><br></pre></td></tr></table></figure>]]></content>
<summary type="html">
<blockquote>
<p>hexo-theme-next主题是hexo一个广为使用的主题。当采用git pull 升级的时候,会将master分支拉到本地中,然而 主题配置文件会和我们已经自定义过的配置冲突。官方提供了两个方法</p>
</blockquote>
</summary>
<category term="HEXO" scheme="https://www.yangshixian.me/categories/HEXO/"/>
<category term="hexo-theme-next" scheme="https://www.yangshixian.me/tags/hexo-theme-next/"/>
</entry>
<entry>
<title>HEXO_next主题 自带样式设置</title>
<link href="https://www.yangshixian.me/post/177574ba.html"/>
<id>https://www.yangshixian.me/post/177574ba.html</id>
<published>2018-08-27T10:03:53.000Z</published>
<updated>2018-08-28T09:26:21.215Z</updated>
<content type="html"><![CDATA[<p>参考文档: <a href="http://theme-next.iissnan.com/tag-plugins.html" target="_blank" rel="noopener">http://theme-next.iissnan.com/tag-plugins.html</a></p><h2 id="居中"><a href="#居中" class="headerlink" title="居中"></a>居中</h2><blockquote class="blockquote-center"><p>居中标签设置 </p></blockquote><figure class="highlight django"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="xml"></span><span class="template-tag">{% <span class="name">cq</span> %}</span><span class="xml"> 居中标签设置 </span><span class="template-tag">{% <span class="name">endcq</span> %}</span><span class="xml"></span></span><br></pre></td></tr></table></figure><h2 id="note样式"><a href="#note样式" class="headerlink" title="note样式"></a>note样式</h2><div class="note default"><p>Content (md partial supported) </p></div><figure class="highlight routeros"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">{%<span class="built_in"> note default </span>%} Content (md partial supported) {% endnote %}</span><br></pre></td></tr></table></figure><div class="note default"><p>default</p></div><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><div <span class="class"><span class="keyword">class</span></span>=<span class="string">"note default"</span>><span class="xml"><span class="tag"><<span class="name">p</span>></span>default<span class="tag"></<span class="name">p</span>></span></span><span class="xml"><span class="tag"></<span class="name">div</span>></span></span></span><br></pre></td></tr></table></figure><div class="note primary"><p>primary</p></div><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><div <span class="class"><span class="keyword">class</span></span>=<span class="string">"note primary"</span>><span class="xml"><span class="tag"><<span class="name">p</span>></span>primary<span class="tag"></<span class="name">p</span>></span></span><span class="xml"><span class="tag"></<span class="name">div</span>></span></span></span><br></pre></td></tr></table></figure><div class="note success"><p>success</p></div><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><div <span class="class"><span class="keyword">class</span></span>=<span class="string">"note success"</span>><span class="xml"><span class="tag"><<span class="name">p</span>></span>success<span class="tag"></<span class="name">p</span>></span></span><span class="xml"><span class="tag"></<span class="name">div</span>></span></span></span><br></pre></td></tr></table></figure><div class="note info"><p>info</p></div><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><div <span class="class"><span class="keyword">class</span></span>=<span class="string">"note info"</span>><span class="xml"><span class="tag"><<span class="name">p</span>></span>info<span class="tag"></<span class="name">p</span>></span></span><span class="xml"><span class="tag"></<span class="name">div</span>></span></span></span><br></pre></td></tr></table></figure><div class="note warning"><p>warning</p></div><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><div <span class="class"><span class="keyword">class</span></span>=<span class="string">"note warning"</span>><span class="xml"><span class="tag"><<span class="name">p</span>></span>warning<span class="tag"></<span class="name">p</span>></span></span><span class="xml"><span class="tag"></<span class="name">div</span>></span></span></span><br></pre></td></tr></table></figure><div class="note danger"><p>danger</p></div><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><div <span class="class"><span class="keyword">class</span></span>=<span class="string">"note danger"</span>><span class="xml"><span class="tag"><<span class="name">p</span>></span>danger<span class="tag"></<span class="name">p</span>></span></span><span class="xml"><span class="tag"></<span class="name">div</span>></span></span></span><br></pre></td></tr></table></figure><div class="note danger no-icon"><p>danger no-icon</p></div><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><div <span class="class"><span class="keyword">class</span></span>=<span class="string">"note danger no-icon"</span>><span class="xml"><span class="tag"><<span class="name">p</span>></span>danger no-icon<span class="tag"></<span class="name">p</span>></span></span><span class="xml"><span class="tag"></<span class="name">div</span>></span></span></span><br></pre></td></tr></table></figure><figure class="highlight yml"><figcaption><span>主题配置文件</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"><span class="comment"># Note tag (bs-callout).</span></span><br><span class="line"><span class="attr">note:</span></span><br><span class="line"> <span class="comment"># Note tag style values:</span></span><br><span class="line"> <span class="comment"># - simple bs-callout old alert style. Default.</span></span><br><span class="line"> <span class="comment"># - modern bs-callout new (v2-v3) alert style.</span></span><br><span class="line"> <span class="comment"># - flat flat callout style with background, like on Mozilla or StackOverflow.</span></span><br><span class="line"> <span class="comment"># - disabled disable all CSS styles import of note tag.</span></span><br><span class="line"><span class="attr"> style:</span> <span class="string">simple</span></span><br><span class="line"><span class="attr"> icons:</span> <span class="literal">true</span> <span class="comment">#改成true 就可以显示图标</span></span><br><span class="line"><span class="attr"> border_radius:</span> <span class="number">3</span></span><br><span class="line"> <span class="comment"># Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6).</span></span><br><span class="line"> <span class="comment"># Offset also applied to label tag variables. This option can work with disabled note tag.</span></span><br><span class="line"><span class="attr"> light_bg_offset:</span> <span class="number">0</span></span><br></pre></td></tr></table></figure><h2 id="label-样式"><a href="#label-样式" class="headerlink" title="label 样式"></a>label 样式</h2><span class="label default">default</span><pre><code>{% label default@default %}</code></pre><span class="label primary">primary</span><pre><code>{% label primary@primary %}</code></pre><span class="label success">success</span><pre><code>{% label success@success %}</code></pre><span class="label info">info</span><pre><code>{% label info@info %}</code></pre><span class="label warning">warning</span><pre><code>{% label warning@warning %}</code></pre><span class="label danger">danger</span><pre><code>{% label danger@danger %}</code></pre><h2 id="tab"><a href="#tab" class="headerlink" title="tab"></a>tab</h2><div class="tabs" id="选项卡"><ul class="nav-tabs"><li class="tab active"><a href="#选项卡-1">选项卡 1</a></li><li class="tab"><a href="#选项卡-2">选项卡 2</a></li><li class="tab"><a href="#选项卡-3">选项卡 3</a></li></ul><div class="tab-content"><div class="tab-pane active" id="选项卡-1"><p><strong>这是选项卡 1</strong> </p><ul><li>列表</li><li>列表</li></ul></div><div class="tab-pane" id="选项卡-2"><p><strong>这是选项卡 2</strong> 内容balabala2</p></div><div class="tab-pane" id="选项卡-3"><p><strong>这是选项卡 3</strong> 哇,你找到我了!φ(≧ω≦*)♪~</p></div></div></div><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">百分号前面的数字就是定位在第几个tab上</span><br><span class="line">{% tabs 选项卡, 1 %} </span><br><span class="line"><span class="comment"><!-- tab --></span></span><br><span class="line">**这是选项卡 1** </span><br><span class="line">* 列表</span><br><span class="line">* 列表</span><br><span class="line"><span class="comment"><!-- endtab --></span></span><br><span class="line"><span class="comment"><!-- tab --></span></span><br><span class="line">**这是选项卡 2** 内容balabala2</span><br><span class="line"><span class="comment"><!-- endtab --></span></span><br><span class="line"><span class="comment"><!-- tab --></span></span><br><span class="line">**这是选项卡 3** 哇,你找到我了!φ(≧ω≦*)♪~</span><br><span class="line"><span class="comment"><!-- endtab --></span></span><br><span class="line">{% endtabs %}</span><br></pre></td></tr></table></figure>]]></content>
<summary type="html">
next主题内建样式设置
</summary>
<category term="HEXO" scheme="https://www.yangshixian.me/categories/HEXO/"/>
</entry>
<entry>
<title>NPM包管理命令</title>
<link href="https://www.yangshixian.me/post/fc7ee163.html"/>
<id>https://www.yangshixian.me/post/fc7ee163.html</id>
<published>2018-08-27T06:23:00.000Z</published>
<updated>2018-08-28T01:50:20.930Z</updated>
<content type="html"><![CDATA[<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">npm安装模块</span><br><span class="line">【npm install xxx】利用 npm 安装xxx模块到当前命令行所在目录;</span><br><span class="line">【npm install -g xxx】利用npm安装全局模块xxx;</span><br><span class="line">本地安装时将模块写入package.json中:</span><br><span class="line"></span><br><span class="line">【npm install xxx】安装但不写入package.json;</span><br><span class="line">【npm install xxx –save】 安装并写入package.json的”dependencies”中;</span><br><span class="line">【npm install xxx –save-dev】安装并写入package.json的”devDependencies”中。</span><br><span class="line">npm 删除模块</span><br><span class="line">【npm uninstall xxx】删除xxx模块; </span><br><span class="line">【npm uninstall -g xxx】删除全局模块xxx;</span><br></pre></td></tr></table></figure>]]></content>
<summary type="html">
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class
</summary>
<category term="Node.js" scheme="https://www.yangshixian.me/categories/Node-js/"/>
<category term="npm admin" scheme="https://www.yangshixian.me/tags/npm-admin/"/>
</entry>
<entry>
<title>HEXO_next 主题个性配置</title>
<link href="https://www.yangshixian.me/post/84c36509.html"/>
<id>https://www.yangshixian.me/post/84c36509.html</id>
<published>2018-08-26T06:21:00.000Z</published>
<updated>2018-08-28T01:50:20.917Z</updated>
<content type="html"><![CDATA[<h2 id="文章字数统计及耗时功能"><a href="#文章字数统计及耗时功能" class="headerlink" title="文章字数统计及耗时功能"></a>文章字数统计及耗时功能</h2><p>参加网址 <a href="https://github.com/theme-next/hexo-symbols-count-time" target="_blank" rel="noopener">https://github.com/theme-next/hexo-symbols-count-time</a></p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Post wordcount display settings</span></span><br><span class="line"><span class="comment"># Dependencies: https://github.com/theme-next/hexo-symbols-count-time</span></span><br><span class="line"><span class="attr">symbols_count_time:</span></span><br><span class="line"><span class="attr"> separated_meta:</span> <span class="literal">false</span> <span class="comment">#设置成true后 会换行显示</span></span><br><span class="line"><span class="attr"> item_text_post:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> item_text_total:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr"> awl:</span> <span class="number">4</span></span><br><span class="line"><span class="attr"> wpm:</span> <span class="number">275</span></span><br></pre></td></tr></table></figure>]]></content>
<summary type="html">
<h2 id="文章字数统计及耗时功能"><a href="#文章字数统计及耗时功能" class="headerlink" title="文章字数统计及耗时功能"></a>文章字数统计及耗时功能</h2><p>参加网址 <a href="https://github.com/t
</summary>
<category term="HEXO" scheme="https://www.yangshixian.me/categories/HEXO/"/>
<category term="HEXO" scheme="https://www.yangshixian.me/tags/HEXO/"/>
<category term="NEXT 主题" scheme="https://www.yangshixian.me/tags/NEXT-%E4%B8%BB%E9%A2%98/"/>
</entry>
<entry>
<title>Hello World</title>
<link href="https://www.yangshixian.me/post/4a17b156.html"/>
<id>https://www.yangshixian.me/post/4a17b156.html</id>
<published>2018-08-20T02:18:06.000Z</published>
<updated>2018-08-28T01:50:56.780Z</updated>
<content type="html"><![CDATA[<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p><h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p><h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p><h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p><h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="noopener">Deployment</a></p>]]></content>
<summary type="html">
<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.
</summary>
</entry>
</feed>