<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>恒星博客</title><link>http://hxser.com/</link><description>blog</description><item><title>3322动态域名</title><link>http://hxser.com/post/46.html</link><description>&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;一、&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;设置步骤&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;1. 注册3322动态域名账号&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;访问&lt;/span&gt; &lt;span style=&quot;font-family:微软雅黑&quot;&gt;[3322官网](&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;www&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;.3322.org/)，注册并登录账号，申请一个免费的动态域名（如：xxx.3322.org）。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;2. 登录路由器管理界面&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;打开浏览器，输入路由器的管理地址（如&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;192.168.1.1），输入用户名和密码登录。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;3. 开启DDNS功能&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;在路由器设置中找到&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;“DDNS”或“动态DNS”选项，选择“3322.net”作为服务商。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;4. 填写3322账号信息&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;输入已注册的&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;3322账号名和密码，并填写之前申请的动态域名（如：xxx.3322.org）。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;5. 保存并启用DDNS&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;保存设置后，确保&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;DDNS功能处于启用状态。部分路由器需要手动启动DDNS服务。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;margin: 12px 0 4px;padding: 0;line-height: 26px&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-weight: normal;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;二、&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-weight: normal;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;端口映射设置&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;margin: 0 0 0 24px;padding: 0;line-height: 26px&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 13px;background: #FFFFFF&quot;&gt;o&lt;span style=&quot;font-variant-numeric: normal;font-variant-east-asian: normal;font-variant-alternates: normal;font-size-adjust: none;font-kerning: auto;font-optical-sizing: auto;font-feature-settings: normal;font-variation-settings: normal;font-variant-position: normal;font-variant-emoji: normal;font-stretch: normal;font-size: 9px;line-height: normal;font-family: &amp;#39;Times New Roman&amp;#39;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;动态公网&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;IP&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;：需要同时结合&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;路由映射&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;+动态域名解析&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;，在外网访问时使用动态解析后的域名进行访问&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 4px 0 0 24px;padding: 0;line-height: 26px&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 13px;background: #FFFFFF&quot;&gt;o&lt;span style=&quot;font-variant-numeric: normal;font-variant-east-asian: normal;font-variant-alternates: normal;font-size-adjust: none;font-kerning: auto;font-optical-sizing: auto;font-feature-settings: normal;font-variation-settings: normal;font-variant-position: normal;font-variant-emoji: normal;font-stretch: normal;font-size: 9px;line-height: normal;font-family: &amp;#39;Times New Roman&amp;#39;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;固定公网&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;IP&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;：直接进行路由映射，开启允许外网访问内网对应的地址端口即可&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 4px 0 0 24px;padding: 0;line-height: 26px&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 13px;background: #FFFFFF&quot;&gt;o&lt;span style=&quot;font-variant-numeric: normal;font-variant-east-asian: normal;font-variant-alternates: normal;font-size-adjust: none;font-kerning: auto;font-optical-sizing: auto;font-feature-settings: normal;font-variation-settings: normal;font-variant-position: normal;font-variant-emoji: normal;font-stretch: normal;font-size: 9px;line-height: normal;font-family: &amp;#39;Times New Roman&amp;#39;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;内网环境&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #333333;letter-spacing: 0;font-size: 16px;background: #FFFFFF&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;：通过客户端映射方式发布外网，在内网安装使用&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;nat123客户端并登录添加映射记录，将内网固定地址映射到外网地址上&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;6. 测试访问&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;line-height:34px;background:rgb(255,255,255)&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑;color: #606060;letter-spacing: 0;font-size: 16px&quot;&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;使用手机或电脑通过浏览器访问申请的动态域名（如：&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑&quot;&gt;xxx.3322.org），确认是否能正常访问内网设备。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 14 Jun 2026 18:53:55 +0800</pubDate></item><item><title>简单留言板</title><link>http://hxser.com/post/45.html</link><description>&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;留言本的实现需要两个模块，一个是静态的html页面，提供表单供用户输入，另一个是php页面，用于接收用户的输入并将结果保存。还需要一个php页面，用来显示接收到的信息。&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;建立一个文件夹，里面存放以上三个文件，并在里面建立一个post资料夹，用来上传用户提交的数据。（文件夹可自己命名。）&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2022/07/20220704095156165689951618184.png&quot;/&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;Display.php文件的代码如下&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;&amp;lt;?php
$path=&amp;quot;post/&amp;quot;;
$dr=opendir($path);
while($filen=readdir($dr)){
if($filen&amp;nbsp;!=&amp;quot;.&amp;quot;&amp;nbsp;and&amp;nbsp;$filen&amp;nbsp;!=&amp;quot;..&amp;quot;){
$fs=fopen($path.$filen,&amp;quot;r&amp;quot;);
echo&amp;quot;&amp;lt;b&amp;gt;标题：&amp;lt;/b&amp;gt;&amp;quot;.fgets($fs).&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;;
echo&amp;quot;&amp;lt;b&amp;gt;作者：&amp;lt;/b&amp;gt;&amp;quot;.fgets($fs).&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;;
echo&amp;quot;&amp;lt;b&amp;gt;内容：&amp;lt;/b&amp;gt;&amp;quot;.fread($fs,filesize($path.$filen)).&amp;quot;&amp;lt;pre/&amp;gt;&amp;quot;;
echo&amp;quot;&amp;lt;hr/&amp;gt;&amp;quot;;
fclose($fs);
}
}
closedir($dr);
?&amp;gt;&lt;/pre&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;Post.php代码如下&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;&amp;lt;?php
$path=&amp;quot;post/&amp;quot;;//指定存储路劲
$filename=&amp;quot;S&amp;quot;.date(&amp;quot;YmdHis&amp;quot;).&amp;quot;.bat&amp;quot;;//有当前时间产生文件名
$fp=fopen($path.$filename,&amp;quot;w&amp;quot;);//一写入方式创建并打开文件
//$title=$POST[&amp;quot;title&amp;quot;];
//$author=$POST[&amp;quot;author&amp;quot;];
//$conment=$POST[&amp;quot;conment&amp;quot;];
fwrite($fp,$_POST[&amp;quot;title&amp;quot;].&amp;quot;\n&amp;quot;);
fwrite($fp,$_POST[&amp;quot;author&amp;quot;].&amp;quot;\n&amp;quot;);
fwrite($fp,$_POST[&amp;quot;conment&amp;quot;].&amp;quot;\n&amp;quot;);
fclose($fp);
echo&amp;nbsp;&amp;quot;你的留言发表成功&amp;quot;;&amp;nbsp;
?&amp;gt;&lt;/pre&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;post.html代码&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-markup&quot;&gt;&amp;lt;!DOCTYPE&amp;nbsp;html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;lt;title&amp;gt;留言板&amp;lt;/title&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;lt;meta&amp;nbsp;charset=&amp;quot;utf-8&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;lt;meta&amp;nbsp;name=&amp;quot;viewport&amp;quot;&amp;nbsp;content=&amp;quot;width=device-width,&amp;nbsp;initial-scale=1&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;lt;link&amp;nbsp;rel=&amp;quot;stylesheet&amp;quot;&amp;nbsp;href=&amp;quot;https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;lt;script&amp;nbsp;src=&amp;quot;https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;lt;script&amp;nbsp;src=&amp;quot;https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;lt;script&amp;nbsp;src=&amp;quot;https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;nbsp;class=&amp;quot;bg-light&amp;quot;&amp;gt;
&amp;lt;h1&amp;nbsp;align=&amp;quot;center&amp;quot;&amp;gt;我的留言板&amp;lt;/h1&amp;gt;
&amp;lt;form&amp;nbsp;action=&amp;quot;Post.php&amp;quot;&amp;nbsp;method=&amp;quot;post&amp;quot;&amp;nbsp;name=&amp;quot;form&amp;quot;&amp;gt;
&amp;lt;div&amp;nbsp;class=&amp;quot;container&amp;quot;&amp;gt;
&amp;lt;div&amp;nbsp;align=&amp;quot;center&amp;quot;&amp;gt;
&amp;lt;button&amp;nbsp;type=&amp;quot;submit&amp;quot;&amp;nbsp;class=&amp;quot;btn&amp;nbsp;btn-outline-success&amp;quot;&amp;gt;提交查询内容&amp;lt;/button&amp;gt;
&amp;lt;button&amp;nbsp;type=&amp;quot;reset&amp;quot;&amp;nbsp;class=&amp;quot;btn&amp;nbsp;btn-outline-primary&amp;quot;&amp;gt;重置&amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div&amp;gt;
&amp;lt;div&amp;nbsp;class=&amp;quot;form-group&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;label&amp;nbsp;for=&amp;quot;title&amp;quot;&amp;gt;标题:&amp;lt;/label&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input&amp;nbsp;type=&amp;quot;text&amp;quot;&amp;nbsp;name=&amp;quot;title&amp;quot;&amp;nbsp;class=&amp;quot;form-control&amp;quot;&amp;nbsp;id=&amp;quot;title&amp;quot;&amp;nbsp;placeholder=&amp;quot;Enter&amp;nbsp;title&amp;quot;&amp;nbsp;size=&amp;quot;50&amp;quot;&amp;nbsp;data-toggle=&amp;quot;tooltip&amp;quot;&amp;nbsp;data-placement=&amp;quot;left&amp;quot;&amp;nbsp;title=&amp;quot;亲，请提交你的标题哦&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;class=&amp;quot;form-group&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;label&amp;nbsp;for=&amp;quot;author&amp;quot;&amp;gt;作者:&amp;lt;/label&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input&amp;nbsp;type=&amp;quot;text&amp;quot;&amp;nbsp;name=&amp;quot;author&amp;quot;&amp;nbsp;class=&amp;quot;form-control&amp;quot;&amp;nbsp;id=&amp;quot;author&amp;quot;&amp;nbsp;placeholder=&amp;quot;Enter&amp;nbsp;author&amp;quot;&amp;nbsp;size=&amp;quot;20&amp;quot;&amp;nbsp;data-toggle=&amp;quot;tooltip&amp;quot;&amp;nbsp;title=&amp;quot;亲，请提交你的伟大昵称呢&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;class=&amp;quot;form-group&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;label&amp;nbsp;for=&amp;quot;conment&amp;quot;&amp;gt;内容:&amp;lt;/label&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;textarea&amp;nbsp;name=&amp;quot;conment&amp;quot;&amp;nbsp;class=&amp;quot;form-control&amp;quot;&amp;nbsp;rows=&amp;quot;5&amp;quot;&amp;nbsp;id=&amp;quot;conment&amp;quot;&amp;nbsp;placeholder=&amp;quot;Enter&amp;nbsp;conment&amp;quot;&amp;nbsp;data-toggle=&amp;quot;tooltip&amp;quot;&amp;nbsp;data-placement=&amp;quot;bottom&amp;quot;&amp;nbsp;title=&amp;quot;亲，请写下你的小日常哟&amp;quot;&amp;gt;&amp;lt;/textarea&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;lt;script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(document).ready(function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&amp;#39;[data-toggle=&amp;quot;tooltip&amp;quot;]&amp;#39;).tooltip();&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/script&amp;gt;
&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;————————————————&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;版权声明：本文为CSDN博主「阿学世界」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;原文链接：https://blog.csdn.net/weixin_46483221/article/details/105413589&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 27 May 2026 13:51:14 +0800</pubDate></item><item><title>自动选择访问地址</title><link>http://hxser.com/post/44.html</link><description>&lt;pre class=&quot;prism-highlight prism-language-markup&quot;&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;Script&amp;nbsp;Langage=Javascript&amp;gt;
i=1
var&amp;nbsp;autourl=new&amp;nbsp;Array()
autourl[1]=&amp;quot;#&amp;quot;&amp;nbsp;//修改为网通访问地址
autourl[2]=&amp;quot;#&amp;quot;&amp;nbsp;//修改为电信访问地址
function&amp;nbsp;auto(url)
{
if(i)
{
i=0;
top.location=url
}}
function&amp;nbsp;run()
{
for(var&amp;nbsp;i=1;
i&amp;lt;autourl.length;i++)
document.write(&amp;quot;&amp;lt;img&amp;nbsp;src=&amp;quot;+autourl[i]+&amp;quot;&amp;nbsp;width=1&amp;nbsp;height=1&amp;nbsp;onerror=auto(&amp;#39;&amp;quot;+autourl[i]+&amp;quot;&amp;#39;)&amp;gt;&amp;quot;)
}
run()
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br style=&quot;text-wrap-mode: wrap;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 27 May 2026 13:50:22 +0800</pubDate></item><item><title>如何撰写Robots文件来禁止搜索引擎收录</title><link>http://hxser.com/post/43.html</link><description>&lt;ol class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: none;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;什么是robots.txt文件?&lt;/span&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;搜索引擎通过一种程序robot（又称spider），自动访问互联网上的网页并获取网页信息。&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;您可以在您的网站中创建一个纯文本文件robots.txt，在这个文件中声明该网站中不想被robot访问的部分，这样，该网站的部分或全部内容就可以不被搜索引擎收录了，或者指定搜索引擎只收录指定的内容。&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;/p&gt;&lt;div align=&quot;right&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word;&quot;&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;robots.txt文件放在哪里?&lt;/span&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;robots.txt文件应该放在网站根目录下。举例来说，当robots访问一个网站（比如http://www.abc.com）时，首先会检查该网站中是否存在http://www.abc.com/robots.txt这个文件，如果机器人找到这个文件，它就会根据这个文件的内容，来确定它访问权限的范围。&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;table-box&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;&lt;table cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; width=&quot;812&quot; align=&quot;center&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box; outline: 0px; border: 0px; overflow-wrap: break-word;&quot;&gt;&lt;tr class=&quot;p2 firstRow&quot; style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); overflow-wrap: break-word;&quot;&gt;&lt;td width=&quot;161&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;网站 URL&lt;/span&gt;&lt;/td&gt;&lt;td width=&quot;271&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;相应的 robots.txt的 URL&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;p2&quot; style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); background-color: rgb(247, 247, 247); overflow-wrap: break-word;&quot;&gt;&lt;td width=&quot;161&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;http://www.w3.org/&lt;/td&gt;&lt;td width=&quot;271&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;http://www.w3.org/robots.txt&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;p2&quot; style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); overflow-wrap: break-word;&quot;&gt;&lt;td width=&quot;161&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;http://www.w3.org:80/&lt;/td&gt;&lt;td width=&quot;271&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;http://www.w3.org:80/robots.txt&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;p2&quot; style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); background-color: rgb(247, 247, 247); overflow-wrap: break-word;&quot;&gt;&lt;td width=&quot;161&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;http://www.w3.org:1234/&lt;/td&gt;&lt;td width=&quot;271&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;http://www.w3.org:1234/robots.txt&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;p2&quot; style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); overflow-wrap: break-word;&quot;&gt;&lt;td width=&quot;161&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;http://w3.org/&lt;/td&gt;&lt;td width=&quot;271&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;http://w3.org/robots.txt&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;/p&gt;&lt;div align=&quot;right&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word;&quot;&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;robots.txt文件的格式&lt;/span&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&amp;quot;robots.txt&amp;quot;文件包含一条或更多的记录，这些记录通过空行分开（以CR,CR/NL, or NL作为结束符），每一条记录的格式如下所示：&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&amp;quot;&lt;em style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;&gt;&amp;lt;field&amp;gt;:&amp;lt;optionalspace&amp;gt;&amp;lt;value&amp;gt;&amp;lt;optionalspace&amp;gt;&lt;/em&gt;&amp;quot;。&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;在该文件中可以使用#进行注解，具体使用方法和UNIX中的惯例一样。该文件中的记录通常以一行或多行User-agent开始，后面加上若干Disallow行,详细情况如下：&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;User-agent:&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;　　该项的值用于描述搜索引擎robot的名字，在&amp;quot;robots.txt&amp;quot;文件中，如果有多条User-agent记录说明有多个robot会受到该协议的限制，对该文件来说，至少要有一条User-agent记录。如果该项的值设为*，则该协议对任何机器人均有效，在&amp;quot;robots.txt&amp;quot;文件中，&amp;quot;User-agent:*&amp;quot;这样的记录只能有一条。&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;Disallow:&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;　　该项的值用于描述不希望被访问到的一个URL，这个URL可以是一条完整的路径，也可以是部分的，任何以Disallow开头的URL均不会被robot访问到。例如&amp;quot;Disallow:/help&amp;quot;对/help.html 和/help/index.html都不允许搜索引擎访问，而&amp;quot;Disallow:/help/&amp;quot;则允许robot访问/help.html，而不能访问/help/index.html。任何一条Disallow记录为空，说明该网站的所有部分都允许被访问，在&amp;quot;/robots.txt&amp;quot;文件中，至少要有一条Disallow记录。如果&amp;quot;/robots.txt&amp;quot;是一个空文件，则对于所有的搜索引擎robot，该网站都是开放的。&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;robots.txt文件用法举例&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;table-box&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;&lt;table class=&quot;p2&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; width=&quot;812&quot; align=&quot;center&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box; outline: 0px; border: 0px; overflow-wrap: break-word;&quot;&gt;&lt;tr class=&quot;firstRow&quot; style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); overflow-wrap: break-word;&quot;&gt;&lt;td width=&quot;80%&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;例1.&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;禁止所有搜索引擎访问网站的任何部分&lt;/span&gt;&lt;/td&gt;&lt;td width=&quot;20%&quot; style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;em style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;&gt;User-agent: *&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;Disallow: /&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); background-color: rgb(247, 247, 247); overflow-wrap: break-word;&quot;&gt;&lt;td style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;例2.&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;允许所有的robot访问&amp;nbsp;&lt;/span&gt;(或者也可以建一个空文件 &amp;quot;/robots.txt&amp;quot; file)&lt;/td&gt;&lt;td style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;em style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;&gt;User-agent: *&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;Disallow:&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); overflow-wrap: break-word;&quot;&gt;&lt;td style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;例3. 禁止某个搜索引擎的访问&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;em style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;&gt;User-agent: BadBot&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;Disallow: /&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); background-color: rgb(247, 247, 247); overflow-wrap: break-word;&quot;&gt;&lt;td style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;例4. 允许某个搜索引擎的访问&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;em style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;&gt;User-agent: baiduspider&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;Disallow:&lt;/em&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;em style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;&gt;User-agent: *&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;Disallow: /&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-style: solid; border-top-color: rgb(221, 221, 221); overflow-wrap: break-word;&quot;&gt;&lt;td style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word;&quot;&gt;例5.一个简单例子&lt;/span&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;　　在这个例子中，该网站有三个目录对搜索引擎的访问做了限制，即搜索引擎不会访问这三个目录。&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;　　需要注意的是对每一个目录必须分开声明，而不要写成 &amp;quot;Disallow: /cgi-bin/ /tmp/&amp;quot;。&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;　　User-agent:后的*具有特殊的含义，代表&amp;quot;any robot&amp;quot;，所以在该文件中不能有&amp;quot;Disallow: /tmp/*&amp;quot; or &amp;quot;Disallow:*.gif&amp;quot;这样的记录出现.&lt;/td&gt;&lt;td style=&quot;padding: 8px; box-sizing: border-box; outline: 0px; margin: 0px; overflow-wrap: break-word; color: rgb(79, 79, 79); line-height: 22px;&quot;&gt;&lt;em style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;&gt;User-agent: *&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;Disallow: /cgi-bin/&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;Disallow: /tmp/&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;Disallow: /~joe/&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div align=&quot;right&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word;&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;br data-filtered=&quot;filtered&quot; style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 27 May 2026 13:49:24 +0800</pubDate></item><item><title>php单文件查询ssl到期时间</title><link>http://hxser.com/post/42.html</link><description>&lt;p class=&quot;ue-upload&quot; style=&quot;line-height: 16px;&quot;&gt;建立domains.txt文件保存网址，每行一个网址&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;&amp;lt;?php
//&amp;nbsp;Load&amp;nbsp;domain&amp;nbsp;list&amp;nbsp;from&amp;nbsp;domains.txt
$domains&amp;nbsp;=&amp;nbsp;explode(&amp;quot;\n&amp;quot;,&amp;nbsp;file_get_contents(&amp;#39;domains.txt&amp;#39;));
$domains&amp;nbsp;=&amp;nbsp;array_filter($domains,&amp;nbsp;function($domain)&amp;nbsp;{&amp;nbsp;return&amp;nbsp;$domain&amp;nbsp;!==&amp;nbsp;&amp;#39;&amp;#39;;&amp;nbsp;});
//&amp;nbsp;Get&amp;nbsp;certificate&amp;nbsp;info
function&amp;nbsp;getCertificate($domain)&amp;nbsp;{
$url&amp;nbsp;=&amp;nbsp;&amp;quot;https://$domain&amp;quot;;
$orignal_parse&amp;nbsp;=&amp;nbsp;parse_url($url,&amp;nbsp;PHP_URL_HOST);
$get&amp;nbsp;=&amp;nbsp;stream_context_create(array(&amp;quot;ssl&amp;quot;&amp;nbsp;=&amp;gt;&amp;nbsp;array(&amp;quot;capture_peer_cert&amp;quot;&amp;nbsp;=&amp;gt;&amp;nbsp;TRUE)));
$read&amp;nbsp;=&amp;nbsp;stream_socket_client(&amp;quot;ssl://&amp;quot;.$orignal_parse.&amp;quot;:443&amp;quot;,&amp;nbsp;$errno,&amp;nbsp;$errstr,&amp;nbsp;30,&amp;nbsp;STREAM_CLIENT_CONNECT,&amp;nbsp;$get);
$cert&amp;nbsp;=&amp;nbsp;stream_context_get_params($read);
$certinfo&amp;nbsp;=&amp;nbsp;openssl_x509_parse($cert[&amp;#39;options&amp;#39;][&amp;#39;ssl&amp;#39;][&amp;#39;peer_certificate&amp;#39;]);
return&amp;nbsp;$certinfo;
}
//&amp;nbsp;Process&amp;nbsp;ceriticate&amp;nbsp;info&amp;nbsp;of&amp;nbsp;each&amp;nbsp;domain
$certs&amp;nbsp;=&amp;nbsp;[];
foreach&amp;nbsp;($domains&amp;nbsp;as&amp;nbsp;$domain)&amp;nbsp;{
$rawCert&amp;nbsp;=&amp;nbsp;getCertificate($domain);
$cert&amp;nbsp;=&amp;nbsp;[];
$cert[&amp;#39;domain&amp;#39;]&amp;nbsp;=&amp;nbsp;$domain;
$cert[&amp;#39;validTo&amp;#39;]&amp;nbsp;=&amp;nbsp;gmdate(&amp;quot;Y-m-d\&amp;nbsp;&amp;quot;,&amp;nbsp;$rawCert[&amp;#39;validTo_time_t&amp;#39;]);
$cert[&amp;#39;validToUnix&amp;#39;]&amp;nbsp;=&amp;nbsp;$rawCert[&amp;#39;validTo_time_t&amp;#39;];
$cert[&amp;#39;issuer&amp;#39;]&amp;nbsp;=&amp;nbsp;$rawCert[&amp;#39;issuer&amp;#39;][&amp;#39;CN&amp;#39;];
$cert[&amp;#39;days&amp;#39;]&amp;nbsp;=&amp;nbsp;(intval($cert[&amp;#39;validToUnix&amp;#39;])&amp;nbsp;-&amp;nbsp;time())/60/60/24;
$certs[]&amp;nbsp;=&amp;nbsp;$cert;
}
//&amp;nbsp;Sort&amp;nbsp;by&amp;nbsp;expiring&amp;nbsp;time
$validTo&amp;nbsp;=&amp;nbsp;array();
foreach&amp;nbsp;($certs&amp;nbsp;as&amp;nbsp;$key&amp;nbsp;=&amp;gt;&amp;nbsp;$row)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$validTo[$key]&amp;nbsp;=&amp;nbsp;$row[&amp;#39;validToUnix&amp;#39;];
}
array_multisort($validTo,&amp;nbsp;SORT_ASC,&amp;nbsp;$certs);
//&amp;nbsp;标题
echo&amp;nbsp;&amp;quot;&amp;lt;title&amp;gt;hxser&amp;nbsp;证书检查&amp;lt;/title&amp;gt;&amp;quot;;
//&amp;nbsp;Generate&amp;nbsp;output
$bar&amp;nbsp;=&amp;nbsp;str_repeat(&amp;#39;=&amp;#39;,&amp;nbsp;80);
$format&amp;nbsp;=&amp;nbsp;&amp;quot;$bar\n&amp;nbsp;%s&amp;nbsp;(%d&amp;nbsp;天)\n&amp;nbsp;到期时间:&amp;nbsp;%s&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;提供商:&amp;nbsp;%s\n$bar\n\n&amp;quot;;
$output&amp;nbsp;=&amp;nbsp;&amp;#39;&amp;#39;;
foreach&amp;nbsp;($certs&amp;nbsp;as&amp;nbsp;$cert)&amp;nbsp;{
$output&amp;nbsp;.=&amp;nbsp;sprintf($format,&amp;nbsp;$cert[&amp;#39;domain&amp;#39;],&amp;nbsp;$cert[&amp;#39;days&amp;#39;],&amp;nbsp;$cert[&amp;#39;validTo&amp;#39;],&amp;nbsp;$cert[&amp;#39;issuer&amp;#39;]);
}
printf(&amp;quot;&amp;lt;pre&amp;gt;\n%s\n&amp;lt;/pre&amp;gt;&amp;quot;,&amp;nbsp;$output);
?&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br style=&quot;text-wrap-mode: wrap;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 27 May 2026 13:48:15 +0800</pubDate></item><item><title>插入图片超链接代码</title><link>http://hxser.com/post/41.html</link><description>&lt;p&gt;&lt;strong style=&quot;text-wrap-mode: wrap; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: 微软雅黑, arial, sans-serif; font-size: 16px; text-align: justify; background-color: rgb(255, 255, 255);&quot;&gt;&amp;lt;a href=&amp;quot;你要链接到的地址&amp;quot;target=&amp;quot;_blank&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;图片地址URL&amp;quot;width=&amp;quot;宽度&amp;quot; height=&amp;quot;高度&amp;quot; alt=&amp;quot;图片说明&amp;quot;border=&amp;quot;0&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/strong&gt;&lt;/p&gt;</description><pubDate>Wed, 27 May 2026 13:47:45 +0800</pubDate></item><item><title>php输入正确密码显示网页</title><link>http://hxser.com/post/40.html</link><description>&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;&amp;lt;?php&amp;nbsp;&amp;nbsp;
header(&amp;#39;Content-type:text/html;charset=utf-8&amp;#39;);
$password&amp;nbsp;=&amp;nbsp;&amp;quot;1234&amp;quot;;&amp;nbsp;//&amp;nbsp;这里是正确密码&amp;nbsp;&amp;nbsp;
$p&amp;nbsp;=&amp;nbsp;&amp;quot;&amp;quot;;&amp;nbsp;&amp;nbsp;
if(isset($_COOKIE[&amp;quot;isview&amp;quot;])&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;$_COOKIE[&amp;quot;isview&amp;quot;]&amp;nbsp;==&amp;nbsp;$password){&amp;nbsp;&amp;nbsp;
$isview&amp;nbsp;=&amp;nbsp;true;&amp;nbsp;&amp;nbsp;
}else{&amp;nbsp;&amp;nbsp;
if(isset($_POST[&amp;quot;pwd&amp;quot;])){&amp;nbsp;&amp;nbsp;
if($_POST[&amp;quot;pwd&amp;quot;]&amp;nbsp;==&amp;nbsp;$password){&amp;nbsp;&amp;nbsp;
setcookie(&amp;quot;isview&amp;quot;,$_POST[&amp;quot;pwd&amp;quot;],time()+3600*0.2);&amp;nbsp;&amp;nbsp;
$isview&amp;nbsp;=&amp;nbsp;true;&amp;nbsp;&amp;nbsp;
}else{&amp;nbsp;&amp;nbsp;
$p&amp;nbsp;=&amp;nbsp;(empty($_POST[&amp;quot;pwd&amp;quot;]))&amp;nbsp;?&amp;nbsp;&amp;quot;需要密码才能查看，请输入密码。&amp;quot;&amp;nbsp;:&amp;nbsp;&amp;quot;密码不正确，请重新输入。&amp;quot;;&amp;nbsp;&amp;nbsp;
}&amp;nbsp;&amp;nbsp;
}else{&amp;nbsp;&amp;nbsp;
$isview&amp;nbsp;=&amp;nbsp;false;&amp;nbsp;&amp;nbsp;
$p&amp;nbsp;=&amp;nbsp;&amp;quot;请输入密码查看，获取密码可联系我。&amp;quot;;&amp;nbsp;&amp;nbsp;
}&amp;nbsp;&amp;nbsp;
}&amp;nbsp;&amp;nbsp;
&amp;nbsp;
if($isview){&amp;nbsp;?&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;nbsp;
登录后显示的内容
&amp;lt;?php&amp;nbsp;}else{&amp;nbsp;?&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;!DOCTYPE&amp;nbsp;html&amp;nbsp;PUBLIC&amp;nbsp;&amp;quot;-//W3C//DTD&amp;nbsp;XHTML&amp;nbsp;1.0&amp;nbsp;Transitional//EN&amp;quot;&amp;nbsp;&amp;quot;&amp;nbsp;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&amp;nbsp;
&amp;lt;html&amp;nbsp;xmlns=&amp;quot;&amp;nbsp;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&amp;nbsp;
&amp;lt;head&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;meta&amp;nbsp;http-equiv=&amp;quot;Content-Type&amp;quot;&amp;nbsp;content=&amp;quot;text/html;&amp;nbsp;charset=utf-8&amp;quot;&amp;nbsp;/&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;meta&amp;nbsp;http-equiv=&amp;quot;pragma&amp;quot;&amp;nbsp;content=&amp;quot;no-cache&amp;quot;&amp;nbsp;/&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;meta&amp;nbsp;http-equiv=&amp;quot;cache-control&amp;quot;&amp;nbsp;content=&amp;quot;no-cache&amp;quot;&amp;nbsp;/&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;meta&amp;nbsp;http-equiv=&amp;quot;expires&amp;quot;&amp;nbsp;content=&amp;quot;0&amp;quot;&amp;nbsp;/&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;title&amp;gt;测试&amp;lt;/title&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;!--[if&amp;nbsp;lt&amp;nbsp;IE&amp;nbsp;6]&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;style&amp;nbsp;type=&amp;quot;text/css&amp;quot;&amp;gt;&amp;nbsp;&amp;nbsp;
.z3_ie_fix{&amp;nbsp;&amp;nbsp;
float:left;&amp;nbsp;&amp;nbsp;
}&amp;nbsp;&amp;nbsp;
&amp;lt;/style&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;![endif]--&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;style&amp;nbsp;type=&amp;quot;text/css&amp;quot;&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;!--&amp;nbsp;&amp;nbsp;
body{&amp;nbsp;&amp;nbsp;
background:none;&amp;nbsp;&amp;nbsp;
}&amp;nbsp;&amp;nbsp;
.passport{&amp;nbsp;&amp;nbsp;
border:1px&amp;nbsp;solid&amp;nbsp;red;&amp;nbsp;&amp;nbsp;
background-color:#FFFFCC;&amp;nbsp;&amp;nbsp;
width:400px;&amp;nbsp;&amp;nbsp;
height:100px;&amp;nbsp;&amp;nbsp;
position:absolute;&amp;nbsp;&amp;nbsp;
left:49.9%;&amp;nbsp;&amp;nbsp;
top:49.9%;&amp;nbsp;&amp;nbsp;
margin-left:-200px;&amp;nbsp;&amp;nbsp;
margin-top:-55px;&amp;nbsp;&amp;nbsp;
font-size:14px;&amp;nbsp;&amp;nbsp;
text-align:center;&amp;nbsp;&amp;nbsp;
line-height:30px;&amp;nbsp;&amp;nbsp;
color:#746A6A;&amp;nbsp;&amp;nbsp;
}&amp;nbsp;&amp;nbsp;
--&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;/style&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;div&amp;nbsp;class=&amp;quot;passport&amp;quot;&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;div&amp;nbsp;style=&amp;quot;padding-top:20px;&amp;quot;&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;form&amp;nbsp;action=&amp;quot;&amp;quot;&amp;nbsp;method=&amp;quot;post&amp;quot;&amp;nbsp;style=&amp;quot;margin:0px;&amp;quot;&amp;gt;输入查看密码&amp;nbsp;&amp;nbsp;
&amp;lt;input&amp;nbsp;type=&amp;quot;password&amp;quot;&amp;nbsp;name=&amp;quot;pwd&amp;quot;&amp;nbsp;/&amp;gt;&amp;nbsp;&amp;lt;input&amp;nbsp;type=&amp;quot;submit&amp;quot;&amp;nbsp;value=&amp;quot;查看&amp;quot;&amp;nbsp;/&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;/form&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;?php&amp;nbsp;echo&amp;nbsp;$p;&amp;nbsp;?&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;/body&amp;gt;&amp;nbsp;&amp;nbsp;
&amp;lt;/html&amp;gt;&amp;nbsp;
&amp;lt;?php&amp;nbsp;&amp;nbsp;
}&amp;nbsp;?&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br style=&quot;text-wrap-mode: wrap;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 27 May 2026 13:46:39 +0800</pubDate></item><item><title>ESXI如何使用普通的UPS做到断电自动关机</title><link>http://hxser.com/post/39.html</link><description>&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;ESXI如何使用普通的UPS做到断电自动关机，保护硬盘不受到损伤&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;一、登陆ESXI的SSH创建文件夹及脚本&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;1.进入磁盘目录&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;cd vmfs/volumes&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;ls&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;我的硬盘名称为datastore1&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;2.进入硬盘目录&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;cd datastore1&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;ls&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;此时显示的是我们目前所有的虚拟机目录&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;3.创建一个ups目录，并进入ups目录&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;mkdir ups&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;cd ups&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;4.创建apc.sh脚本&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;vi apc.sh&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;里面填入脚本代码&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;按i编辑&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#!/bin/sh
while
ping&amp;nbsp;-c&amp;nbsp;1&amp;nbsp;12.12.12.252&amp;nbsp;&amp;gt;&amp;nbsp;/dev/null
[&amp;nbsp;$?&amp;nbsp;-eq&amp;nbsp;0&amp;nbsp;];
do
#echo&amp;nbsp;&amp;#39;&amp;nbsp;AC&amp;nbsp;Power&amp;nbsp;OK&amp;nbsp;!&amp;nbsp;&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log;date&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log
sleep&amp;nbsp;180
done
echo&amp;nbsp;&amp;#39;&amp;nbsp;AC&amp;nbsp;Power&amp;nbsp;maybe&amp;nbsp;off,&amp;nbsp;checking&amp;nbsp;again&amp;nbsp;after&amp;nbsp;3&amp;nbsp;minutes&amp;nbsp;!&amp;nbsp;&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log;date&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log
sleep&amp;nbsp;180
ping&amp;nbsp;-c&amp;nbsp;1&amp;nbsp;12.12.12.252&amp;nbsp;&amp;gt;&amp;nbsp;/dev/null
if&amp;nbsp;[&amp;nbsp;$?&amp;nbsp;-eq&amp;nbsp;0&amp;nbsp;]
then
echo&amp;nbsp;&amp;#39;&amp;nbsp;Checkagain,&amp;nbsp;AC&amp;nbsp;Power&amp;nbsp;OK&amp;nbsp;!&amp;nbsp;&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log;date&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log
else
echo&amp;nbsp;&amp;#39;&amp;nbsp;AC&amp;nbsp;Power&amp;nbsp;is&amp;nbsp;already&amp;nbsp;off,&amp;nbsp;shut&amp;nbsp;down&amp;nbsp;NAS&amp;nbsp;Now!&amp;nbsp;&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log;date&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log
/bin/shutdown.sh
halt
fi&lt;/pre&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;代码中的12.12.12.252 改为你要Ping的网关地址，datastore1 部分的改为你的硬盘名称，默认的都是这个&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;按esc键退出编辑模式&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;:wq保存&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;然后赋予权限&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;chmod 777 apc.sh&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;赋予权限后apc.sh会变为绿色&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;二、创建空白的日志文件ups.log&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;同样的在第一步所创建的ups目录里面创建&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;vi ups.log&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;:wq&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;同样赋予权限&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;chmod 777 ups.log&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;三、可以临时测试下脚本是否生效&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;进入到ups目录&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;cd vmfs/volumes/datastore1/ups&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;./apc.sh&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;不显示任何内容就代表在运行了&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;然后这个ssh界面保持不动 从新打开一个，检测下是否运行成功，输入命令&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;ps -c | grep apc.sh | grep -v grep |wc -l&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;反馈的是1 代表脚本启动成功，反馈的是0 代表没有启动成功&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;四、添加守护进程代码&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;同样进入到ups目录&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;cd vmfs/volumes/datastore1/ups&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;vi ups_shouhu.sh&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;按i编辑&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;里面填入如下代码&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;获取ups进程数量
NUM=`ps&amp;nbsp;-c&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;apc.sh&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;-v&amp;nbsp;grep&amp;nbsp;|wc&amp;nbsp;-l`
echo&amp;nbsp;${NUM}
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;少于1，重启进程
if&amp;nbsp;[&amp;nbsp;&amp;quot;${NUM}&amp;quot;&amp;nbsp;-lt&amp;nbsp;&amp;quot;1&amp;quot;&amp;nbsp;];then
/vmfs/volumes/datastore1/ups/apc.sh&amp;nbsp;&amp;amp;
echo&amp;nbsp;&amp;#39;&amp;nbsp;UPS&amp;nbsp;shouhu&amp;nbsp;start&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log;date&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups.log
fi
exit&amp;nbsp;0&lt;/pre&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;按esc退出编辑模式&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;:wq&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;同样赋予权限&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;chmod 777 ups_shouhu.sh&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;五、然后添加一个计划任务,每三分钟执行守护脚本&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;vi /etc/rc.local.d/local.sh&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;把里面的内容全部清空，填入如下代码&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;/bin/kill&amp;nbsp;$(cat&amp;nbsp;/var/run/crond.pid)
/bin/echo&amp;nbsp;&amp;#39;*/3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;/vmfs/volumes/datastore1/ups/ups_shouhu.sh&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/spool/cron/crontabs/root
/bin/crond
exit&amp;nbsp;0&lt;/pre&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;六、然后从起ESXI主机，再执行命令验证下脚本是否运行&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;ps -c | grep apc.sh | grep -v grep |wc -l&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;反馈的是1 代表脚本启动成功，反馈的是0 代表没有启动成功&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 27 May 2026 13:45:56 +0800</pubDate></item><item><title>ESXi 8.0安装</title><link>http://hxser.com/post/38.html</link><description>&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;将ESXi 8.0 镜像导入后，进入ESXi 标准引导菜单（Standard Boot Menu）。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074626170709038618874.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;等待镜像加载完成&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074626170709038633144.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;服务初始化中。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074626170709038690897.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;等待2-3 min 后进入安装导向。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;（2）ESXi安装导向&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;该界面描述了一些关于ESXi系统兼容性的信息，点击【Enter】开始安装。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074626170709038617881.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;（3）最终用户许可协议&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;按【F11】接受协议，进入下一步。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074626170709038689403.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;同意许可协议后，系统会自动扫描可用的磁盘。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074626170709038687079.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;（4）选择系统盘&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;该页面用于指定使用哪个存储（硬盘）安装ESXi系统。这里只有一个硬盘作为系统盘。默认选项按【Enter】继续下一步。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074626170709038617189.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;（5）选择键盘类型&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;默认为美国标准，默认选择即可，按【Enter】继续下一步。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074626170709038612071.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;（6）设置root密码&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074626170709038650987.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;ESXi 告警&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;因为在刚开始设置ESXi 资源时，没有开启CPU虚拟化功能，所以在安装时会有告警提示。可以暂时忽略，待安装完成后，再关机勾选开启CPU虚拟化功能。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;如果一开始勾选了CPU虚拟化功能，不会出现该警告。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074627170709038772269.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;（7）确认系统盘&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;再次确认在指定磁盘中安装ESXi，确认无误后按【F11】进行安装。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074627170709038741805.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;ESXi 8.0 安装中，等待2-3分钟。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074627170709038719434.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;（8）安装完成&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;按【Enter】重启 ESXi 虚拟机&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074627170709038798696.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;ESXi 虚拟机重启需要等待 2-3 min左右。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;ESXi 系统初始化配置中。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074627170709038786799.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;（9）系统初始化完成&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;ESXi 8.0 系统重启完成后，由于我的环境中存在DHCP服务，因此ESXi管理地址能自动获取IP，自动生成IPv6静态链路地址。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;如果环境中没有DHCP服务，那么默认管理地址为0.0.0.0，自动生成IPv6静态链路地址。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074627170709038777333.png&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;此时ESXi 8.0 系统安装完成。&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&amp;nbsp;配置ESXI8.0&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;按F2，弹出登录页面，输入刚才设定的密码。回车，进入ESXI管理后台。&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap; text-align: center;&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/202402051707090187881426.jpeg&quot; alt=&quot;274488ff005cf491018e488ef8ad0500_c6ef03f1ab2d4709bd6ebafcad8ba542.jpeg&quot; width=&quot;781&quot; height=&quot;704&quot; style=&quot;width: 781px; height: 704px;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;第一项是修改密码，第三项是设置网络。键盘上下键选择第三项，修改网络配置，回车进入：&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;选择第一项，设置网口&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;选择设置IPV4和DNS&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;键盘上下键，移动黑色条框到第三项，可以看到第三项前面的括号里有个圆圈(○)，按空格确定选项。设置静态ip&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap; text-align: center;&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/202402051707090273102762.jpeg&quot; alt=&quot;dae75027d17ab0e7ea0f2854618c2345_3f3304bd1c4546aca6d03880eaac5dbd.jpeg&quot; width=&quot;800&quot; height=&quot;778&quot; style=&quot;width: 800px; height: 778px;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;保存后回到首页，变成静态ip&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;（10）验证&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;通过跳板机访问 ESXi Host Client。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; text-align: center; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://blog.hxser.com/zb_users/upload/2024/02/20240205074627170709038761036.jpg&quot; alt=&quot;&quot; style=&quot;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 816px; width: 800px; height: auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;ESXi 8.0 安装成功。&lt;/p&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;*安装虚拟系统，引导需要5秒内按enter&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 27 May 2026 13:45:10 +0800</pubDate></item><item><title>Dell服务器raid阵列配置</title><link>http://hxser.com/post/37.html</link><description>&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;首先重启Dell服务器，会看到Dell的服务器的启动界面，稍等片刻&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://blog.hxser.com/zb_users/upload/2022/06/202206201655718509837993.png&quot; title=&quot;t01f149fdc0b4c3299f.png&quot; alt=&quot;t01f149fdc0b4c3299f.png&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; margin-left: 33px; text-wrap-mode: wrap; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; margin-left: 33px; text-wrap-mode: wrap; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;当出现下图这个界面的时候 按一下键盘上的ctrl+R 键&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://blog.hxser.com/zb_users/upload/2022/06/202206201655718539231800.png&quot; title=&quot;t01f149fdc0b4c3299f.png&quot; alt=&quot;t01f149fdc0b4c3299f.png&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;pic&quot; style=&quot;text-wrap-mode: wrap; margin: 10px 0px 0px 33px; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/div&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;按完后进入raid阵列卡的配置界面，由于初次没有配置阵列卡 所以阵列卡显示的是空的界面&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://blog.hxser.com/zb_users/upload/2022/06/202206201655718563739625.png&quot; title=&quot;t01f149fdc0b4c3299f.png&quot; alt=&quot;t01f149fdc0b4c3299f.png&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;pic&quot; style=&quot;text-wrap-mode: wrap; margin: 10px 0px 0px 33px; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/div&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;将光标移到最上面，controller 0上面 这时候按一下键盘上面的F2键 弹出创建阵列盘选项，选择creat new VD ，回车&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://blog.hxser.com/zb_users/upload/2022/06/202206201655718592739137.png&quot; title=&quot;t01f149fdc0b4c3299f.png&quot; alt=&quot;t01f149fdc0b4c3299f.png&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;pic&quot; style=&quot;text-wrap-mode: wrap; margin: 10px 0px 0px 33px; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/div&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;进入了是VD的界面在这里看到我们现在服务器上面有多少个磁盘，以及可以做什么阵列，按TAB键可以选择的raid 级别 然后按tab切换到磁盘界面 选择你需要的磁盘（那几块需要组建raid）按空格键选择&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://blog.hxser.com/zb_users/upload/2022/06/202206201655718614797987.png&quot; title=&quot;t01f149fdc0b4c3299f.png&quot; alt=&quot;t01f149fdc0b4c3299f.png&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;pic&quot; style=&quot;text-wrap-mode: wrap; margin: 10px 0px 0px 33px; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/div&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;阵列模式和磁盘都已经选择好了之后，接下来按tab键切换到ok选项 回车 确定磁盘阵列，接着会自动返回主界面&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://blog.hxser.com/zb_users/upload/2022/06/202206201655718640531609.png&quot; title=&quot;t01f149fdc0b4c3299f.png&quot; alt=&quot;t01f149fdc0b4c3299f.png&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; margin-left: 33px; text-wrap-mode: wrap; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; margin-left: 33px; text-wrap-mode: wrap; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;这时候可以看到有virtual disk 0选项 ，已经成功创建阵列组合，接着光标移动到virtual disk 0选项上 按一下F2 弹出菜单&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://blog.hxser.com/zb_users/upload/2022/06/202206201655718672741140.png&quot; title=&quot;t01f149fdc0b4c3299f.png&quot; alt=&quot;t01f149fdc0b4c3299f.png&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;pic&quot; style=&quot;text-wrap-mode: wrap; margin: 10px 0px 0px 33px; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/div&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;选择第一个选项初始化 然后选择fast模式&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://blog.hxser.com/zb_users/upload/2022/06/202206201655718700255784.png&quot; title=&quot;t01f149fdc0b4c3299f.png&quot; alt=&quot;t01f149fdc0b4c3299f.png&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; margin-left: 33px; text-wrap-mode: wrap; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; margin-left: 33px; text-wrap-mode: wrap; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;这时候会弹出对话框选择ok&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 32px; text-wrap-mode: wrap; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://blog.hxser.com/zb_users/upload/2022/06/202206201655718723531021.png&quot; title=&quot;t01f149fdc0b4c3299f.png&quot; alt=&quot;t01f149fdc0b4c3299f.png&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;pic&quot; style=&quot;text-wrap-mode: wrap; margin: 10px 0px 0px 33px; padding: 0px; line-height: 0; color: rgb(132, 142, 152); font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/div&gt;&lt;div class=&quot;text&quot; style=&quot;text-wrap-mode: wrap; margin: 0px 0px 0px 32px; padding: 0px; color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; text-align: justify; overflow-wrap: break-word; font-family: 微软雅黑, arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;初始化成功后重启服务器 raid成功配置完成&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 27 May 2026 13:44:23 +0800</pubDate></item></channel></rss>