<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
>
<channel>
<title><![CDATA[San Duo's Blog]]></title> 
<atom:link href="https://pan.fwq9.com/rss.php" rel="self" type="application/rss+xml" />
<description><![CDATA[San Duo's Blog的站点]]></description>
<link>https://pan.fwq9.com/</link>
<language>zh-cn</language>
<generator>emlog</generator>

<item>
    <title>​魔方财务如何迁移</title>
    <link>https://pan.fwq9.com/post/30</link>
    <description><![CDATA[<p>魔方财务使用PHP+mysql开发。魔方迁移到魔方时，只需将<strong>文件和数据库</strong>进行完整迁移即可</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>1. 拷贝整个系统文件到新的服务器</p>
<p>&nbsp;</p>
<p>将您系统中的所有文件复制至新服务器中,注意新服务器也需要满足配置要求，点击&gt;&gt;<a href="https://bbs.idcsmart.com/thread-40-1-1.html" target="_blank" rel="noopener">查看配置文档</a></p>
<p>&nbsp;</p>
<p>2. 备份数据库</p>
<p>&nbsp;</p>
<p>将老服务器的数据库备份至电脑本地，本教程已宝塔备份数据库为例。</p>
<p>&nbsp;</p>
<p><img id="aimg_209" class="zoom" src="https://www.3duo.com/content/uploadfile/202604/1604647221565914.png" width="860"></p>
<p>&nbsp;</p>
<p>3. 还原数据库</p>
<p>&nbsp;</p>
<p>数据备份后，在新的服务器中创建数据库，并将老服务器的数据库导入至新服务器中</p>
<p>&nbsp;</p>
<p><img id="aimg_210" class="zoom" src="https://www.3duo.com/content/uploadfile/202604/1604647222363889.png" width="860"></p>
<p>&nbsp;</p>
<p>4. 编辑数据库配置文件（app/config/database.php）</p>
<p>&nbsp;</p>
<p>导入成功后，在新服务器上找到文件app/config/database.php，点击编辑，将数据库名/用户名/密码改为您新服务器的数据库信息</p>
<p><img id="aimg_211" class="zoom" src="https://www.3duo.com/content/uploadfile/202604/1604647222603222.png" width="860"></p>
<p>&nbsp;</p>
<p>5. 迁移完成</p>
<p>&nbsp;</p>
<p>迁移完成后，您可直接访问新系统，检查数据是否正常，并导航至【系统-常规设置】中，将【系统链接】改为您现在新系统访问的链接地址。</p>
<p>&nbsp;</p>
<p><img id="aimg_212" class="zoom" src="https://www.3duo.com/content/uploadfile/202604/1604647223702232.png" width="860"></p>]]></description>
    <pubDate>Sat, 04 Apr 2026 22:41:27 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/30</guid>
</item>
<item>
    <title>如何安装魔方财务</title>
    <link>https://pan.fwq9.com/post/29</link>
    <description><![CDATA[<p><strong>服务器配置一览表：（魔方财务1.0.0及更高版本的最低和建议的系统要求）</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div>
<table>
<tbody>
<tr class="firstRow">
<td valign="top" width="260">需求名称</td>
<td valign="top" width="260">推荐配置</td>
<td valign="top" width="260">最低要求</td>
</tr>
<tr>
<td colspan="1" rowspan="1" valign="top">OS</td>
<td colspan="1" rowspan="1" valign="top">CentOS/Debian/Ubuntu</td>
<td colspan="1" rowspan="1" valign="top">Linux（不要使用windows）</td>
</tr>
<tr>
<td colspan="1" rowspan="1" valign="top">硬件配置</td>
<td colspan="1" rowspan="1" valign="top">2H4G&nbsp; 系统盘40G的SSD (可酌情调高)</td>
<td colspan="1" rowspan="1" valign="top">2H2G&nbsp; &nbsp; 系统盘40G</td>
</tr>
<tr>
<td colspan="1" rowspan="1" valign="top">PHP版本</td>
<td colspan="1" rowspan="1" valign="top">7.2或者7.3版本</td>
<td colspan="1" rowspan="1" valign="top">7.2</td>
</tr>
<tr>
<td colspan="1" rowspan="1" valign="top">PHP内存限制</td>
<td colspan="1" rowspan="1" valign="top">128M</td>
<td colspan="1" rowspan="1" valign="top">64MB</td>
</tr>
<tr>
<td colspan="1" rowspan="1" valign="top">PHP数据库扩展</td>
<td colspan="2" rowspan="1" valign="top">PDO</td>
</tr>
<tr>
<td colspan="1" rowspan="1" valign="top">PHP扩展</td>
<td colspan="1" rowspan="1" valign="top">imap<br>
<p>Iconv<br>MBString<br>GMP<br>OpenSSL<br>BC Math</p>
<p>ionCube</p>
<p>fileinfo</p>
</td>
<td colspan="1" rowspan="1" valign="top">
<p>Curl with SSL</p>
<p>GD2 库图像<br>支持JSON&nbsp;<br>XML<br>GD2 库图像</p>
<p>ionCube</p>
<p>fileinfo</p>
</td>
</tr>
<tr>
<td colspan="1" rowspan="1" valign="top">mysql版本</td>
<td colspan="2" rowspan="1" valign="top">5.6.0</td>
</tr>
<tr>
<td colspan="3" rowspan="1" valign="top">注: 系统使用PHP+MYSQL开发，数据库须使用MYSQL 5.6.0，禁止使用Opcache.</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p><strong>第一、安装宝塔</strong><br>&nbsp;&nbsp;&nbsp;&nbsp;参考官方脚本：<a href="https://www.bt.cn/bbs/thread-19376-1-1.html" target="_blank" rel="noopener">https://www.bt.cn/bbs/thread-19376-1-1.html</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>第二、安装LNMP或者LAMP运行环境（Nginx/Apache、MySQL、PHP）</strong><br><br>登录宝塔，选择LAMP或者LNMP都可以看个人习惯<br>注意：MySQL必须要5.6版本，PHP必须为7.2或7.3版本</p>
<p><img src="https://www.3duo.com/content/uploadfile/202604/1629372594758147.png"></p>
<p>&nbsp;</p>
<p><strong>第三、为PHP安装相关扩展</strong></p>
<p><strong><br></strong>软件商店-已安装&nbsp;&nbsp;点击php，安装ionCube、fileinfo</p>
<p><img title="" src="https://www.3duo.com/content/uploadfile/202604/1629372627652593.png" alt="" width="1000" height="600"></p>
<p>&nbsp;</p>
<p><strong>第四、获取魔方财务安装包，然后上传安装包</strong></p>
<p><strong><br></strong>①下载安装包，登录用户中心&gt;&gt;资源中心&gt;&gt;文件下载&gt;&gt;魔方财务 （<a href="https://market.idcsmart.com/" target="_blank" rel="noopener">https://my.idcsmart.com/plugin/19/source.htm</a>）<br>②上传，上传文件包到服务器/www/wwwroot/目录<br>③解压，解压后的文件也必须在根目录（即/www/wwwroot/）</p>
<p><img title="" src="https://www.3duo.com/content/uploadfile/202604/1629372670148710.png" alt="" width="1000" height="600"></p>
<p><img title="" src="https://www.3duo.com/content/uploadfile/202604/1629372688215318.png" alt="" width="1000" height="600">&nbsp;</p>
<p>&nbsp;</p>
<p>第五、站点添加</p>
<p><strong><br></strong>注意：数据库编码为utf-8，PHP版本为72</p>
<p><img src="https://www.3duo.com/content/uploadfile/202604/1629372728242497.png"></p>
<p>&nbsp;</p>
<p><strong>第六、伪静态与运行目录设置</strong></p>
<p>&nbsp;</p>
<p>①设置伪静态（注意：<strong>系统使用thinkphp框架开发，需设置伪静态规则</strong>）</p>
<p>Apache伪静态规则：</p>
<pre class="brush:bash;toolbar:false">&lt;IfModule&nbsp;mod_rewrite.c&gt;
&nbsp;&nbsp;Options&nbsp;+FollowSymlinks&nbsp;-Multiviews
&nbsp;&nbsp;RewriteEngine&nbsp;On
&nbsp;&nbsp;RewriteCond&nbsp;%{REQUEST_FILENAME}&nbsp;!-d
&nbsp;&nbsp;RewriteCond&nbsp;%{REQUEST_FILENAME}&nbsp;!-f
&nbsp;&nbsp;RewriteRule&nbsp;^(.*)$&nbsp;index.php?s=$1&nbsp;[QSA,PT,L]
&nbsp;&nbsp;SetEnvIf&nbsp;Authorization&nbsp;.+&nbsp;HTTP_AUTHORIZATION=$0
&lt;/IfModule&gt;</pre>
<p><br>Nginx伪静态规则：</p>
<pre class="brush:bash;toolbar:false">location&nbsp;/&nbsp;{
&nbsp;&nbsp;if&nbsp;(!-e&nbsp;$request_filename)&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;rewrite&nbsp;^(.*)$&nbsp;/index.php?s=$1&nbsp;last;
&nbsp;&nbsp;break;
&nbsp;&nbsp;}
}</pre>
<p>&nbsp;</p>
<p><strong>&nbsp;</strong>新安装1.9.1以下版本需改伪静态里面内容如下：</p>
<p>伪静态里面的index.php改为api.php</p>
<p><img src="https://www.3duo.com/content/uploadfile/202604/1629372921468273.png"></p>
<p>&nbsp;</p>
<p>②设置/public为运行目录</p>
<p><img src="https://www.3duo.com/content/uploadfile/202604/1629372922922990.png"></p>
<p>&nbsp;</p>
<p><strong>第七、魔方财务安装</strong></p>
<p><strong>&nbsp;</strong></p>
<p>①导航至域名上运行安装</p>
<p><img src="https://www.3duo.com/content/uploadfile/202604/1629372922409931.png"></p>
<p>&nbsp;</p>
<p>②检测当前环境是否正确&nbsp;（若提示请求失败 无正确显示请检查伪静态或重新检测）</p>
<p><img src="https://www.3duo.com/content/uploadfile/202604/1629373097927873.png"></p>
<p>&nbsp;</p>
<p>③填写已创建的数据库信息</p>
<p><img src="https://www.3duo.com/content/uploadfile/202604/1629373112659958.png"></p>
<p>&nbsp;</p>
<p>④填写网站配置以及创始人信息（请使用未被使用的授权码）</p>
<p><img src="https://www.3duo.com/content/uploadfile/202604/1629373126263511.png"></p>
<p>&nbsp;</p>
<p>⑤运行安装</p>
<p><img src="https://www.3duo.com/content/uploadfile/202604/1629373141890304.png"></p>
<p>&nbsp;</p>
<p>⑥安装完成 点击跳转后台登录</p>]]></description>
    <pubDate>Sat, 04 Apr 2026 22:40:33 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/29</guid>
</item>
<item>
    <title>魔方财务定时任务设置教程</title>
    <link>https://pan.fwq9.com/post/28</link>
    <description><![CDATA[<h1>魔方财务定时任务设置教程</h1>
<p>&nbsp;</p>
<p>魔方财务系统部署完成之后，为了系统能自动化处理系统订单以及机器状态的及时变更，定时任务是必不可少的~</p>
<p>定时任务设置有两种方式，参考以下其中一个方式进行设置即可：</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>方法一、在宝塔面板里设置定时任务</h3>
<p>①登录部署魔方财务的宝塔面板，点击&ldquo;计划任务&rdquo;，按照如下图文进行设置，设置完后点击&ldquo;提交任务&rdquo;即可。</p>
<p><img title="1649753855350810.png" src="https://www.3duo.com/content/uploadfile/202604/1649753855350810.png" alt="image.png"></p>
<p>&nbsp;</p>
<p>②宝塔面板上设置完成后，将页面往下拉，在任务列表里找到刚创建的定时任务计划，右侧点击&ldquo;执行&rdquo;。</p>
<p><img title="1649754056640025.png" src="https://www.3duo.com/content/uploadfile/202604/1649754056640025.png" alt="image.png"></p>
<p>&nbsp;</p>
<p>③以上设置完成后，回到魔方财务管理后台，设置-系统设置-定时任务页面，查看状态是否正常，绿色为正常。</p>
<p><img title="1649754154422227.png" src="https://www.3duo.com/content/uploadfile/202604/1649754154422227.png" alt="image.png"></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>方法二、在服务器里设置定时任务</h3>
<p>①通过ssh登录魔方财务服务器，这里用putty演示（终端也能远程连接首先yum install ssh，启动service sshd start，再登录ssh -p 端口 用户名@ip 后面会提示输入密码 ）</p>
<p><img title="1649754515681532.png" src="https://www.3duo.com/content/uploadfile/202604/1649754515681532.png" alt="image.png"></p>
<p><img title="1649754423595923.png" src="https://www.3duo.com/content/uploadfile/202604/1649754423595923.png" alt="image.png"></p>
<p>&nbsp;</p>
<p>②将魔方财务系统里定时任务运行命令复制到putty界面，粘贴并回车。</p>
<p><img title="1649754657803968.png" src="https://www.3duo.com/content/uploadfile/202604/1649754657803968.png" alt="image.png"></p>
<p>③在服务器里运行命令后，回到魔方财务管理后台，设置-系统设置-定时任务页面，查看状态是否正常，绿色为正常。</p>
<p><img title="1649754154422227.png" src="https://www.3duo.com/content/uploadfile/202604/1649754154422227.png" alt="image.png"></p>]]></description>
    <pubDate>Sat, 04 Apr 2026 22:38:58 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/28</guid>
</item>
<item>
    <title>魔方财务和魔方云系统有趣的扩展</title>
    <link>https://pan.fwq9.com/post/27</link>
    <description><![CDATA[<div class="markdown-heading" dir="auto">
<h3 class="heading-element" dir="auto" tabindex="-1"><span dir="auto">魔方业务系统V10使用方法</span></h3>
<a id="user-content-魔方业务系统v10使用方法" class="anchor" href="https://github.com/aazooo/zjmf?tab=readme-ov-file#%E9%AD%94%E6%96%B9%E4%B8%9A%E5%8A%A1%E7%B3%BB%E7%BB%9Fv10%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95" target="_blank" rel="noopener" aria-label="永久链接：魔方业务系统V10使用方法"></a></div>
<ol dir="auto">
<li>
<p dir="auto"><span dir="auto">首先需要安装php扩展。根据网站要使用的php版本，下载扩展文件（</span><a href="https://raw.githubusercontent.com/aazooo/zjmf/main/ext/finance/php7.2/idcsmart.so" target="_blank" rel="nofollow noopener"><span dir="auto">php7.2</span></a><span dir="auto">、</span><a href="https://raw.githubusercontent.com/aazooo/zjmf/main/ext/finance/php7.3/idcsmart.so" target="_blank" rel="nofollow noopener"><span dir="auto">php7.3</span></a><span dir="auto">、</span><a href="https://raw.githubusercontent.com/aazooo/zjmf/main/ext/finance/php7.4/idcsmart.so" target="_blank" rel="nofollow noopener"><span dir="auto">php7.4</span></a><span dir="auto">），上传到php安装目录 /lib/php/extensions/no-debug-non-zts-xxxx（xxxx 为一串数字）文件夹里面。</span></p>
</li>
<li>
<p dir="auto"><span dir="auto">修改php配置文件（php.ini），加入以下内容，然后重启php进程。</span></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate"><code>extension=idcsmart.so
</code></pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
</li>
<li>
<p dir="auto"><span dir="auto">后台系统设置-&gt;系统信息，只需填写一个授权码即可授权成功。</span></p>
</li>
<li>
<p dir="auto"><span dir="auto">在</span><a href="https://github.com/aazooo/ZJMF-CBAP-plugins" target="_blank" rel="noopener"><span dir="auto">此页面</span></a><span dir="auto">下载应用并安装。</span></p>
</li>
</ol>
<div class="markdown-heading" dir="auto">
<h3 class="heading-element" dir="auto" tabindex="-1"><span dir="auto">魔方财务系统使用方法</span></h3>
<a id="user-content-魔方财务系统使用方法" class="anchor" href="https://github.com/aazooo/zjmf?tab=readme-ov-file#%E9%AD%94%E6%96%B9%E8%B4%A2%E5%8A%A1%E7%B3%BB%E7%BB%9F%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95" target="_blank" rel="noopener" aria-label="永久链接：魔方财务系统使用方法"></a></div>
<p dir="auto"><em><span dir="auto">魔方财务系统支持版本：</span><strong><span dir="auto">&lt;=3.7.6</span></strong></em></p>
<ol dir="auto">
<li>
<p dir="auto"><span dir="auto">首先需要安装php扩展。根据网站要使用的php版本，下载扩展文件（</span><a href="https://raw.githubusercontent.com/aazooo/zjmf/main/ext/finance/php7.2/idcsmart.so" target="_blank" rel="nofollow noopener"><span dir="auto">php7.2</span></a><span dir="auto">、</span><a href="https://raw.githubusercontent.com/aazooo/zjmf/main/ext/finance/php7.3/idcsmart.so" target="_blank" rel="nofollow noopener"><span dir="auto">php7.3</span></a><span dir="auto">、</span><a href="https://raw.githubusercontent.com/aazooo/zjmf/main/ext/finance/php7.4/idcsmart.so" target="_blank" rel="nofollow noopener"><span dir="auto">php7.4</span></a><span dir="auto">），上传到php安装目录 /lib/php/extensions/no-debug-non-zts-xxxx（xxxx 为一串数字）文件夹里面。</span></p>
</li>
<li>
<p dir="auto"><span dir="auto">修改php配置文件（php.ini），加入以下内容，然后重启php进程。</span></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate"><code>extension=idcsmart.so
</code></pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
</li>
<li>
<p dir="auto"><span dir="auto">使用</span><a href="https://raw.githubusercontent.com/aazooo/zjmf/main/zjmfmangerbetaV3.7.6.zip" target="_blank" rel="nofollow noopener"><span dir="auto">官方安装包</span></a><span dir="auto">进行安装。填写授权码的时候，只要填写一个32位大写的MD5字符串，例如可以</span><a href="https://md5jiami.bmcx.com/" target="_blank" rel="nofollow noopener"><span dir="auto">在这里生成</span></a><span dir="auto">。（之前用过官方安装包的，还需要解压这个安装包单独覆盖vendor目录）该官方安装包已经集成部分常用插件，需要再去商店购买。</span></p>
</li>
<li>
<p dir="auto"><span dir="auto">安装完成后默认就是专业版，所有专业版的功能敬请使用。</span></p>
</li>
<li>
<p dir="auto"><span dir="auto">如果上传了第三方付费插件或模板，使用过程中提示插件未购买，需要在php配置文件（php.ini）加入idcsmart.app此配置项，配置第三方付费插件标识，多个插件标识用英文空格隔开，例如：</span></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate"><code>idcsmart.app=AliPayDmf,Smsbao,Subemail
</code></pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
<p dir="auto"><span dir="auto">重启php进程，在后台系统升级页面，已模块授权处，点击&ldquo;拉取授权&rdquo;。即可使用付费的第三方插件或模板。</span></p>
</li>
</ol>
<div class="markdown-heading" dir="auto">
<h3 class="heading-element" dir="auto" tabindex="-1"><span dir="auto">魔方云系统使用方法</span></h3>
<a id="user-content-魔方云系统使用方法" class="anchor" href="https://github.com/aazooo/zjmf?tab=readme-ov-file#%E9%AD%94%E6%96%B9%E4%BA%91%E7%B3%BB%E7%BB%9F%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95" target="_blank" rel="noopener" aria-label="永久链接：魔方云系统使用方法"></a></div>
<p dir="auto"><em><span dir="auto">魔方云系统支持版本：</span><strong><span dir="auto">3.9.18</span></strong></em></p>
<ol dir="auto">
<li>
<p dir="auto"><span dir="auto">使用以下命令安装魔方云系统（之前已经安装过免费版本的，直接跳到第3步）：</span></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto">
<pre>wget https://raw.githubusercontent.com/aazooo/zjmf/main/install-zjmf-cloud_new -O install-zjmf-cloud_new <span class="pl-k">&amp;&amp;</span> chmod +x install-zjmf-cloud_new <span class="pl-k">&amp;&amp;</span> ./install-zjmf-cloud_new</pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
<p dir="auto"><span dir="auto">国内服务器可以使用以下命令：</span></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto">
<pre>wget https://ghfast.top/https://raw.githubusercontent.com/aazooo/zjmf/main/install-zjmf-cloud_new -O install-zjmf-cloud_new <span class="pl-k">&amp;&amp;</span> chmod +x install-zjmf-cloud_new <span class="pl-k">&amp;&amp;</span> ./install-zjmf-cloud_new</pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
<p dir="auto"><span dir="auto">TencentOS Server3.1安装命令：</span></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate"><code>wget https://raw.githubusercontent.com/aazooo/zjmf/main/install-zjmf-cloud_new_TencentOS -O install-zjmf-cloud_new_TencentOS &amp;&amp; chmod +x install-zjmf-cloud_new_TencentOS &amp;&amp; ./install-zjmf-cloud_new_TencentOS
</code></pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
<p dir="auto"><span dir="auto">Rocky-linux-8.10安装命令：</span></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate"><code>wget https://raw.githubusercontent.com/aazooo/zjmf/main/install-zjmf-cloud_R8 -O install-zjmf-cloud_R8 &amp;&amp; chmod +x install-zjmf-cloud_R8 &amp;&amp; ./install-zjmf-cloud_R8
</code></pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
<p dir="auto"><span dir="auto">HK区域安装命令：</span></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate"><code>wget https://raw.githubusercontent.com/aazooo/zjmf/main/install-zjmf-cloud_new_hk -O install-zjmf-cloud_new &amp;&amp; chmod +x install-zjmf-cloud_new &amp;&amp; ./install-zjmf-cloud_new
</code></pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
<p dir="auto"><span dir="auto">以上是命令access模式安装脚本，如果要Trunk模式，是在最后加-t，轻量版是在最后加-l</span></p>
</li>
<li>
<p dir="auto"><span dir="auto">填写授权码的时候，只要填写一个32位大写的MD5字符串。</span></p>
</li>
<li>
<p dir="auto"><span dir="auto">输入以下命令完成授权：</span></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate"><code>echo -n "echo \"success\"" &gt; /home/zjmf/dashboard/www/extend/other/extension
wget https://raw.githubusercontent.com/aazooo/zjmf/main/other/check_main -O /home/zjmf/dashboard/www/extend/other/check_main
chmod +x /home/zjmf/dashboard/www/extend/other/extension
chmod +x /home/zjmf/dashboard/www/extend/other/check_main
wget https://raw.githubusercontent.com/aazooo/zjmf/main/ext/cloud/3.9.0/idcsmart.so -O /usr/lib64/php/modules/idcsmart.so
echo "extension=idcsmart.so" &gt; /etc/php.d/40-idcsmart.ini
sed -i 's/^disable_functions *=.*/disable_functions = phpinfo/' /etc/php.ini
wget https://raw.githubusercontent.com/aazooo/zjmf/main/other/helper.php -O /home/zjmf/dashboard/www/vendor/topthink/think-helper/src/helper.php
systemctl restart php-fpm
</code></pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
<p dir="auto"><span dir="auto">国内服务器可以使用以下命令：</span></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate"><code>echo -n "echo \"success\"" &gt; /home/zjmf/dashboard/www/extend/other/extension
wget https://ghfast.top/https://raw.githubusercontent.com/aazooo/zjmf/main/other/check_main -O /home/zjmf/dashboard/www/extend/other/check_main
chmod +x /home/zjmf/dashboard/www/extend/other/extension
chmod +x /home/zjmf/dashboard/www/extend/other/check_main
wget https://ghfast.top/https://raw.githubusercontent.com/aazooo/zjmf/main/ext/cloud/3.9.0/idcsmart.so -O /usr/lib64/php/modules/idcsmart.so
echo "extension=idcsmart.so" &gt; /etc/php.d/40-idcsmart.ini
sed -i 's/^disable_functions *=.*/disable_functions = phpinfo/' /etc/php.ini
wget https://ghfast.top/https://raw.githubusercontent.com/aazooo/zjmf/main/other/helper.php -O /home/zjmf/dashboard/www/vendor/topthink/think-helper/src/helper.php
systemctl restart php-fpm
</code></pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
</li>
</ol>
<p dir="auto"><span dir="auto">后续每次更新都要重新执行上述命令。</span></p>
<div class="markdown-heading" dir="auto">
<h3 class="heading-element" dir="auto" tabindex="-1"><span dir="auto">自建授权接口站点（可选）</span></h3>
<a id="user-content-自建授权接口站点可选" class="anchor" href="https://github.com/aazooo/zjmf?tab=readme-ov-file#%E8%87%AA%E5%BB%BA%E6%8E%88%E6%9D%83%E6%8E%A5%E5%8F%A3%E7%AB%99%E7%82%B9%E5%8F%AF%E9%80%89" target="_blank" rel="noopener" aria-label="永久链接：自建授权接口站点（可选）"></a></div>
<p dir="auto"><span dir="auto">该部分为可选的，如果内置授权接口出现连接不稳定等情况，可以选择自建。</span></p>
<ol dir="auto">
<li>
<p dir="auto"><span dir="auto">新建一个网站，上传</span><a href="https://raw.githubusercontent.com/aazooo/zjmf/main/zjmf_auth_api.zip" target="_blank" rel="nofollow noopener"><span dir="auto">授权接口源码</span></a><span dir="auto">，并配置好伪静态。</span></p>
</li>
<li>
<p dir="auto"><span dir="auto">在php配置文件（php.ini）加入idcsmart.url此配置项，填写授权接口地址，例如：</span></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate"><code>idcsmart.url=http://www.example.com/
</code></pre>
<div class="zeroclipboard-container">&nbsp;</div>
</div>
<p dir="auto"><span dir="auto">注意一定要以/结尾。然后重启php进程生效。</span></p>
</li>
</ol>
<div class="markdown-heading" dir="auto">
<h3 class="heading-element" dir="auto" tabindex="-1"><span dir="auto">魔方云HyperV使用方法</span></h3>
<a id="user-content-魔方云hyperv使用方法" class="anchor" href="https://github.com/aazooo/zjmf?tab=readme-ov-file#%E9%AD%94%E6%96%B9%E4%BA%91hyperv%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95" target="_blank" rel="noopener" aria-label="永久链接：魔方云HyperV使用方法"></a></div>
<ol dir="auto">
<li><span dir="auto">需自建授权接口站点，绑定license7.idcsmart.com域名，并开启SSL（只要一个域名证书即可）</span></li>
<li><span dir="auto">在Windows系统内配置hosts，将license7.idcsmart.com域名指向前面的服务器IP</span></li>
<li><span dir="auto">使用官方安装程序安装，填写授权码的时候，只需填写一个32位大写的MD5字符串。</span></li>
</ol>]]></description>
    <pubDate>Sat, 04 Apr 2026 22:32:23 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/27</guid>
</item>
<item>
    <title>Debian系统磁盘挂载</title>
    <link>https://pan.fwq9.com/post/21</link>
    <description><![CDATA[<p data-pid="jxBjrX81">Debian作为一款稳定且强大的Linux发行版，为用户提供了丰富的磁盘管理功能。本文将详细介绍在Debian系统中如何查看、初始化、挂载以及设置开机自动挂载磁盘的方法，帮助大家更好地管理磁盘空间。</p>
<h3>一、查看磁盘信息</h3>
<p data-pid="onQK1jy7">在Debian系统中，我们可以使用<code><a class="RichContent-EntityWord css-b7erz1" href="https://zhida.zhihu.com/search?content_id=243948431&amp;content_type=Article&amp;match_order=1&amp;q=fdisk&amp;zd_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ6aGlkYV9zZXJ2ZXIiLCJleHAiOjE3NzAxMjg5NjIsInEiOiJmZGlzayIsInpoaWRhX3NvdXJjZSI6ImVudGl0eSIsImNvbnRlbnRfaWQiOjI0Mzk0ODQzMSwiY29udGVudF90eXBlIjoiQXJ0aWNsZSIsIm1hdGNoX29yZGVyIjoxLCJ6ZF90b2tlbiI6bnVsbH0.FFCfZtGaaSDTpwwdj1TaqBnSGqMgQxzpn8WvS2_M2pg&amp;zhida_source=entity" target="_blank" rel="noopener" data-za-not-track-link="true" data-paste-text="true">fdisk</a></code>命令来查看磁盘信息。请按照以下步骤操作：</p>
<p data-pid="VobE0VBY">1. 打开终端。</p>
<p data-pid="JxAaaQnl">2. 输入<code>fdisk -l</code>命令，查看所有磁盘的分区情况。</p>
<figure data-size="normal">
<div><img class="origin_image zh-lightbox-thumb" src="https://www.3duo.com/content/uploadfile/202602/v2-fb4d5a453cf1b1737081135bdcf7eca1_1440w.jpg" width="624" data-caption="" data-size="normal" data-rawwidth="624" data-rawheight="343" data-original-token="v2-64850382e3d9aad8e2874ea076fc6b05" data-original="https://picx.zhimg.com/v2-fb4d5a453cf1b1737081135bdcf7eca1_r.jpg"></div>
</figure>
<p data-pid="q5_fPTBr">该命令将列出系统中所有磁盘及其分区信息，包括磁盘名称、大小、分区类型等。</p>
<h3>二、初始化磁盘</h3>
<p data-pid="Z2Sh-0Nu">初始化磁盘通常包括创建分区和格式化分区两个步骤。以下是具体操作方法：</p>
<p data-pid="FoeW6Mv7">1.&nbsp;<strong>创建分区</strong>：</p>
<figure data-size="normal">
<div><img class="origin_image zh-lightbox-thumb" src="https://www.3duo.com/content/uploadfile/202602/v2-1aff02899ecad16c2f81da8df48cd500_1440w.jpg" width="798" data-caption="" data-size="normal" data-rawwidth="798" data-rawheight="473" data-original-token="v2-fbca4a775a138d02c1da0ab4132d0e56" data-original="https://pic1.zhimg.com/v2-1aff02899ecad16c2f81da8df48cd500_r.jpg"></div>
</figure>
<ul>
<li data-pid="Z5T8S3z4">使用<code>fdisk</code>命令进入磁盘分区界面：<code>fdisk /dev/sdX</code>（其中<code>sdX</code>为目标磁盘名称）。</li>
<li data-pid="XFvQJCOY">输入<code>m</code>可查看所有指令。</li>
<li data-pid="4clx9qjD">根据提示进行分区操作，如输入<code>n</code>新增一个分区，输入分区号、分区大小完成分区。</li>
<li data-pid="KYctIg35">完成后使用<code>w</code>保存并退出。</li>
</ul>
<p data-pid="AouMAkcO">2.&nbsp;<strong>格式化分区</strong>：</p>
<figure data-size="normal">
<div><img class="origin_image zh-lightbox-thumb" src="https://www.3duo.com/content/uploadfile/202602/v2-ee449e5c0fbff0348ade608c9f521447_1440w.jpg" width="759" data-caption="" data-size="normal" data-rawwidth="759" data-rawheight="289" data-original-token="v2-6e0834a1837fc67f7dbf6064b2fa896c" data-original="https://pic4.zhimg.com/v2-ee449e5c0fbff0348ade608c9f521447_r.jpg"></div>
</figure>
<ul>
<li data-pid="qGq-kjjI">使用<code><a class="RichContent-EntityWord css-b7erz1" href="https://zhida.zhihu.com/search?content_id=243948431&amp;content_type=Article&amp;match_order=1&amp;q=mkfs&amp;zd_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ6aGlkYV9zZXJ2ZXIiLCJleHAiOjE3NzAxMjg5NjIsInEiOiJta2ZzIiwiemhpZGFfc291cmNlIjoiZW50aXR5IiwiY29udGVudF9pZCI6MjQzOTQ4NDMxLCJjb250ZW50X3R5cGUiOiJBcnRpY2xlIiwibWF0Y2hfb3JkZXIiOjEsInpkX3Rva2VuIjpudWxsfQ.S2VpopYV3ALC-xT5DF8smFpwI756Clnmgw5gGr8Kt4g&amp;zhida_source=entity" target="_blank" rel="noopener" data-za-not-track-link="true" data-paste-text="true">mkfs</a></code>命令对新建分区进行格式化，例如：<code>mkfs -t ext4 /dev/sdXn</code>（其中<code>sdXn</code>为新创建的分区名称）。</li>
<li data-pid="QOOnIf-u">根据需要选择文件系统类型，如<code>ext4</code>、<code>xfs</code>等。</li>
</ul>
<h3>三、挂载磁盘</h3>
<p data-pid="yCx4Krn1">挂载磁盘是将磁盘分区与文件系统中的目录进行关联的过程。请按照以下步骤操作：</p>
<ul>
<li data-pid="QYPjoTD6">创建一个用于挂载的目录，例如：<code>mkdir /www</code>。</li>
</ul>
<figure data-size="normal">
<div><img class="content_image" src="https://www.3duo.com/content/uploadfile/202602/v2-a5f3abcc91142f4094a99345289be977_1440w.jpg" width="361" data-caption="" data-size="normal" data-rawwidth="361" data-rawheight="24" data-original-token="v2-a5f3abcc91142f4094a99345289be977"></div>
</figure>
<ul>
<li data-pid="9L8YaZo9">使用<code><a class="RichContent-EntityWord css-b7erz1" href="https://zhida.zhihu.com/search?content_id=243948431&amp;content_type=Article&amp;match_order=1&amp;q=mount&amp;zd_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ6aGlkYV9zZXJ2ZXIiLCJleHAiOjE3NzAxMjg5NjIsInEiOiJtb3VudCIsInpoaWRhX3NvdXJjZSI6ImVudGl0eSIsImNvbnRlbnRfaWQiOjI0Mzk0ODQzMSwiY29udGVudF90eXBlIjoiQXJ0aWNsZSIsIm1hdGNoX29yZGVyIjoxLCJ6ZF90b2tlbiI6bnVsbH0.kgOT7g79Di2drEL1tEzsoDPdGvqFL8hIPQmVyMjsBUM&amp;zhida_source=entity" target="_blank" rel="noopener" data-za-not-track-link="true" data-paste-text="true">mount</a></code>命令将分区挂载到指定目录：<code>mount /dev/sdXn /www</code>。</li>
</ul>
<figure data-size="normal">
<div><img class="origin_image zh-lightbox-thumb" src="https://www.3duo.com/content/uploadfile/202602/v2-c8316a47d80a737c0cd2b50993c22cb1_1440w.jpg" width="455" data-caption="" data-size="normal" data-rawwidth="455" data-rawheight="35" data-original-token="v2-c8316a47d80a737c0cd2b50993c22cb1" data-original="https://pic2.zhimg.com/v2-c8316a47d80a737c0cd2b50993c22cb1_r.jpg"></div>
</figure>
<ul>
<li data-pid="VoT4o6AM">通过<code>df -h</code>命令确认挂载成功。</li>
</ul>
<figure data-size="normal">
<div><img class="origin_image zh-lightbox-thumb" src="https://www.3duo.com/content/uploadfile/202602/v2-a7759556e822ffb78477a5fc664f9e3f_1440w.jpg" width="534" data-caption="" data-size="normal" data-rawwidth="534" data-rawheight="180" data-original-token="v2-116d802391dda67b75f3ce17c674488f" data-original="https://picx.zhimg.com/v2-a7759556e822ffb78477a5fc664f9e3f_r.jpg"></div>
</figure>
<h3>四、设置开机自动挂载</h3>
<p data-pid="grPvFpYE">为了确保每次开机时磁盘都能自动挂载，我们需要将挂载信息添加到<code><a class="RichContent-EntityWord css-b7erz1" href="https://zhida.zhihu.com/search?content_id=243948431&amp;content_type=Article&amp;match_order=1&amp;q=%2Fetc%2Ffstab&amp;zd_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ6aGlkYV9zZXJ2ZXIiLCJleHAiOjE3NzAxMjg5NjIsInEiOiIvZXRjL2ZzdGFiIiwiemhpZGFfc291cmNlIjoiZW50aXR5IiwiY29udGVudF9pZCI6MjQzOTQ4NDMxLCJjb250ZW50X3R5cGUiOiJBcnRpY2xlIiwibWF0Y2hfb3JkZXIiOjEsInpkX3Rva2VuIjpudWxsfQ.WKcsacb98GXrtdWHJLBytZaFF8r6OgcMtI5m0LOtPBk&amp;zhida_source=entity" target="_blank" rel="noopener" data-za-not-track-link="true" data-paste-text="true">/etc/fstab</a></code>文件中。请按照以下步骤操作：</p>
<ul>
<li data-pid="hc7G8Tzz">使用文本编辑器（如<code>nano</code>、<code>vi</code>、<code>vim</code>等）打开<code>/etc/fstab</code>文件：<code>nano /etc/fstab</code>。</li>
</ul>
<blockquote data-pid="lq7McB6Z">保存更改：<br>当你完成编辑后，首先需要保存你的更改。按下&nbsp;<code>Ctrl + O</code>（即 Control 键和字母O键同时按），这是写出文件的命令。<br>- 按下&nbsp;<code>Ctrl + O</code>&nbsp;后，<code>nano</code>会在屏幕底部显示一个提示，通常会问你确认文件名，如果不需要改变文件名，直接按&nbsp;<code>Enter</code>&nbsp;键确认。<br>退出编辑器：<br>文件保存后，你可以退出<code>nano</code>编辑器。按下&nbsp;<code>Ctrl + X</code>（即 Control 键和字母X键同时按），这个操作会关闭编辑器。<br>总结<br>编辑完成后，使用&nbsp;<code>Ctrl + O</code>&nbsp;确认保存，然后&nbsp;<code>Enter</code>&nbsp;确认文件名，最后使用&nbsp;<code>Ctrl + X</code>&nbsp;退出<code>nano</code>编辑器。这样你的更改就会被保存，并且编辑器也会关闭。如果你在编辑过程中决定不保存更改并退出，可以直接按&nbsp;<code>Ctrl + X</code>，编辑器会询问你是否保存更改，此时你可以选择不保存直接退出。</blockquote>
<figure data-size="normal">
<div><img class="origin_image zh-lightbox-thumb" src="https://www.3duo.com/content/uploadfile/202602/v2-a1a37ab85ea38ff2e45f74f8842fafb3_1440w.jpg" width="764" data-caption="" data-size="normal" data-rawwidth="764" data-rawheight="325" data-original-token="v2-4fdb2ee51a35ea6ada5cae46a263ab72" data-original="https://pic4.zhimg.com/v2-a1a37ab85ea38ff2e45f74f8842fafb3_r.jpg"></div>
</figure>
<ul>
<li data-pid="Crle6eqW">在文件末尾添加一行类似于以下内容的挂载信息：<code>/dev/sdXn /www ext4 defaults 0 0</code>。</li>
<ul>
<li data-pid="xxQKbDQr">第一列为<code>磁盘分区路径</code>。</li>
<li data-pid="O_EqloKQ">第二列为<code>挂载目录</code>。</li>
<li data-pid="F3VITM2Q">第三列为<code>文件系统类型</code>。</li>
<li data-pid="Ss53c3gI">后两列分别表示<code>dump备份标志</code>和<code>fsck检查顺序</code>，一般设置为<code>0</code>即可。</li>
</ul>
<li data-pid="CBcePHD2">保存并关闭文件。</li>
<li data-pid="AxUFMu8E">重启系统后，磁盘将自动挂载到指定目录。</li>
</ul>]]></description>
    <pubDate>Sun, 01 Feb 2026 22:30:01 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/21</guid>
</item>
<item>
    <title>debian11挂载硬盘</title>
    <link>https://pan.fwq9.com/post/20</link>
    <description><![CDATA[<p class="marklang-paragraph">&lt;在Debian 11 (Bullseye) 上挂载硬盘，你需要遵循以下步骤。这个过程假定你已经有了一块外部硬盘或者一块新的硬盘分区，并希望将其挂载到你的Debian系统上。以下是具体的步骤：</p>
<h3>1. 确认硬盘设备名称</h3>
<p class="marklang-paragraph">首先，你需要确认硬盘的设备名称。可以使用<code>lsblk</code>命令来查看系统中所有的存储设备：</p>
<div class="code-header">bash<span class="cosd-markdown-code-copy cos-link">Copy Code</span></div>
<div class="code-wrapper">
<div class="code-left">
<div class="code-number" data-line-number="1">&nbsp;</div>
</div>
<div class="code-right"><code class="hljs language-bash">lsblk
</code></div>
</div>
<p class="marklang-paragraph">这个命令会列出所有的存储设备，包括它们的挂载点、大小等信息。找到你的硬盘设备，比如它可能是<code>/dev/sdb</code>或者<code>/dev/sdc</code>等。</p>
<h3>2. 创建文件系统（如果需要）</h3>
<p class="marklang-paragraph">如果硬盘是新的或者还没有文件系统，你需要先创建文件系统。可以使用<code>mkfs</code>命令来创建文件系统。例如，如果你想创建一个ext4文件系统，可以使用：</p>
<div class="code-header">bash<span class="cosd-markdown-code-copy cos-link">Copy Code</span></div>
<div class="code-wrapper">
<div class="code-left">
<div class="code-number" data-line-number="1">&nbsp;</div>
</div>
<div class="code-right"><code class="hljs language-bash">sudo mkfs.ext4 /dev/sdb1
</code></div>
</div>
<p class="marklang-paragraph">这里<code>/dev/sdb1</code>是你的硬盘分区。根据你的情况，分区号可能不同（比如<code>/dev/sdb2</code>等）。</p>
<h3>3. 创建挂载点</h3>
<p class="marklang-paragraph">选择一个目录作为挂载点。你可以创建一个新的目录：</p>
<div class="code-header">bash<span class="cosd-markdown-code-copy cos-link">Copy Code</span></div>
<div class="code-wrapper">
<div class="code-left">
<div class="code-number" data-line-number="1">&nbsp;</div>
</div>
<div class="code-right"><code class="hljs language-bash">sudo <span class="hljs-built_in">mkdir</span> /mnt/external_drive
</code></div>
</div>
<h3>4. 挂载硬盘</h3>
<p class="marklang-paragraph">使用<code>mount</code>命令将硬盘挂载到之前创建的挂载点：</p>
<div class="code-header">bash<span class="cosd-markdown-code-copy cos-link">Copy Code</span></div>
<div class="code-wrapper">
<div class="code-left">
<div class="code-number" data-line-number="1">&nbsp;</div>
</div>
<div class="code-right"><code class="hljs language-bash">sudo mount /dev/sdb1 /mnt/external_drive
</code></div>
</div>
<h3>5. 配置自动挂载（可选）</h3>
<p class="marklang-paragraph">如果你希望在每次启动时自动挂载这个硬盘，你可以编辑<code>/etc/fstab</code>文件来实现。首先，使用<code>blkid</code>命令找到你的硬盘分区的UUID：</p>
<div class="code-header">bash<span class="cosd-markdown-code-copy cos-link">Copy Code</span></div>
<div class="code-wrapper">
<div class="code-left">
<div class="code-number" data-line-number="1">&nbsp;</div>
</div>
<div class="code-right"><code class="hljs language-bash">sudo blkid /dev/sdb1
</code></div>
</div>
<p class="marklang-paragraph">然后，将以下行添加到<code>/etc/fstab</code>文件的末尾：</p>
<div class="code-header">bash<span class="cosd-markdown-code-copy cos-link">Copy Code</span></div>
<div class="code-wrapper">
<div class="code-left">
<div class="code-number" data-line-number="1">&nbsp;</div>
</div>
<div class="code-right"><code class="hljs language-bash">UUID=your-uuid /mnt/external_drive ext4 defaults 0 2
</code></div>
</div>
<p class="marklang-paragraph">将<code>your-uuid</code>替换为你的硬盘分区的UUID，并确保其他设置正确（如文件系统类型等）。</p>
<h3>6. 验证挂载</h3>
<p class="marklang-paragraph">最后，你可以使用<code>df -h</code>或<code>mount | grep external_drive</code>来验证硬盘是否已成功挂载。</p>
<h3>注意事项：</h3>
<ul>
<li>确保你有足够的权限执行这些操作。大多数命令需要root权限，所以前面加上了<code>sudo</code>。</li>
<li>如果你的硬盘是新购买的或从未在Linux上使用过，确保你已经按照步骤2创建了文件系统。否则，直接挂载可能会失败。</li>
<li>如果你在挂载时遇到权限问题，可以尝试使用<code>sudo mount -o rw,users,noauto /dev/sdb1 /mnt/external_drive</code>命令来挂载，并确保目录对所有用户开放。</li>
<li>如果在自动挂载配置后遇到问题，检查UUID是否正确，以及是否正确设置了文件系统类型等。</li>
</ul>
<p class="marklang-paragraph">按照这些步骤，你应该能够在Debian 11上成功挂载硬盘。</p>]]></description>
    <pubDate>Sun, 01 Feb 2026 22:21:50 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/20</guid>
</item>
<item>
    <title>CentOS7挂载磁盘，4T磁盘挂载方法</title>
    <link>https://pan.fwq9.com/post/19</link>
    <description><![CDATA[<div>
<div>
<p>本文仅适用于使用 <code>fdisk</code> 命令对一个不大于 <code>2 TB</code> 的数据盘执行分区操作。如果需要分区的数据盘大于 <code>2 TB</code>，请参考 <a href="https://help.aliyun.com/document_detail/34377.html%EF%BC%9Fspm=5176.doc25426.2.4.yV1HGb" target="_blank" rel="nofollow noopener">阿里云-32TB 块存储分区</a>。服务器安装centos的时候，通常linux系统分区默认为3个分区，主分区最多4个，其他可根据自己的需要挂载。</p>
<blockquote>
<p>/ 根分区，通常10-100G左右（根据总磁盘大小情况）<br>/boot 系统操作分区(100-500MB 足矣)<br>/swap 虚拟内存暂存分区（通常是内存的2倍，根据自己装系统的习惯会有所差异）</p>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-csharp"><code>[root@huoshi-111 ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/cl-root   44G  4.3G   40G  10% /
devtmpfs             7.8G     0  7.8G   0% /dev
tmpfs                7.8G     0  7.8G   0% /dev/shm
tmpfs                7.8G  8.9M  7.8G   1% /run
tmpfs                7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sda1           1014M  251M  764M  25% /boot
tmpfs                1.6G     0  1.6G   0% /run/user/0
[root@huoshi-111 ~]# 
</code></pre>
</div>
</blockquote>
<p><strong>1、首先查看未指派的分区名称，有的不一样，我的分别是/dev/sda和/dev/sdb，sda是系统分区，sdb是存储数据分区。</strong></p>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-csharp"><code>[root@huoshi-111 ~]# fdisk -l
# 这里这个盘是需要挂载的
Disk /dev/sdb: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b33c5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200   104857599    51379200   8e  Linux LVM

Disk /dev/mapper/cl-root: 47.2 GB, 47240445952 bytes, 92266496 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/cl-swap: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[root@huoshi-111 ~]# 
</code></pre>
</div>
<p><strong>2. 创建硬盘分区</strong></p>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-csharp"><code>[root@huoshi-111 ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x774b38c4.

Command (m for help):  #输入n回车，添加新分区，如果需要更多，请输入m回车看帮助

Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p):  # 输入p回车，P的意思是主分区

Partition number (1-4):  # 输入数字1回车，分区数量

First sector (2048-20971519, default 2048):  #默认回车

Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-419430399, default 419430399):  # 默认回车

Using default value 419430399
Partition 1 of type Linux and of size 200GiB is set

Command (m for help):  # 输入w保存

The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
</code></pre>
</div>
<p><strong>3、分区完成。输入fdisk -l查看信息</strong></p>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-bash"><code>[root@huoshi-111 ~]# fdisk -l
Disk /dev/sdb: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xc10d16e7

# 可以查看/dev/sdb1已经被默认分区
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   419430399   209714176   83  Linux

Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b33c5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200   104857599    51379200   8e  Linux LVM

Disk /dev/mapper/cl-root: 47.2 GB, 47240445952 bytes, 92266496 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/cl-swap: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[root@huoshi-111 ~]# 
</code></pre>
</div>
<p><strong>4. 格式化分区</strong></p>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-csharp"><code>[root@huoshi-111 ~]# mkfs.ext4 /dev/sdb1
</code></pre>
</div>
<p><strong>5. 建立挂载目录</strong></p>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-csharp"><code>[root@huoshi-111 ~]# mkdir /data
</code></pre>
</div>
<p><strong>6.挂载分区</strong></p>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-csharp"><code>[root@huoshi-111 ~]# mount /dev/sdb1 /data
</code></pre>
</div>
<p><strong>7.设置开机自动挂载</strong></p>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-csharp"><code>[root@huoshi-111 ~]# echo /dev/sdb1 /data ext4 defaults 0 0 &gt;&gt; /etc/fstab
</code></pre>
</div>
<p><strong>8.确认是否挂载成功</strong></p>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-csharp"><code># 重启系统
[root@huoshi-111 ~]# reboot
</code></pre>
</div>
<div class="_2Uzcx_"><button class="VJbwyy" type="button" aria-label="复制代码"></button>
<pre class="line-numbers language-csharp"><code>[root@huoshi-111 ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/cl-root   44G  4.3G   40G  10% /
devtmpfs             7.8G     0  7.8G   0% /dev
tmpfs                7.8G     0  7.8G   0% /dev/shm
tmpfs                7.8G  8.9M  7.8G   1% /run
tmpfs                7.8G     0  7.8G   0% /sys/fs/cgroup
# 注意看这里，/dev/sdb1 挂载在/data，说明这次挂载成功了
/dev/sdb1            197G  201M  187G   1% /data
/dev/sda1           1014M  251M  764M  25% /boot
tmpfs                1.6G     0  1.6G   0% /run/user/0
[root@huoshi-111 ~]# </code></pre>
</div>
</div>
<br><br>作者：silentmx<br>链接：https://www.jianshu.com/p/4a3fe7d60970<br>来源：简书<br>著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。</div>]]></description>
    <pubDate>Sun, 01 Feb 2026 21:59:07 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/19</guid>
</item>
<item>
    <title>宝塔Linux面板挂载磁盘教程</title>
    <link>https://pan.fwq9.com/post/18</link>
    <description><![CDATA[<div>1、创建挂载目录（www为宝塔默认安装目录）</div>
<div>mkdir -p /www</div>
<div>复制代码</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>2、确认是否没有分区的磁盘，如下图，没有分区的磁盘是/dev/sdb，在您的服务器中可能是/dev/vdb，请注意按照实际名称修改</div>
<div>fdisk -l</div>
<div>复制代码</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>3、为磁盘分区，若已分区，可跳过</div>
<div>fdisk /dev/sdb</div>
<div>复制代码</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>4、输入n开始创建分区</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>5、输入p创建主分区</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>6、选择分区号 输入1</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>7、输入分区开始位置，直接回车</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>8、输入分区结束位置，直接回车</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>9、输入wq 回车退出</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>10、检查是否分区成功（带有sdb1/vdb1/xvb1说明成功）</div>
<div>fdisk -l</div>
<div>复制代码</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>11、格式化分区，这里输入看到的磁盘加分区号 如下图为/dev/sdb1 已格式化的可跳过</div>
<div>mkfs.ext4 /dev/sdb1</div>
<div>复制代码</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>12、将分区</div>
<div>挂载信息添加到配置文件/etc/fstab中，实现开机/重启自动挂载</div>
<div>echo "/dev/sdb1 /www ext4 defaults 0 0" &gt;&gt; /etc/fstab</div>
<div>复制代码</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>13、重新挂载所有分区</div>
<div>mount -a</div>
<div>复制代码</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>14、检查是否挂载成功</div>
<div>df -h</div>
<div>复制代码</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>挂载后即可安装面板</div>
<div>&nbsp;</div>]]></description>
    <pubDate>Sun, 01 Feb 2026 21:59:07 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/18</guid>
</item>
<item>
    <title>Windows设置用户名密码 Windows修改用户名密码步骤</title>
    <link>https://pan.fwq9.com/post/17</link>
    <description><![CDATA[<p>　首次登陆请及时修改服务器密码：右击&ldquo;我的电脑&rdquo;&mdash;&mdash; 选择 &ldquo;管理&rdquo;&mdash;&mdash; 选择&ldquo;本地用户和组&rdquo;&mdash;&mdash;单击&ldquo;用户&rdquo; ，右侧可以看到默认的系统帐号&ldquo;Administrator&rdquo; &mdash;&mdash;右健点击&ldquo;设置密码&rdquo; 来设置您自己的密码。如下图1、图2：</p>
<div align="center"><img id="aimg_55" class="zoom" src="/content/uploadfile/202601/173028vjj48dj5d4j9vcn2.jpg" width="600"></div>
<p>　　图1</p>
<div align="center"><img id="aimg_56" class="zoom" src="/content/uploadfile/202601/173030kv0usvub5kuvbkk5.jpg" width="600"></div>]]></description>
    <pubDate>Fri, 30 Jan 2026 13:47:36 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/17</guid>
</item>
<item>
    <title>windows系统服务器安全设置建议</title>
    <link>https://pan.fwq9.com/post/16</link>
    <description><![CDATA[<p>为了提高您所使用主机的安全性，建议您做好系统安全，提升安全防护意识，下面是亿恩科技小编为大家分享的windows系统服务器安全设置建议。<br>　　系统安全：<br>　　1.设置较为复杂的主机密码，建议8位数以上，大小写混合带数字、特殊字符，不要使用123456、password等弱口令。<br>　　2.windows主机强烈建议安装服务器安全狗、网站安全狗等防入侵的产品。<br>　　3.做好网站的注入漏洞检查，做好网站目录访问权限控制。(建议将网站设置为只读状态，对需要上传附件等目录单独开通写权限功能，对上传文件目录设置为禁止脚本执行权限)<br>　　4.关闭不需要的服务，如server,worksation等服务一般用不上，建议禁用。<br>　　5.启用TCP/IP筛选功能,关闭危险端口,防止远程扫描、蠕虫和溢出攻击。 比如mssql数据库的1433端口，一般用不上远程连接的话，建议封掉，只允许本机连接。<br>　　6.如果自己安装数据库，建议修改为普通用户运行，默认是system权限运行的，非常不安全。<br>　　7.如果是自主安装纯净版的系统，建议修改掉3389、22等默认端口，用其他非标准端口可以减少被黑的几率。<br>　　8.利用系统防火墙，关闭不用的端口，只需要开启远程端口，网站80端口，ftp端口即可。利用好服务器安全狗做好远程ip或者计算机名限制。<br>　　网站程序/目录安全:<br>　　若是一些官方源码,及时跟随官方版本升级更新补丁,若是一些网络公司/自行开发的程序,注意一些上传功能,提交留言等要进行严格的程序判断限制网站所在目录可增加一些权限设置来增强安全<br>　　右击网站目录,如wwwroot,属性-安全,取消掉对应用户的完全控制控制权限,只保留读取运行权限个别目录,如data/session caches uploads databases 等需要写入权限的目录,单独右击属性安全中设置为完全控制upload,images等静态文件,图片文件等目录,取消执行权限不常更新的程序文件,如index.php,index.asp等右击属性,把只读属性勾选上以防止被篡<br>　　数据安全：<br>　　建议定期把数据库等重要数据进行本机或异机备份！</p>]]></description>
    <pubDate>Fri, 30 Jan 2026 13:46:15 +0800</pubDate>
    <dc:creator>Shadow Wind</dc:creator>
    <guid>https://pan.fwq9.com/post/16</guid>
</item>
</channel>
</rss>