<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>陆零云</title><link>https://idc.00645.com/</link><description>陆零网络技术文档</description><item><title>PHP 上传文件总是失败，提示 &amp;quot;UPLOAD_ERR_INI_SIZE&amp;quot; 或 &amp;quot;文件过大&amp;quot;？</title><link>https://idc.00645.com/165.html</link><description>&lt;div class=&quot;ybc-p&quot;&gt;这是因为 PHP 配置文件 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;php.ini&lt;/code&gt;中的上传大小限制小于你要上传的文件大小。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查与解决：&lt;/strong&gt;&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;查看当前限制值&lt;/strong&gt;：&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;phpinfo()&lt;/code&gt;页面搜索 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;upload_max_filesize&lt;/code&gt;和 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;post_max_size&lt;/code&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;修改 php.ini 配置&lt;/strong&gt;：&lt;/div&gt;&lt;pre class=&quot;ybc-pre-component ybc-pre-component_not-math&quot;&gt;;&amp;nbsp;允许上传的最大文件大小（如&amp;nbsp;64M）upload_max_filesize&amp;nbsp;=&amp;nbsp;64M;&amp;nbsp;POST&amp;nbsp;数据最大大小（必须&amp;nbsp;&amp;gt;=&amp;nbsp;upload_max_filesize）post_max_size&amp;nbsp;=&amp;nbsp;70M;&amp;nbsp;最大并发上传文件数max_file_uploads&amp;nbsp;=&amp;nbsp;20;&amp;nbsp;脚本最大执行时间（大文件上传可能需要更长时间）max_execution_time&amp;nbsp;=&amp;nbsp;300memory_limit&amp;nbsp;=&amp;nbsp;128M&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;修改后重启 Web 服务&lt;/strong&gt;：&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;sudo systemctl restart php-fpm&lt;/code&gt;或 Apache&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;前端也要同步限制&lt;/strong&gt;：HTML 表单中 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;enctype=&amp;quot;multipart/form-data&amp;quot;&lt;/code&gt;，JS 可做客户端预检&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;Nginx 额外限制&lt;/strong&gt;：若使用 Nginx 代理，还需检查 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;client_max_body_size&lt;/code&gt;：&lt;/div&gt;&lt;pre class=&quot;ybc-pre-component ybc-pre-component_not-math&quot;&gt;client_max_body_size&amp;nbsp;70M;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;&lt;div class=&quot;ybc-p&quot;&gt;💡 &lt;strong&gt;调试技巧&lt;/strong&gt;：在 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;$_FILES[&amp;#39;file&amp;#39;][&amp;#39;error&amp;#39;]&lt;/code&gt;返回值中，0 表示成功，1 表示超过 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;upload_max_filesize&lt;/code&gt;，2 表示超过表单 MAX_FILE_SIZE，3 表示部分上传，4 表示没有文件被上传。&lt;/div&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 18 Jun 2026 09:58:59 +0800</pubDate></item><item><title>PHP 连接 MySQL 时报 &amp;quot;Class &amp;#039;mysqli&amp;#039; not found&amp;quot; 错误怎么办？</title><link>https://idc.00645.com/164.html</link><description>&lt;div class=&quot;ybc-p&quot;&gt;该错误表示 PHP 环境中没有安装或启用 &lt;strong&gt;mysqli 扩展&lt;/strong&gt;。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查与解决：&lt;/strong&gt;&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;确认 PHP 版本与扩展安装情况&lt;/strong&gt;：&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;php -m | grep mysqli&lt;/code&gt;（Linux）或 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;php -m | findstr mysqli&lt;/code&gt;（Windows）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;若无输出，说明未安装或未启用&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;安装 mysqli 扩展&lt;/strong&gt;：&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;Ubuntu/Debian&lt;/strong&gt;：&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;sudo apt-get install php-mysql&lt;/code&gt;（PHP 8.x 为 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;php8.x-mysql&lt;/code&gt;）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;CentOS/RHEL&lt;/strong&gt;：&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;sudo yum install php-mysqli&lt;/code&gt;或 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;sudo dnf install php-mysqli&lt;/code&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;Windows&lt;/strong&gt;：在 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;php.ini&lt;/code&gt;中去掉 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;extension=mysqli&lt;/code&gt;前面的分号&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;重启 Web 服务&lt;/strong&gt;：&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;sudo systemctl restart php-fpm&lt;/code&gt;（Nginx 搭配）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;sudo systemctl restart apache2&lt;/code&gt;（Apache 搭配）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 18 Jun 2026 09:58:32 +0800</pubDate></item><item><title>为什么我改了 PHP 代码，刷新页面却没有变化？</title><link>https://idc.00645.com/163.html</link><description>&lt;div class=&quot;ybc-p&quot;&gt;以下是 PHP 开发中&lt;strong&gt;3个高频常见问题及标准答复&lt;/strong&gt;，可直接用于技术文档、客服 FAQ 或团队内部知识库：&lt;/div&gt;&lt;hr/&gt;&lt;h2&gt;Q1：为什么我改了 PHP 代码，刷新页面却没有变化？&lt;/h2&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;A：&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;最常见的原因是 &lt;strong&gt;OPcache（操作码缓存）&lt;/strong&gt; 未清除。PHP 为了提高性能，会将编译后的脚本缓存起来，修改源码后若不清除缓存，服务器仍执行旧版本。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查与解决：&lt;/strong&gt;&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;确认 OPcache 状态&lt;/strong&gt;：在代码中加入 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;phpinfo()&lt;/code&gt;查看 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;opcache.enable&lt;/code&gt;是否为 On。&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;清除 OPcache 的方法&lt;/strong&gt;：&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;重启 Web 服务：&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;sudo systemctl restart php-fpm&lt;/code&gt;或 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;sudo systemctl restart apache2&lt;/code&gt;/ &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;sudo systemctl restart nginx&lt;/code&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;调用函数清除：&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;opcache_reset()&lt;/code&gt;（CLI 模式）或 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;opcache_invalidate(&amp;#39;/path/to/file.php&amp;#39;)&lt;/code&gt;（指定文件）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;通过 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;opcache.revalidate_freq&lt;/code&gt;配置（设为 0 表示每次都检查文件修改时间，开发环境建议设为 0）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;其他可能性&lt;/strong&gt;：&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;浏览器缓存：Ctrl+F5 强制刷新&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;CDN 缓存：刷新 CDN 节点缓存&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;使用了框架路由缓存（如 Laravel 的 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;route:cache&lt;/code&gt;）：执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;php artisan route:clear&lt;/code&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 18 Jun 2026 09:57:33 +0800</pubDate></item><item><title>服务器数据库连接数过多，网站报&amp;quot;Too many connections&amp;quot;怎么办？</title><link>https://idc.00645.com/162.html</link><description>&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：网站页面报数据库连接错误，后台无法登录。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;登录MySQL执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;SHOW VARIABLES LIKE &amp;#39;max_connections&amp;#39;;&lt;/code&gt;查看最大连接数&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;SHOW PROCESSLIST;&lt;/code&gt;查看当前连接状态，找出Sleep过多或慢查询&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;临时应急：&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;SET GLOBAL max_connections = 500;&lt;/code&gt;增大连接数上限&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;优化应用：检查代码是否未关闭数据库连接（使用连接池如Druid/HikariCP）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;调整MySQL参数：&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;wait_timeout&lt;/code&gt;和 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;interactive_timeout&lt;/code&gt;适当降低（如300秒）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;拆分数据库：读写分离或分库分表降低单库压力&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;升级服务器内存或使用更高性能的数据库实例&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 15 Jun 2026 10:16:19 +0800</pubDate></item><item><title>服务器SSL证书到期，网站提示不安全怎么办？</title><link>https://idc.00645.com/161.html</link><description>&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：浏览器访问网站显示&amp;quot;您的连接不是私密连接&amp;quot;，HTTPS证书过期。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;浏览器点击地址栏锁图标查看证书有效期&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;服务器上查看证书文件：&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;openssl x509 -in /path/to/cert.pem -text -noout | grep -A2 Validity&lt;/code&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;免费证书：使用Let&amp;#39;s Encrypt，通过Certbot自动续期（设置cron定时任务）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;付费证书：在证书提供商后台重新签发，下载新证书替换服务器上的旧文件&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;替换后重启Web服务（Nginx &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;nginx -s reload&lt;/code&gt;，Apache &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;systemctl restart httpd&lt;/code&gt;）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;设置证书到期前30天邮件/钉钉告警提醒&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 15 Jun 2026 10:16:07 +0800</pubDate></item><item><title>服务器被DDoS/CC攻击，网站无法正常访问怎么办？</title><link>https://idc.00645.com/160.html</link><description>&lt;div class=&quot;ybc-p&quot;&gt;以下是&lt;strong&gt;6个服务器相关常见问题及解决方案&lt;/strong&gt;，可直接用于网站内容更新、技术博客或帮助中心页面：&lt;/div&gt;&lt;hr/&gt;&lt;h2&gt;1. 服务器CPU使用率持续100%，如何排查与解决？&lt;/h2&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：服务器响应缓慢，远程连接卡顿，网站打开超时。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Windows按Ctrl+Shift+Esc打开任务管理器 → 性能页查看CPU占用进程&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Linux执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;top&lt;/code&gt;或 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;htop&lt;/code&gt;查看CPU消耗最高的进程PID&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;记录异常进程名，检查是否为挖矿木马、CC攻击或程序死循环&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;若是恶意进程，kill进程后删除对应文件并修补漏洞&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;若是正常业务高峰，考虑升级CPU或增加服务器节点负载均衡&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;配置进程监控告警（如Zabbix/Nagios），设置CPU超90%自动通知&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr/&gt;&lt;h2&gt;2. 服务器磁盘空间不足，网站无法写入文件怎么办？&lt;/h2&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：网站上传图片失败、数据库写入报错、日志无法生成。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Windows打开此电脑查看各分区剩余空间&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Linux执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;df -h&lt;/code&gt;查看磁盘使用率，&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;du -sh /* | sort -rh&lt;/code&gt;找出大目录&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;清理临时文件：Windows &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;%temp%&lt;/code&gt;目录，Linux &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;/tmp&lt;/code&gt;目录&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;设置日志轮转：Windows事件查看器调整日志大小上限，Linux配置logrotate&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;扩展磁盘：云服务器在控制台扩容后挂载；物理机加装硬盘或迁移大文件到NAS&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;迁移非核心数据（备份、旧日志）到对象存储或廉价存储&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr/&gt;&lt;h2&gt;3. 服务器内存占用过高，网站频繁崩溃怎么办？&lt;/h2&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：网站间歇性无法访问，数据库连接失败，服务器自动重启。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Windows任务管理器 → 性能 → 内存，查看已用/可用&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Linux执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;free -m&lt;/code&gt;查看内存总量与使用量，&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;ps aux --sort=-%mem&lt;/code&gt;列出内存占用Top进程&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;检查是否有内存泄漏的程序（如PHP-FPM未释放、Java堆溢出），重启对应服务观察是否改善&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;调整应用内存限制：PHP &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;memory_limit&lt;/code&gt;、MySQL &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;innodb_buffer_pool_size&lt;/code&gt;、Java &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;-Xmx&lt;/code&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;增加SWAP分区作为应急（不治本，仅临时缓解）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;长期方案：升级内存或改用内存更高效的架构&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr/&gt;&lt;h2&gt;4. 服务器被DDoS/CC攻击，网站无法正常访问怎么办？&lt;/h2&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：网站响应极慢或完全打不开，服务器带宽跑满，CPU/连接数暴增。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;登录服务器执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;netstat -an | grep :80 | wc -l&lt;/code&gt;查看连接数是否异常&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;查看访问日志（Apache/Nginx access log），检查是否大量相同IP或请求单一URL&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;临时措施：防火墙封禁攻击IP（&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;iptables&lt;/code&gt;或 Windows防火墙），启用CC防护模块&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;接入高防IP/CDN：将DNS解析切换到高防节点，过滤恶意流量&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;开启WAF（Web应用防火墙）：拦截SQL注入、CC攻击等&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;联系机房或云服务商开启流量清洗或黑洞牵引&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 15 Jun 2026 10:15:53 +0800</pubDate></item><item><title>服务器内存占用过高，网站频繁崩溃怎么办？</title><link>https://idc.00645.com/159.html</link><description>&lt;div class=&quot;ybc-p&quot;&gt;以下是&lt;strong&gt;6个服务器相关常见问题及解决方案&lt;/strong&gt;，可直接用于网站内容更新、技术博客或帮助中心页面：&lt;/div&gt;&lt;hr/&gt;&lt;h2&gt;1. 服务器CPU使用率持续100%，如何排查与解决？&lt;/h2&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：服务器响应缓慢，远程连接卡顿，网站打开超时。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Windows按Ctrl+Shift+Esc打开任务管理器 → 性能页查看CPU占用进程&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Linux执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;top&lt;/code&gt;或 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;htop&lt;/code&gt;查看CPU消耗最高的进程PID&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;记录异常进程名，检查是否为挖矿木马、CC攻击或程序死循环&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;若是恶意进程，kill进程后删除对应文件并修补漏洞&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;若是正常业务高峰，考虑升级CPU或增加服务器节点负载均衡&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;配置进程监控告警（如Zabbix/Nagios），设置CPU超90%自动通知&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr/&gt;&lt;h2&gt;2. 服务器磁盘空间不足，网站无法写入文件怎么办？&lt;/h2&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：网站上传图片失败、数据库写入报错、日志无法生成。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Windows打开此电脑查看各分区剩余空间&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Linux执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;df -h&lt;/code&gt;查看磁盘使用率，&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;du -sh /* | sort -rh&lt;/code&gt;找出大目录&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;清理临时文件：Windows &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;%temp%&lt;/code&gt;目录，Linux &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;/tmp&lt;/code&gt;目录&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;设置日志轮转：Windows事件查看器调整日志大小上限，Linux配置logrotate&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;扩展磁盘：云服务器在控制台扩容后挂载；物理机加装硬盘或迁移大文件到NAS&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;迁移非核心数据（备份、旧日志）到对象存储或廉价存储&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr/&gt;&lt;h2&gt;3. 服务器内存占用过高，网站频繁崩溃怎么办？&lt;/h2&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：网站间歇性无法访问，数据库连接失败，服务器自动重启。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Windows任务管理器 → 性能 → 内存，查看已用/可用&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Linux执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;free -m&lt;/code&gt;查看内存总量与使用量，&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;ps aux --sort=-%mem&lt;/code&gt;列出内存占用Top进程&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;检查是否有内存泄漏的程序（如PHP-FPM未释放、Java堆溢出），重启对应服务观察是否改善&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;调整应用内存限制：PHP &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;memory_limit&lt;/code&gt;、MySQL &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;innodb_buffer_pool_size&lt;/code&gt;、Java &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;-Xmx&lt;/code&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;增加SWAP分区作为应急（不治本，仅临时缓解）&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;长期方案：升级内存或改用内存更高效的架构&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 15 Jun 2026 10:15:41 +0800</pubDate></item><item><title>服务器磁盘空间不足，网站无法写入文件怎么办？</title><link>https://idc.00645.com/158.html</link><description>&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：网站上传图片失败、数据库写入报错、日志无法生成。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Windows打开此电脑查看各分区剩余空间&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Linux执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;df -h&lt;/code&gt;查看磁盘使用率，&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;du -sh /* | sort -rh&lt;/code&gt;找出大目录&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;清理临时文件：Windows &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;%temp%&lt;/code&gt;目录，Linux &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;/tmp&lt;/code&gt;目录&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;设置日志轮转：Windows事件查看器调整日志大小上限，Linux配置logrotate&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;扩展磁盘：云服务器在控制台扩容后挂载；物理机加装硬盘或迁移大文件到NAS&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;迁移非核心数据（备份、旧日志）到对象存储或廉价存储&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 15 Jun 2026 10:15:28 +0800</pubDate></item><item><title>服务器CPU使用率持续100%，如何排查与解决？</title><link>https://idc.00645.com/157.html</link><description>&lt;div class=&quot;ybc-p&quot;&gt;以下是&lt;strong&gt;6个服务器相关常见问题及解决方案&lt;/strong&gt;，可直接用于网站内容更新、技术博客或帮助中心页面：&lt;/div&gt;&lt;hr/&gt;&lt;h2&gt;1. 服务器CPU使用率持续100%，如何排查与解决？&lt;/h2&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;问题表现&lt;/strong&gt;：服务器响应缓慢，远程连接卡顿，网站打开超时。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;排查步骤&lt;/strong&gt;：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Windows按Ctrl+Shift+Esc打开任务管理器 → 性能页查看CPU占用进程&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;Linux执行 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;top&lt;/code&gt;或 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;htop&lt;/code&gt;查看CPU消耗最高的进程PID&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;记录异常进程名，检查是否为挖矿木马、CC攻击或程序死循环&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;解决方案&lt;/strong&gt;：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;若是恶意进程，kill进程后删除对应文件并修补漏洞&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;若是正常业务高峰，考虑升级CPU或增加服务器节点负载均衡&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;配置进程监控告警（如Zabbix/Nagios），设置CPU超90%自动通知&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 15 Jun 2026 10:15:14 +0800</pubDate></item><item><title>托管服务器与租用服务器硬件故障处理有什么区别？</title><link>https://idc.00645.com/156.html</link><description>&lt;ul class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;租用服务器&lt;/strong&gt;：质保期内（通常1年，可续保）由IDC免费检测并更换同档备件，一般承诺2~4工作小时响应。&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;托管服务器&lt;/strong&gt;：IDC协助定位故障并通知客户，客户寄配件到机房由工程师免费或低偿更换；也可委托IDC代购配件（先付款）。&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 10 Jun 2026 09:31:50 +0800</pubDate></item></channel></rss>