第1章 企业

架构规划

1.1

架构图

1.1.1

用户访问网站组成

<td style="width: 177.2pt; border-top-width: 1pt; border-top-color: white; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right: none; background: #9bbb59; padding: 0cm 5.4pt;" valign="top" width="236">
  <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 1;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; color: white; mso-themecolor: background1;">作用</span></strong>
  </p>
</td>

<td style="width: 218.25pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left: none; background: #9bbb59; padding: 0cm 5.4pt;" valign="top" width="291">
  <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 1;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; color: white; mso-themecolor: background1;">实现方式</span></strong>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">访问网站的人员</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">@</span>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">安全策略控制;正确的流量通过,攻击者的流量组织</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">硬件</span><span lang="EN-US">- </span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">华为</span> <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">思科</span><span lang="EN-US"> juniper</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">厂商</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">软件</span><span lang="EN-US">-iptables</span>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">提供访问者请求调度作用</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">nginx</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">反向代理负载均衡服务器</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">LVS haproxy</span>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">根据</span><span lang="EN-US">http</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">原理,回复给访问者相应的页面信息</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <strong><span lang="EN-US">nginx</span></strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">网站服务技术</span><span lang="EN-US">&nbsp; apache </span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <strong><span lang="EN-US">tomcat</span></strong>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">返回给</span><span lang="EN-US">web</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">服务器,相应用户数据的信息(字符串信息)</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">mysql oracle</span>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">返回给</span><span lang="EN-US">web</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">服务器,相应用户的视频、图片、附件等数据信息</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">NFS</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">存储服务器</span><span lang="EN-US">&nbsp; </span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">分布式储存</span><span lang="EN-US">mfs </span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">fastdfs</span>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">备份全网架构服务器的重要资料</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">定时备份</span><span lang="EN-US">rsync+</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">定时任务</span><span lang="EN-US">&nbsp; </span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">实时备份</span><span lang="EN-US"> inotify/sersync+rsync</span>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">将数据存储到内存当中,提升读取效率</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">memcache&nbsp; </span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">redis</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">&nbsp;mongodb</span>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">&nbsp;keepalived </span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">高可用</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">&nbsp;</span>
  </p>
</td>
<td style="width: 177.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="236">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">多台服务器做一件相同的事情</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">&nbsp;</span>
  </p>
</td>

1.1.2

运维人员访问网站组成

<td style="width: 204.95pt; border-top-width: 1pt; border-top-color: white; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right: none; background: #9bbb59; padding: 0cm 5.4pt;" valign="top" width="273">
  <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 1;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; color: white; mso-themecolor: background1;">作用</span></strong>
  </p>
</td>

<td style="width: 218.25pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left: none; background: #9bbb59; padding: 0cm 5.4pt;" valign="top" width="291">
  <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 1;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; color: white; mso-themecolor: background1;">实现方式</span></strong>
  </p>
</td>
<td style="width: 204.95pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="273">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">实现加密传输数据,实现认证建立连接</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">&nbsp;</span>
  </p>
</td>
<td style="width: 204.95pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="273">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">监控运维人员操作信息</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">&nbsp;&nbsp; 1</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">、实时监控运维人员桌面信息</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">&nbsp;&nbsp; 2</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">、命令记录功能</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">&nbsp;&nbsp; 3</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">、操作记录回放</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">&nbsp;&nbsp; 4</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">、用户审计功能</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">jumpsever/gateone</span>
  </p>
</td>
<td style="width: 204.95pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="273">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">批量自动化管理多台主机</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">ssh+key </span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">ansible </span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">(</span><span lang="EN-US">200-300</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">台)</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">saltstack</span>
  </p>
</td>
<td style="width: 204.95pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="273">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">监控架构服务器运行情况</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #eaf1dd; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">zabbix/nagios+cacti</span>
  </p>
</td>
<td style="width: 204.95pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="273">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">(</span><span lang="EN-US">kicksrtart/cobbler</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">)</span>
  </p>
</td>

<td style="width: 218.25pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right-width: 1pt; border-right-color: white; background: #d6e3bc; padding: 0cm 5.4pt;" width="291">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; mso-yfti-cnfc: 64;">
    <span lang="EN-US">&nbsp;</span>
  </p>
</td>

1.2

架构搭建顺序

  <td style="width: 35.94%; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; background: #ed7d31; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="35%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">服务</span>
    </p>
  </td>
  
  <td style="width: 49.98%; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; background: #ed7d31; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="49%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">软件</span>
    </p>
  </td>
</tr>

<tr style="mso-yfti-irow: 1; height: 13.8pt;">
  <td style="width: 14.08%; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-top: none; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="14%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">1</span>
    </p>
  </td>
  
  <td style="width: 35.94%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="35%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">备份存储服务器</span>
    </p>
  </td>
  
  <td style="width: 49.98%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="49%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">rsync</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">软件实现备份服务</span>
    </p>
  </td>
</tr>

<tr style="mso-yfti-irow: 2; height: 13.8pt;">
  <td style="width: 14.08%; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-top: none; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="14%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">2</span>
    </p>
  </td>
  
  <td style="width: 35.94%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="35%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">存储服务器</span>
    </p>
  </td>
  
  <td style="width: 49.98%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="49%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">NFS</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">软件实现存储服务</span>
    </p>
  </td>
</tr>

<tr style="mso-yfti-irow: 3; height: 13.8pt;">
  <td style="width: 14.08%; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-top: none; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="14%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">3</span>
    </p>
  </td>
  
  <td style="width: 35.94%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="35%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">1 2 </span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">之间实时同步</span>
    </p>
  </td>
  
  <td style="width: 49.98%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="49%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">inotify+rsync/sersync</span>
    </p>
  </td>
</tr>

<tr style="mso-yfti-irow: 4; height: 13.8pt;">
  <td style="width: 14.08%; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-top: none; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="14%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">4</span>
    </p>
  </td>
  
  <td style="width: 35.94%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="35%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">批量管理服务器</span>
    </p>
  </td>
  
  <td style="width: 49.98%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="49%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span style="color: red;" lang="EN-US">ssh+key/ansible</span><span lang="EN-US">/saltstack</span>
    </p>
  </td>
</tr>

<tr style="mso-yfti-irow: 5; height: 13.8pt;">
  <td style="width: 14.08%; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-top: none; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="14%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">5</span>
    </p>
  </td>
  
  <td style="width: 35.94%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="35%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">web</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">服务</span>
    </p>
  </td>
  
  <td style="width: 49.98%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="49%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">nginx</span>
    </p>
  </td>
</tr>

<tr style="mso-yfti-irow: 6; height: 13.8pt;">
  <td style="width: 14.08%; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-top: none; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="14%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">6</span>
    </p>
  </td>
  
  <td style="width: 35.94%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="35%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">LNMP</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">架构</span>
    </p>
  </td>
  
  <td style="width: 49.98%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="49%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">linux+nginx+mysql+php</span>
    </p>
  </td>
</tr>

<tr style="mso-yfti-irow: 7; height: 13.8pt;">
  <td style="width: 14.08%; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-top: none; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="14%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">7</span>
    </p>
  </td>
  
  <td style="width: 35.94%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="35%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">负载均衡</span>
    </p>
  </td>
  
  <td style="width: 49.98%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; background: #fce4d6; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="49%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">ngnix</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">负载均衡</span>
    </p>
  </td>
</tr>

<tr style="mso-yfti-irow: 8; mso-yfti-lastrow: yes; height: 13.8pt;">
  <td style="width: 14.08%; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-top: none; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="14%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">8</span>
    </p>
  </td>
  
  <td style="width: 35.94%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="35%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">心跳线</span>
    </p>
  </td>
  
  <td style="width: 49.98%; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt; height: 13.8pt;" nowrap="nowrap" width="49%">
    <p class="MsoNormal" style="text-align: center;" align="center">
      <span lang="EN-US">keeplived </span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">高可用</span>
    </p>
  </td>
</tr>

1.3

架构环境

1.3.1

主机环境

<td style="width: 42.5pt; border-top-width: 1pt; border-top-color: #4f81bd; border-left: none; border-bottom-width: 1pt; border-bottom-color: #4f81bd; border-right: none; background: #4f81bd; padding: 0cm 5.4pt;" width="57">
  <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 1;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; color: white; mso-themecolor: background1;">数量</span></strong>
  </p>
</td>

<td style="width: 324.6pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: #4f81bd; border-right-color: #4f81bd; border-bottom-color: #4f81bd; border-left: none; background: #4f81bd; padding: 0cm 5.4pt;" width="433">
  <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 1;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; color: white; mso-themecolor: background1;">作用说明</span></strong>
  </p>
</td>
<td style="width: 42.5pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; background: #dbe5f1; padding: 0cm 5.4pt;" width="57">
  <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 64;" align="center">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">两台</span>
  </p>
</td>

<td style="width: 324.6pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; background: #dbe5f1; padding: 0cm 5.4pt;" valign="top" width="433">
  <p class="MsoNormal">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">对访问网站的流量进行风流,减少流量对某台服务器的压力</span>
  </p>
</td>
<td style="width: 42.5pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; padding: 0cm 5.4pt;" width="57">
  <p class="MsoNormal" style="text-align: center;" align="center">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">三台</span>
  </p>
</td>

<td style="width: 324.6pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; padding: 0cm 5.4pt;" valign="top" width="433">
  <p class="MsoNormal">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">处理用户的页面访问请求</span><span lang="EN-US">(Nginx)</span>
  </p>
</td>
<td style="width: 42.5pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; background: #dbe5f1; padding: 0cm 5.4pt;" width="57">
  <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 64;" align="center">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">一台</span>
  </p>
</td>

<td style="width: 324.6pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; background: #dbe5f1; padding: 0cm 5.4pt;" valign="top" width="433">
  <p class="MsoNormal">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">储存图片、附件、头像等静态数据</span>
  </p>
</td>
<td style="width: 42.5pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; padding: 0cm 5.4pt;" width="57">
  <p class="MsoNormal" style="text-align: center;" align="center">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">一台</span>
  </p>
</td>

<td style="width: 324.6pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; padding: 0cm 5.4pt;" valign="top" width="433">
  <p class="MsoNormal">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">对全网服务器数据进行实时与定时备份</span>
  </p>
</td>
<td style="width: 42.5pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; background: #dbe5f1; padding: 0cm 5.4pt;" width="57">
  <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 64;" align="center">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">一台</span>
  </p>
</td>

<td style="width: 324.6pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; background: #dbe5f1; padding: 0cm 5.4pt;" valign="top" width="433">
  <p class="MsoNormal">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">对动态变化数据进行存储(文本内容)</span>
  </p>
</td>
<td style="width: 42.5pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; padding: 0cm 5.4pt;" width="57">
  <p class="MsoNormal" style="text-align: center;" align="center">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">一台</span>
  </p>
</td>

<td style="width: 324.6pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: #95b3d7; border-right-width: 1pt; border-right-color: #95b3d7; padding: 0cm 5.4pt;" valign="top" width="433">
  <p class="MsoListParagraph" style="margin-left: 0cm; mso-para-margin-left: -2.86gd; text-indent: -34.3pt; mso-char-indent-count: -2.86; mso-list: l0 level1 lfo2;">
    <!--[if !supportLists]-->
    
    <span lang="EN-US">1)<span style="font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp; </span></span><!--[endif]-->
    
    <span lang="EN-US">1.</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">作为</span><span lang="EN-US">yum</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">仓库服务器,提供全网服务器的软件下载</span>
  </p>
  
  <p class="MsoListParagraph" style="margin-left: 0cm; mso-para-margin-left: -2.86gd; text-indent: -34.3pt; mso-char-indent-count: -2.86; mso-list: l0 level1 lfo2;">
    <!--[if !supportLists]-->
    
    <span lang="EN-US">2)<span style="font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp; </span></span><!--[endif]-->
    
    <span lang="EN-US">2.</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">跳板机、操作审计</span>
  </p>
  
  <p class="MsoListParagraph" style="margin-left: 0cm; mso-para-margin-left: -2.86gd; text-indent: -34.3pt; mso-char-indent-count: -2.86; mso-list: l0 level1 lfo2;">
    <!--[if !supportLists]-->
    
    <span lang="EN-US">3)<span style="font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp; </span></span><!--[endif]-->
    
    <span lang="EN-US">3.vpn(pptp)</span>
  </p>
  
  <p class="MsoListParagraph" style="margin-left: 0cm; mso-para-margin-left: -2.86gd; text-indent: -34.3pt; mso-char-indent-count: -2.86; mso-list: l0 level1 lfo2;">
    <!--[if !supportLists]-->
    
    <span lang="EN-US">4)<span style="font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp; </span></span><!--[endif]-->
    
    <span lang="EN-US">4.</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">监控</span><span lang="EN-US">(zabbix)</span>
  </p>
  
  <p class="MsoListParagraph" style="margin-left: 0cm; mso-para-margin-left: -2.86gd; text-indent: -34.3pt; mso-char-indent-count: -2.86; mso-list: l0 level1 lfo2;">
    <!--[if !supportLists]-->
    
    <span lang="EN-US">5)<span style="font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp; </span></span><!--[endif]-->
    
    <span lang="EN-US">5.</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">兼职批量分发和管理(</span><span lang="EN-US">ssh+key/ansible/saltstack</span><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">)</span>
  </p>
</td>

1.3.2

各主机(IP/主机名)规划

<td style="width: 106.3pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; background: #a6a6a6; padding: 0cm 5.4pt;" valign="top" width="142">
  <p class="MsoNormal" style="text-align: center;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">外网</span><span lang="EN-US">ip</span></strong><strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">(</span><span lang="EN-US">nat</span></strong><strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">)</span></strong>
  </p>
</td>

<td style="width: 134.65pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; background: #a6a6a6; padding: 0cm 5.4pt;" valign="top" width="180">
  <p class="MsoNormal" style="text-align: center;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">内网</span><span lang="EN-US">IP</span></strong><strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">(</span><span lang="EN-US">LAN</span></strong><strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">区段)</span></strong>
  </p>
</td>

<td style="width: 97.8pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; background: #a6a6a6; padding: 0cm 5.4pt;" valign="top" width="130">
  <p class="MsoNormal" style="text-align: center;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">主机名称规划</span></strong>
  </p>
</td>
<td style="width: 106.3pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="142">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">10.0.0.5/24</span>
  </p>
</td>

<td style="width: 134.65pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="180">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">172.16.1.5/24</span>
  </p>
</td>

<td style="width: 97.8pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="130">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">lb01</span>
  </p>
</td>
<td style="width: 106.3pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="142">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">10.0.0.6/24</span>
  </p>
</td>

<td style="width: 134.65pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="180">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">172.16.1.6/24</span>
  </p>
</td>

<td style="width: 97.8pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="130">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">lb02</span>
  </p>
</td>
<td style="width: 106.3pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="142">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">10.0.0.7/24</span>
  </p>
</td>

<td style="width: 134.65pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="180">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">172.16.1.7/24</span>
  </p>
</td>

<td style="width: 97.8pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="130">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">web02</span>
  </p>
</td>
<td style="width: 106.3pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="142">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">10.0.0.8/24</span>
  </p>
</td>

<td style="width: 134.65pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="180">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">172.16.1.8/24</span>
  </p>
</td>

<td style="width: 97.8pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="130">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">web01</span>
  </p>
</td>
<td style="width: 106.3pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="142">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">10.0.0.9/24</span>
  </p>
</td>

<td style="width: 134.65pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="180">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">172.16.1.924</span>
  </p>
</td>

<td style="width: 97.8pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="130">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">web03</span>
  </p>
</td>
<td style="width: 106.3pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="142">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <strong><span style="color: #00b050;" lang="EN-US">10.0.0.51/24</span></strong>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-size: 11pt;" lang="EN-US">(</span><span style="font-size: 11pt; font-family: 微软雅黑, sans-serif;">生产环境不设置</span><span style="font-size: 11pt;" lang="EN-US">)</span>
  </p>
</td>

<td style="width: 134.65pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="180">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">172.16.1.51/24</span>
  </p>
</td>

<td style="width: 97.8pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="130">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">db01</span>
  </p>
</td>
<td style="width: 106.3pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="142">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <strong><span style="color: #00b050;" lang="EN-US">10.0.0.31/24</span></strong>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-size: 11pt;" lang="EN-US">(</span><span style="font-size: 11pt; font-family: 微软雅黑, sans-serif;">生产环境不设置</span><span style="font-size: 11pt;" lang="EN-US">)</span>
  </p>
</td>

<td style="width: 134.65pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="180">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">172.16.1.31/24</span>
  </p>
</td>

<td style="width: 97.8pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="130">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">nfs01</span>
  </p>
</td>
<td style="width: 106.3pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="142">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <strong><span style="color: #00b050;" lang="EN-US">10.0.0.41/24</span></strong>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-size: 11pt;" lang="EN-US">(</span><span style="font-size: 11pt; font-family: 微软雅黑, sans-serif;">生产环境不设置</span><span style="font-size: 11pt;" lang="EN-US">)</span>
  </p>
</td>

<td style="width: 134.65pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="180">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">172.16.1.41/24</span>
  </p>
</td>

<td style="width: 97.8pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="130">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">backup</span>
  </p>
</td>
<td style="width: 106.3pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="142">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <strong><span style="color: #00b050;" lang="EN-US">10.0.0.61/24</span></strong>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-size: 11pt;" lang="EN-US">(</span><span style="font-size: 11pt; font-family: 微软雅黑, sans-serif;">生产环境不设置</span><span style="font-size: 11pt;" lang="EN-US">)</span>
  </p>
</td>

<td style="width: 134.65pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="180">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">172.16.1.61/24</span>
  </p>
</td>

<td style="width: 97.8pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="130">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">m01</span>
  </p>
</td>

1.3.3

初始目录规划

<td style="width: 137.35pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; background: #a6a6a6; padding: 0cm 5.4pt;" valign="top" width="183">
  <p class="MsoNormal" style="text-align: center;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">目录结构</span></strong>
  </p>
</td>

<td style="width: 211.2pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; background: #a6a6a6; padding: 0cm 5.4pt;" valign="top" width="282">
  <p class="MsoNormal" style="text-align: center;" align="center">
    <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">目录结构说明</span></strong>
  </p>
</td>
<td style="width: 137.35pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="183">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">/server/scripts</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">/server/tools</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span lang="EN-US">/application</span>
  </p>
</td>

<td style="width: 211.2pt; border-top: none; border-left: none; border-bottom-width: 1pt; border-bottom-color: windowtext; border-right-width: 1pt; border-right-color: windowtext; padding: 0cm 5.4pt;" width="282">
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">存放脚本的目录</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">存放编译安装软件源代码的目录</span>
  </p>
  
  <p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph;">
    <span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New';">软件程序的安装目录</span>
  </p>
</td>

1.4

虚拟主机配置

1.4.1

虚拟主机网卡添加vmware软件)

图1-1

添加网卡

图1-2

添加完成

1.4.2

编辑网络

图1-3

修改NAT网络的网段

图1-4

修改NAT网络的网关

图1-5

第一块网卡设置

图1-6

第二块网卡设置 LAN区段

图1-7

第二块网卡选择好LAN区段

1.4.3

虚拟主机网卡地址配置

图1-8

第一块网卡eth0配置

图1-9

第二块网卡eth1配置

1.4.4

网卡配置好后注意

第2章

架构主机优化脚本

#change system directory: create seripts/software directory function change_dir(){ ShellDir="/server/scripts" SoftwareDir="/server/tools" mkdir -p $ShellDir &&
mkdir -p $SoftwareDir }

input info verify

function info_verify(){ read -p "Please make sure the information you entered (yes|no): " info case "$info" in y|Y) continue ;; n|N) exit 1 ;; esac }

#change system hostname function change_hostname(){ read -p "Please input hostname: " HostName info_verify hostname $HostName &&
sed -i "2s/=.*$/=$HostName/g" /etc/sysconfig/network &&
chk_hosts=$(grep -o "\b$HostName\b" /etc/hosts) get_ip=$(ifconfig eth0|awk -F "[ :]+" NR==2 {print $4}) if [ -z $chk_hosts ] then echo "$get_ip $HostName" »/etc/hosts else continue fi }

#boot system optimize: setup chkconfig function change_chkconfig(){ Boot_options="$1" for boots in chkconfig --list|<span style="color: #0000ff;">grep</span> <span style="color: #800000;">"</span><span style="color: #800000;">3:on</span><span style="color: #800000;">"</span>|<span style="color: #0000ff;">awk</span> <span style="color: #800000;">'</span><span style="color: #800000;">{print $1}</span><span style="color: #800000;">'</span>|<span style="color: #0000ff;">grep</span> -vE <span style="color: #800000;">"</span><span style="color: #800000;">$Boot_options</span><span style="color: #800000;">"</span><span style="color: #000000;"> do chkconfig $boots off done }

#setup system optimize: setup ulimit function change_ulimit(){ grep "* - nofile 65535" /etc/security/limits.conf >/dev/null 2>&1 if [ $? -ne ] then echo * - nofile 65535 »/etc/security/limits.conf fi }

#setup system optimize: setup sysctl function change_sysctl(){ cat /tmp/sysctl.conf >/etc/sysctl.conf &&
modprobe bridge &>/dev/null &&
sysctl -p &>/dev/null }

#sshd software optimize: change sshd_conf function change_sshdfile(){ SSH_Port="port 22" SSH_ListenAddress=$(ifconfig eth0|awk -F "[ :]+" NR==2 {print $4}) SSH_PermitRootLogin="PermitRootLogin no" SSH_PermitEmptyPassword="PermitEmptyPasswords no" SSH_GSSAPI="GSSAPIAuthentication no" SSH_DNS="useDNS no" #sed -i -e "13s/./$SSH_Port/g" /etc/ssh/sshd_config #sed -i -e "15s/./ListenAddress $SSH_ListenAddress/g" /etc/ssh/sshd_config #sed -i -e "42s/./$SSH_PermitRootLogin/g" /etc/ssh/sshd_config #sed -i -e "65s/./$SSH_PermitEmptyPassword/g" /etc/ssh/sshd_config sed -i -e "81s/./$SSH_GSSAPI/g" /etc/ssh/sshd_config sed -i -e "122s/./$SSH_DNS/g" /etc/ssh/sshd_config }

#selinux software optimize: change disable function change_selinux(){ sed -i s#SELINUX=.*#SELINUX=disabled#g /etc/selinux/config &&
setenforce }

#firewall software optimize: change stop function change_firewall(){ /etc/init.d/iptables stop >/dev/null 2>&1 }

#crond software optimize: time synchronization function change_update(){ grep -i "#crond-id-001" /var/spool/cron/root >/dev/null 2>&1 if [ $? -ne ] then echo #crond-id-001:time sync by hq »/var/spool/cron/root echo "*/5 * * * * /usr/sbin/ntpdate time.nist.gov >/dev/null 2>&1"»/var/spool/cron/root fi }

#update yum info function update_yum(){ wget -q -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo wget -q -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo }

#change profile file info function change_profile(){ grep "PS1" /etc/profile »/dev/null 2>&1 if [ $? -ne ] then echo "PS1=’[\e[32;1m][\u@\h \W]\$ [\e[0m]’" »/etc/profile fi grep "alias grep" /etc/profile »/dev/null 2>&1 if [ $? -ne ] then echo "alias grep=‘grep –color=auto’" »/etc/profile echo "alias ll=‘ls -l –color=auto –time-style=long-iso’" »/etc/profile fi source /etc/profile }

function main(){ change_dir change_hostname change_chkconfig "crond|network|rsyslog|sshd|sysstat" change_ulimit change_sysctl change_sshdfile change_selinux change_firewall change_update update_yum change_profile } main action "system optimize complete" /bin/true

2.1

架构优化脚本内容

2.1.1

更改yum

2.1.2

关闭selinux

2.1.3

关闭关防火墙

2.1.4

精简开机自启动服务

2.1.5

提权oldboy可以sudo(可选)

2.1.6

中文字符集(不用做)

2.1.7

时间同步

2.1.8

命令行安全(千万别做)

2.1.9

加大文件描述符

2.1.10

内核优化

2.1.11

安装一些软件

2.1.12

系统升级操作(暂不使用)

2.2

模板机主机hosts文件配置

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 172.16.1.5 lb01 172.16.1.6 lb02 172.16.1.7 web02 172.16.1.8 web01 172.16.1.9 web03 172.16.1.51 db01 db01.etiantian.org 172.16.1.31 nfs01 172.16.1.41 backup 172.16.1.61 m01 EOF

第3章

虚拟机克隆

3.1

克隆前准备

3.2

进行克隆

3.2.1

保留快照

3.3

进行克隆

3.3.1

进行克隆

3.3.2

创建连接克隆

3.4

克隆主机配置

3.4.1

手动修改网卡地址

3.4.2

修改系统主机名称

3.4.3

重启网卡生效

3.4.4

重新建立xsheel标签进行连接

3.5

虚拟主机快照

3.6

错误排查

3.6.1

网卡配置问题

3.7

如何让setup 命令中防火墙配置生效

3.7.1

CentOS系统找不到setup命令工具的解决方法

yum -y install ntsysv
#安装setup工具配套的系统服务组件

yum -y install system-config-securitylevel-tui #安装setup工具配套的防火墙配置组件

yum -y install system-config-network-tui #安装setup工具配套的网络配置组件

yum -y install authconfig-gtk #安装setup工具配套的验证配置组件

yum -y install system-config-keyboard #安装setup工具配套的键盘配置组件

3.7.2

使用setup配置中的Firewall configuration出现的错误

3.7.3

解决办法

 

    <li>
      <a href="#12">1.2 架构搭建顺序</a>
    </li>
    <li>
      <a href="#13">1.3 架构环境</a><ul>
        <li>
          <a href="#131">1.3.1 主机环境</a>
        </li>
        <li>
          <a href="#132_IP">1.3.2 各主机(IP/主机名)规划</a>
        </li>
        <li>
          <a href="#133">1.3.3 初始目录规划</a>
        </li>
      </ul>
    </li>
    
    <li>
      <a href="#14">1.4 虚拟主机配置</a><ul>
        <li>
          <a href="#141_vmware">1.4.1 虚拟主机网卡添加(vmware软件)</a>
        </li>
        <li>
          <a href="#142">1.4.2 编辑网络</a>
        </li>
        <li>
          <a href="#143">1.4.3 虚拟主机网卡地址配置</a>
        </li>
        <li>
          <a href="#144">1.4.4 网卡配置好后注意</a>
        </li>
      </ul>
    </li>
  </ul>
</li>

<li>
  <a href="#2">第2章 架构主机优化脚本</a><ul>
    <li>
      <a href="#21">2.1 架构优化脚本内容</a><ul>
        <li>
          <a href="#211_yum">2.1.1 更改yum源</a>
        </li>
        <li>
          <a href="#212_selinux">2.1.2 关闭selinux</a>
        </li>
        <li>
          <a href="#213">2.1.3 关闭关防火墙</a>
        </li>
        <li>
          <a href="#214">2.1.4 精简开机自启动服务</a>
        </li>
        <li>
          <a href="#215_oldboysudo">2.1.5 提权oldboy可以sudo(可选)</a>
        </li>
        <li>
          <a href="#216">2.1.6 中文字符集(不用做)</a>
        </li>
        <li>
          <a href="#217">2.1.7 时间同步</a>
        </li>
        <li>
          <a href="#218">2.1.8 命令行安全(千万别做)</a>
        </li>
        <li>
          <a href="#219">2.1.9 加大文件描述符</a>
        </li>
        <li>
          <a href="#2110">2.1.10 内核优化</a>
        </li>
        <li>
          <a href="#2111">2.1.11 安装一些软件</a>
        </li>
        <li>
          <a href="#2112">2.1.12 系统升级操作(暂不使用)</a>
        </li>
      </ul>
    </li>
    
    <li>
      <a href="#22_hosts">2.2 模板机主机hosts文件配置</a>
    </li>
  </ul>
</li>

<li>
  <a href="#3">第3章 虚拟机克隆</a><ul>
    <li>
      <a href="#31">3.1 克隆前准备</a>
    </li>
    <li>
      <a href="#32">3.2 进行克隆</a><ul>
        <li>
          <a href="#321">3.2.1 保留快照</a>
        </li>
      </ul>
    </li>
    
    <li>
      <a href="#33">3.3 进行克隆</a><ul>
        <li>
          <a href="#331">3.3.1 进行克隆</a>
        </li>
        <li>
          <a href="#332">3.3.2 创建连接克隆</a>
        </li>
      </ul>
    </li>
    
    <li>
      <a href="#34">3.4 克隆主机配置</a><ul>
        <li>
          <a href="#341">3.4.1 手动修改网卡地址</a>
        </li>
        <li>
          <a href="#342">3.4.2 修改系统主机名称</a>
        </li>
        <li>
          <a href="#343">3.4.3 重启网卡生效</a>
        </li>
        <li>
          <a href="#344_xsheel">3.4.4 重新建立xsheel标签进行连接</a>
        </li>
      </ul>
    </li>
    
    <li>
      <a href="#35">3.5 虚拟主机快照</a>
    </li>
    <li>
      <a href="#36">3.6 错误排查</a><ul>
        <li>
          <a href="#361">3.6.1 网卡配置问题</a>
        </li>
      </ul>
    </li>
    
    <li>
      <a href="#37_setup">3.7 如何让setup 命令中防火墙配置生效</a><ul>
        <li>
          <a href="#371_CentOSsetup">3.7.1 CentOS系统找不到setup命令工具的解决方法</a>
        </li>
        <li>
          <a href="#372_setupFirewall_configuration">3.7.2 使用setup配置中的Firewall configuration出现的错误</a>
        </li>
        <li>
          <a href="#373">3.7.3 解决办法</a>
        </li>
        <li>
          <a href="#nbsp">&nbsp;</a>
        </li>
      </ul>
    </li>
  </ul>
</li>