-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatom.xml
91 lines (50 loc) · 25.2 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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>TonyYang的博客</title>
<link href="/atom.xml" rel="self"/>
<link href="http://yoursite.com/"/>
<updated>2018-11-28T06:43:56.870Z</updated>
<id>http://yoursite.com/</id>
<author>
<name>Tony Yang</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>CentOS安装MySQL8.0步骤和问题解决方法</title>
<link href="http://yoursite.com/2018/11/28/CentOS%E5%AE%89%E8%A3%85MySQL8-0%E6%AD%A5%E9%AA%A4%E5%92%8C%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/"/>
<id>http://yoursite.com/2018/11/28/CentOS安装MySQL8-0步骤和问题解决方法/</id>
<published>2018-11-28T06:31:00.000Z</published>
<updated>2018-11-28T06:43:56.870Z</updated>
<content type="html"><![CDATA[<h6 id="1-进入MySQL官网-打开链接-查看安装文档"><a href="#1-进入MySQL官网-打开链接-查看安装文档" class="headerlink" title="1. 进入MySQL官网 打开链接 查看安装文档"></a>1. 进入MySQL官网 <a href="http://dev.mysql.com/doc/mysql-yum-repo-quick-guide" target="_blank" rel="noopener">打开链接</a> 查看安装文档</h6><h6 id="2-下载MySQL-yum包(可以理解为mysql安装器),用来执行安装mysql命令。根据服务器Linux版本选择对应版本,点击链接进入版本列表"><a href="#2-下载MySQL-yum包(可以理解为mysql安装器),用来执行安装mysql命令。根据服务器Linux版本选择对应版本,点击链接进入版本列表" class="headerlink" title="2. 下载MySQL yum包(可以理解为mysql安装器),用来执行安装mysql命令。根据服务器Linux版本选择对应版本,点击链接进入版本列表"></a>2. 下载MySQL yum包(可以理解为mysql安装器),用来执行安装mysql命令。根据服务器Linux版本选择对应版本,<a href="https://dev.mysql.com/downloads/repo/yum/" target="_blank" rel="noopener">点击链接进入版本列表</a></h6><p>2.1 复制rpm文件下载链接,直接下载到服务器缓存</p><p>例如:<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">wget http://repo.mysql.com/mysql57-community-release-el7-10.noarch.rpm</span><br></pre></td></tr></table></figure></p><h6 id="3-安装yum包;需要使用命令"><a href="#3-安装yum包;需要使用命令" class="headerlink" title="3. 安装yum包;需要使用命令"></a>3. 安装yum包;需要使用命令</h6><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">sudo rpm -Uvh <span class="string">"platform-and-version-specific-package-name"</span></span><br></pre></td></tr></table></figure><p> 将 “platform-and-version-specific-package-name” 替换为你下载的rpm名</p><p> 例如:<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">sudo rpm -Uvh mysql57-community-release-el7-10.noarch.rpm</span><br></pre></td></tr></table></figure></p><h6 id="4-yum包安装成功后运行包命令安装mysql服务端-该命令是运行mysql安装器,8-0版本有402M,安装时间与下载速度有很大关系"><a href="#4-yum包安装成功后运行包命令安装mysql服务端-该命令是运行mysql安装器,8-0版本有402M,安装时间与下载速度有很大关系" class="headerlink" title="4. yum包安装成功后运行包命令安装mysql服务端 (该命令是运行mysql安装器,8.0版本有402M,安装时间与下载速度有很大关系)"></a>4. yum包安装成功后运行包命令安装mysql服务端 (该命令是运行mysql安装器,8.0版本有402M,安装时间与下载速度有很大关系)</h6><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">yum install -y mysql-community-server</span><br></pre></td></tr></table></figure><h6 id="5-首次启动mysql"><a href="#5-首次启动mysql" class="headerlink" title="5. 首次启动mysql"></a>5. 首次启动mysql</h6><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">service mysqld start</span><br></pre></td></tr></table></figure><h6 id="6-检查mysql运行状态(检测是否安装成功)"><a href="#6-检查mysql运行状态(检测是否安装成功)" class="headerlink" title="6. 检查mysql运行状态(检测是否安装成功)"></a>6. 检查mysql运行状态(检测是否安装成功)</h6><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">service mysqld status</span><br></pre></td></tr></table></figure><h6 id="7-修改密码。mysql安装成功后会生成一个临时密码,修改密码之前首先需要获取默认密码"><a href="#7-修改密码。mysql安装成功后会生成一个临时密码,修改密码之前首先需要获取默认密码" class="headerlink" title="7. 修改密码。mysql安装成功后会生成一个临时密码,修改密码之前首先需要获取默认密码"></a>7. 修改密码。mysql安装成功后会生成一个临时密码,修改密码之前首先需要获取默认密码</h6><p>7.1 获取默认密码<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">grep <span class="string">'temporary password'</span> /var/<span class="built_in">log</span>/mysqld.log</span><br></pre></td></tr></table></figure></p><p>7.2 输入临时密码登录mysql<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">mysql -uroot -p</span><br></pre></td></tr></table></figure></p><p>7.3 登入mysql之后才能修改密码,将’password’修改为 ‘你的密码’<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">ALTER USER <span class="string">'root'</span>@<span class="string">'localhost'</span> IDENTIFIED BY <span class="string">'password'</span></span><br></pre></td></tr></table></figure></p><p>7.3.1 如果密码未包含字母数字和符号将会提示更改不成功,因为mysql的密码格式默认检测到不安全。如果不需要设置过于复杂,可以修改配置<br>8.0之前版本需要输入</p><p> 修改复杂度<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"><span class="built_in">set</span> global validate_password_policy=0;</span><br></pre></td></tr></table></figure></p><p> 修改长度<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"><span class="built_in">set</span> global validate_password_length=1;</span><br></pre></td></tr></table></figure></p><p>8.0之后版本输入(可能是新版本语法和结构稍有调整吧)</p><p> 修改复杂度<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"><span class="built_in">set</span> global validate_password.policy=0;</span><br></pre></td></tr></table></figure></p><p> 修改长度<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"><span class="built_in">set</span> global validate_password.length=1;</span><br></pre></td></tr></table></figure></p><p>7.3.2 修改配置之后再次修改密码即可成功</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">ALTER USER <span class="string">'root'</span>@<span class="string">'localhost'</span> IDENTIFIED BY <span class="string">'password'</span></span><br></pre></td></tr></table></figure><h6 id="8-Mysql授权任意地址以root的用户名进行登陆"><a href="#8-Mysql授权任意地址以root的用户名进行登陆" class="headerlink" title="8. Mysql授权任意地址以root的用户名进行登陆"></a>8. Mysql授权任意地址以root的用户名进行登陆</h6><p>8.1 创建用户并授权<br>8.0之前版本:</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">GRANT ALL PRIVILEGES ON *.* TO <span class="string">'root'</span>@<span class="string">'%'</span> IDENTIFIED BY <span class="string">'password'</span> WITH GRANT OPTION;</span><br></pre></td></tr></table></figure><p>8.0之后版本,因为新版的的mysql版本已经将创建账户和赋予权限的方式分开了,所以直接运行上面的命令会报语法错误,因此需要依次执行以下命令<br>第一步:创建账户<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">create user <span class="string">'用户名'</span>@<span class="string">'访问主机'</span> identified by <span class="string">'密码'</span>;</span><br></pre></td></tr></table></figure></p><p>第二步:赋予权限<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">grant 权限列表 on 数据库 to <span class="string">'用户名'</span>@<span class="string">'访问主机'</span> ;(修改权限时在后面加with grant option)</span><br></pre></td></tr></table></figure></p><p>8.2 授权结束并使配置生效<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">FLUSH PRIVILEGES;</span><br></pre></td></tr></table></figure></p><p>在使用数据库工具进行连接mysql时会出现mysql8 :客户端连接caching-sha2-password问题,是由于虽然为mysql创建了可访问的用户名和密码但是并未设置加密方式,重新配置用户名和密码<br>并附带上加密方式<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">ALTER USER <span class="string">'username'</span>@<span class="string">'ip_address'</span> IDENTIFIED WITH mysql_native_password BY <span class="string">'password'</span>;</span><br></pre></td></tr></table></figure></p>]]></content>
<summary type="html">
<h6 id="1-进入MySQL官网-打开链接-查看安装文档"><a href="#1-进入MySQL官网-打开链接-查看安装文档" class="headerlink" title="1. 进入MySQL官网 打开链接 查看安装文档"></a>1. 进入MySQL官网 <a
</summary>
</entry>
<entry>
<title>CentOS7安装iptables防火墙</title>
<link href="http://yoursite.com/2018/11/28/CentOS7%E5%AE%89%E8%A3%85iptables%E9%98%B2%E7%81%AB%E5%A2%99/"/>
<id>http://yoursite.com/2018/11/28/CentOS7安装iptables防火墙/</id>
<published>2018-11-28T06:15:00.000Z</published>
<updated>2018-11-28T06:30:13.455Z</updated>
<content type="html"><![CDATA[<p>CentOS7默认的防火墙不是iptables,而是firewalle.</p><h5 id="一、安装iptable-iptable-service"><a href="#一、安装iptable-iptable-service" class="headerlink" title="一、安装iptable iptable-service"></a>一、安装iptable iptable-service</h5><h6 id="1-先检查是否安装了iptables"><a href="#1-先检查是否安装了iptables" class="headerlink" title="1.先检查是否安装了iptables"></a>1.先检查是否安装了iptables</h6><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">service iptables status</span><br></pre></td></tr></table></figure><h6 id="2-安装iptables"><a href="#2-安装iptables" class="headerlink" title="2.安装iptables"></a>2.安装iptables</h6><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">yum install -y iptables</span><br></pre></td></tr></table></figure><h6 id="3-升级iptables(安装的最新版本则不需要)"><a href="#3-升级iptables(安装的最新版本则不需要)" class="headerlink" title="3.升级iptables(安装的最新版本则不需要)"></a>3.升级iptables(安装的最新版本则不需要)</h6><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">yum update iptables</span><br></pre></td></tr></table></figure><h6 id="4-安装iptables-services"><a href="#4-安装iptables-services" class="headerlink" title="4.安装iptables-services"></a>4.安装iptables-services</h6><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">yum install iptables-services</span><br></pre></td></tr></table></figure><h5 id="二、禁用-停止自带的firewalld服务"><a href="#二、禁用-停止自带的firewalld服务" class="headerlink" title="二、禁用/停止自带的firewalld服务"></a>二、禁用/停止自带的firewalld服务</h5><h6 id="1-停止firewalld服务"><a href="#1-停止firewalld服务" class="headerlink" title="1.停止firewalld服务"></a>1.停止firewalld服务</h6><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 stop firewalld</span><br></pre></td></tr></table></figure><h6 id="2-禁用firewalld服务"><a href="#2-禁用firewalld服务" class="headerlink" title="2.禁用firewalld服务"></a>2.禁用firewalld服务</h6><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 mask firewalld</span><br></pre></td></tr></table></figure><h6 id="3、设置现有规则"><a href="#3、设置现有规则" class="headerlink" title="3、设置现有规则"></a>3、设置现有规则</h6><p>查看iptables现有规则<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">iptables -L -n</span><br></pre></td></tr></table></figure></p><p>先允许所有,不然有可能会杯具<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">iptables -P INPUT ACCEPT</span><br></pre></td></tr></table></figure></p><p>清空所有默认规则<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">iptables -F</span><br></pre></td></tr></table></figure></p><p>清空所有自定义规则<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">iptables -X</span><br></pre></td></tr></table></figure></p><p>所有计数器归0<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">iptables -Z</span><br></pre></td></tr></table></figure></p><p>允许来自于lo接口的数据包(本地访问)<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">iptables -A INPUT -i lo -j ACCEPT</span><br></pre></td></tr></table></figure></p><p>开放22端口<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">iptables -A INPUT -p tcp --dport 22 -j ACCEPT</span><br></pre></td></tr></table></figure></p><p>开放21端口(FTP)<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">iptables -A INPUT -p tcp --dport 21 -j ACCEPT</span><br></pre></td></tr></table></figure></p><p>开放80端口(HTTP)<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">iptables -A INPUT -p tcp --dport 80 -j ACCEPT</span><br></pre></td></tr></table></figure></p><p>开放443端口(HTTPS)<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">iptables -A INPUT -p tcp --dport 443 -j ACCEPT</span><br></pre></td></tr></table></figure></p><p>允许ping<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">iptables -A INPUT -p icmp --icmp-type 8 -j ACCEPT</span><br></pre></td></tr></table></figure></p><p>允许接受本机请求之后的返回数据 RELATED,是为FTP设置的<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">iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT</span><br></pre></td></tr></table></figure></p><p>其他入站一律丢弃<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">iptables -P INPUT DROP</span><br></pre></td></tr></table></figure></p><p>所有出站一律绿灯<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">iptables -P OUTPUT ACCEPT</span><br></pre></td></tr></table></figure></p><p>所有转发一律丢弃<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">iptables -P FORWARD DROP</span><br></pre></td></tr></table></figure></p><p>4、其他规则设定</p><p>#如果要添加内网ip信任(接受其所有TCP请求)<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">iptables -A INPUT -p tcp -s 45.96.174.68 -j ACCEPT</span><br></pre></td></tr></table></figure></p><p> 过滤所有非以上规则的请求<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">iptables -P INPUT DROP</span><br></pre></td></tr></table></figure></p><p>要封停一个IP,使用下面这条命令:<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">iptables -I INPUT -s ***.***.***.*** -j DROP</span><br></pre></td></tr></table></figure></p><p>要解封一个IP,使用下面这条命令:<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">iptables -D INPUT -s ***.***.***.*** -j DROP</span><br></pre></td></tr></table></figure></p><p>5、保存规则设定</p><p>#保存上述规则<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">service iptables save</span><br></pre></td></tr></table></figure></p><p>6、开启iptables服务<br>注册iptables服务,相当于以前的 <figure class="highlight plain"><figcaption><span>iptables on ```</span></figcaption><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">```bash</span><br><span class="line">systemctl enable iptables.service</span><br></pre></td></tr></table></figure></p><p>开启服务<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 start iptables.service</span><br></pre></td></tr></table></figure></p><p>查看状态<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 status iptables.service</span><br></pre></td></tr></table></figure></p><p>7、映射端口(如将mysql默认的3306端口映射成1306对外提供服务)<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">iptables -t mangle -I PREROUTING -p tcp --dport 1306 -j MARK --<span class="built_in">set</span>-mark 883306</span><br></pre></td></tr></table></figure></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">iptables -t nat -I PREROUTING -p tcp --dport 1306 -j REDIRECT --to-ports 3306</span><br></pre></td></tr></table></figure><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">iptables -I INPUT -p tcp --dport 3306 -m mark --mark 883306 -j ACCEPT</span><br></pre></td></tr></table></figure>]]></content>
<summary type="html">
<p>CentOS7默认的防火墙不是iptables,而是firewalle.</p>
<h5 id="一、安装iptable-iptable-service"><a href="#一、安装iptable-iptable-service" class="headerlink" t
</summary>
<category term="CentOS" scheme="http://yoursite.com/categories/CentOS/"/>
<category term="Linux" scheme="http://yoursite.com/categories/CentOS/Linux/"/>
<category term="iptables" scheme="http://yoursite.com/tags/iptables/"/>
<category term="centos防火墙" scheme="http://yoursite.com/tags/centos%E9%98%B2%E7%81%AB%E5%A2%99/"/>
</entry>
<entry>
<title>Hello World</title>
<link href="http://yoursite.com/2018/11/28/hello-world/"/>
<id>http://yoursite.com/2018/11/28/hello-world/</id>
<published>2018-11-28T06:09:32.279Z</published>
<updated>2018-11-28T06:09:32.279Z</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>