-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
82 lines (46 loc) · 16 KB
/
atom.xml
File metadata and controls
82 lines (46 loc) · 16 KB
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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Derrick Hexo Blog</title>
<subtitle>Just Do It!!!</subtitle>
<link href="/atom.xml" rel="self"/>
<link href="http://yoursite.com/"/>
<updated>2018-03-25T12:48:40.656Z</updated>
<id>http://yoursite.com/</id>
<author>
<name>Derrick Liang</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>Install Jenkins on CentOs 7</title>
<link href="http://yoursite.com/2018/03/25/install-jenkins/"/>
<id>http://yoursite.com/2018/03/25/install-jenkins/</id>
<published>2018-03-25T06:44:51.000Z</published>
<updated>2018-03-25T12:48:40.656Z</updated>
<content type="html"><![CDATA[<h3 id="install-jenkins"><a href="#install-jenkins" class="headerlink" title="install jenkins"></a>install jenkins</h3><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></pre></td><td class="code"><pre><span class="line">$ wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo</span><br><span class="line">$ rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key</span><br><span class="line">$ yum install jenkins</span><br></pre></td></tr></table></figure><h3 id="change-jenkins-port"><a href="#change-jenkins-port" class="headerlink" title="change jenkins port"></a>change jenkins port</h3><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">vi /etc/sysconfig/jenkins</span><br><span class="line"><span class="comment"># change JENKINS_PORT</span></span><br></pre></td></tr></table></figure><h3 id="open-firwall-port"><a href="#open-firwall-port" class="headerlink" title="open firwall port"></a>open firwall port</h3><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">$ firewall-cmd --permanent --add-port=8080/tcp</span><br><span class="line">$ firewall-cmd --reload</span><br></pre></td></tr></table></figure><h3 id="config-jdk-for-jenkins-and-start-service"><a href="#config-jdk-for-jenkins-and-start-service" class="headerlink" title="config jdk for jenkins and start service"></a>config jdk for jenkins and start service</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">vi /etc/init.d/jenkins</span><br></pre></td></tr></table></figure><p><img src="/2018/03/25/install-jenkins/image/add_jdk.jpg" alt="jdk path"><br><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">$ systemctl restart jenkins</span><br></pre></td></tr></table></figure></p>]]></content>
<summary type="html">
<h3 id="install-jenkins"><a href="#install-jenkins" class="headerlink" title="install jenkins"></a>install jenkins</h3><figure class="highli
</summary>
</entry>
<entry>
<title>Hello World</title>
<link href="http://yoursite.com/2018/03/25/hello-world/"/>
<id>http://yoursite.com/2018/03/25/hello-world/</id>
<published>2018-03-25T06:37:51.241Z</published>
<updated>2018-03-25T06:37:51.241Z</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>
<entry>
<title>CentOS7 Install Hexo</title>
<link href="http://yoursite.com/2018/03/25/install-hexo/"/>
<id>http://yoursite.com/2018/03/25/install-hexo/</id>
<published>2018-03-25T06:17:56.000Z</published>
<updated>2018-03-25T13:17:16.009Z</updated>
<content type="html"><![CDATA[<h2 id="Install-Node-js"><a href="#Install-Node-js" class="headerlink" title="Install Node.js"></a>Install Node.js</h2><h3 id="download"><a href="#download" class="headerlink" title="download"></a>download</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">$ wget https://npm.taobao.org/mirrors/node/v8.9.3/node-v8.9.3-linux-x64.tar.xz</span><br></pre></td></tr></table></figure><p><a href="http://nodejs.cn/download/" target="_blank" rel="noopener">Node download website</a></p><h3 id="Unzip-and-move-to-a-place-you-want"><a href="#Unzip-and-move-to-a-place-you-want" class="headerlink" title="Unzip and move to a place you want"></a>Unzip and move to a place you want</h3><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></pre></td><td class="code"><pre><span class="line">$ xz -d node-v8.9.3-linux-x64.tar.xz</span><br><span class="line">$ tar -xvf node-v8.9.3-linux-x64.tar.xz</span><br><span class="line">$ mv node-v8.9.3-linux-x64 /usr/<span class="built_in">local</span>/node</span><br></pre></td></tr></table></figure><h3 id="Config-environment-variable"><a href="#Config-environment-variable" class="headerlink" title="Config environment variable"></a>Config environment variable</h3><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></pre></td><td class="code"><pre><span class="line">$ vi /etc/profile</span><br><span class="line"> add <span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/usr/<span class="built_in">local</span>/node/bin to bottom</span><br><span class="line"> esc + :wq! to <span class="built_in">exit</span> editing file</span><br><span class="line">$ <span class="built_in">source</span> /etc/profile</span><br></pre></td></tr></table></figure><h2 id="Install-Hexo"><a href="#Install-Hexo" class="headerlink" title="Install Hexo"></a>Install Hexo</h2><h3 id="init-hexo"><a href="#init-hexo" class="headerlink" title="init hexo"></a>init hexo</h3><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">$ mkdir /derrick</span><br><span class="line">$ <span class="built_in">cd</span> /derrick</span><br><span class="line">$ mkdir hexo</span><br><span class="line">$ <span class="built_in">cd</span> hexo</span><br><span class="line"><span class="comment"># install git (if had installed, skip)</span></span><br><span class="line">$ yum install git-core</span><br><span class="line"><span class="comment"># intialize hexo</span></span><br><span class="line">$ hexo init</span><br></pre></td></tr></table></figure><h3 id="install-dependencies"><a href="#install-dependencies" class="headerlink" title="install dependencies"></a>install dependencies</h3><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></pre></td><td class="code"><pre><span class="line">$ npm install hexo-generator-index --save</span><br><span class="line">$ npm install hexo-generator-archive --save</span><br><span class="line">$ npm install hexo-generator-category --save</span><br><span class="line">$ npm install hexo-generator-tag --save</span><br><span class="line">$ npm install hexo-server --save</span><br><span class="line">$ npm install hexo-deployer-git --save</span><br><span class="line">$ npm install hexo-deployer-heroku --save</span><br><span class="line">$ npm install hexo-deployer-rsync --save</span><br><span class="line">$ npm install hexo-deployer-openshift --save</span><br><span class="line">$ npm install hexo-renderer-marked --save</span><br><span class="line">$ npm install hexo-renderer-stylus --save</span><br><span class="line">$ npm install hexo-generator-feed --save</span><br><span class="line">$ npm install hexo-generator-sitemap --save</span><br><span class="line"><span class="comment"># this use for post folder about image</span></span><br><span class="line">$ npm install hexo-asset-image --save</span><br></pre></td></tr></table></figure><h3 id="change-config-file"><a href="#change-config-file" class="headerlink" title="change config file"></a>change config file</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">$ vi _config.yml</span><br></pre></td></tr></table></figure><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></pre></td><td class="code"><pre><span class="line">> in "depoy:" level add following:</span><br><span class="line">>> repo: [email protected]:sitlight/sitylihgt.github.io.git</span><br><span class="line">>> branch: master</span><br><span class="line">>> message: 'messsage:{{now("YYYY-MM-DD HH/mm/ss")}}'</span><br></pre></td></tr></table></figure><p><img src="/2018/03/25/install-hexo/image/config.jpg" alt="deploy config"></p><h2 id="Deploy-Hexo-to-GitHub"><a href="#Deploy-Hexo-to-GitHub" class="headerlink" title="Deploy Hexo to GitHub"></a>Deploy Hexo to GitHub</h2><h3 id="config-global-git-envrionment"><a href="#config-global-git-envrionment" class="headerlink" title="config global git envrionment"></a>config global git envrionment</h3><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></pre></td><td class="code"><pre><span class="line"><span class="comment"># email should be same with github account</span></span><br><span class="line">$ git config --global user.mail <span class="string">"[email protected]"</span></span><br><span class="line">$ git config --globad user.name <span class="string">"sitylight"</span></span><br></pre></td></tr></table></figure><h3 id="create-SSH-key"><a href="#create-SSH-key" class="headerlink" title="create SSH key"></a>create SSH key</h3><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">$ ssh-keygen -t rsa -C email.account</span><br><span class="line"><span class="comment"># following operation are always enter</span></span><br></pre></td></tr></table></figure><h3 id="create-GitHub-repository-and-config-ssh-key"><a href="#create-GitHub-repository-and-config-ssh-key" class="headerlink" title="create GitHub repository and config ssh-key"></a>create GitHub repository and config ssh-key</h3><figure class="highlight plain"><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">create a repository named "sitylight"</span><br><span class="line">add ssh-key to github</span><br></pre></td></tr></table></figure><p><img src="/2018/03/25/install-hexo/image/ssh-key.jpg" alt="deploy config"><br><img src="/2018/03/25/install-hexo/image/github_key.jpg" alt="deploy config"></p><h3 id="general-and-deploy"><a href="#general-and-deploy" class="headerlink" title="general and deploy"></a>general and deploy</h3><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">$ hexo g</span><br><span class="line">$ hexo d</span><br></pre></td></tr></table></figure><h2 id="start-serve-on-local"><a href="#start-serve-on-local" class="headerlink" title="start serve on local"></a>start serve on local</h2><h3 id="open-firewall-port"><a href="#open-firewall-port" class="headerlink" title="open firewall port"></a>open firewall port</h3><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">$ firewall-cmd --permanent --add-port=4000/tcp</span><br><span class="line">$ firewall-cmd --reload</span><br></pre></td></tr></table></figure><h3 id="start-server"><a href="#start-server" class="headerlink" title="start server"></a>start server</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo s</span><br></pre></td></tr></table></figure>]]></content>
<summary type="html">
<h2 id="Install-Node-js"><a href="#Install-Node-js" class="headerlink" title="Install Node.js"></a>Install Node.js</h2><h3 id="download"><a
</summary>
</entry>
</feed>