{"id":111020,"date":"2026-09-30T06:24:46","date_gmt":"2026-09-29T22:24:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/111020.html"},"modified":"2026-09-30T06:24:46","modified_gmt":"2026-09-29T22:24:46","slug":"apt-get-%e8%a1%a5%e7%9a%84%e5%ba%93%ef%bc%8c%e4%b8%80%e6%ac%a1%e9%87%8d%e5%bb%ba%e5%85%a8%e6%b2%a1%e4%ba%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/111020.html","title":{"rendered":"apt-get \u8865\u7684\u5e93\uff0c\u4e00\u6b21\u91cd\u5efa\u5168\u6ca1\u4e86"},"content":{"rendered":"<p>\u6211\u628a\u4e00\u53f0 PHP \u5bb9\u5668\u7684 php -m \u8c03\u5230\u96f6\u544a\u8b66&#xff0c;\u56db\u4e2a\u6269\u5c55\u5168\u90fd\u80fd\u52a0\u8f7d\u3002\u540e\u6765\u5728\u9762\u677f\u91cc\u6539\u4e86\u4e00\u6b21\u73af\u5883\u8bbe\u7f6e&#xff0c;\u56db\u4e2a\u6269\u5c55\u5168\u6302\u56de\u53bb\u4e86\u3002<\/p>\n<p>\u8865\u7684\u4e1c\u897f\u6ca1\u8fdb\u955c\u50cf\u3002\u5b83\u4e00\u76f4\u5728\u5bb9\u5668\u7684\u53ef\u5199\u5c42\u91cc\u3002<\/p>\n<p>\u8fd9\u53f0\u662f 1Panel v2 \u8d77\u7684\u73af\u5883&#xff0c;PHP 8.4.25&#xff0c;\u955c\u50cf 1panel-php-fpm:8.4.25&#xff0c;\u57fa\u7840\u955c\u50cf Debian 13&#xff08;trixie&#xff09;&#xff0c;\u670d\u52a1\u5668 4 \u6838 8G\u3002\u4e8b\u60c5\u51fa\u5728 9 \u6708 16 \u53f7\u548c 17 \u53f7\u8fd9\u4e24\u5929&#xff0c;\u4e0b\u9762\u7684\u56de\u663e\u6570\u503c\u90fd\u539f\u6837\u4fdd\u7559\u3002<\/p>\n<p>\u5bb9\u5668\u540d\u6211\u5728\u4e0b\u9762\u7edf\u4e00\u7528\u53d8\u91cf&#xff0c;\u4f60\u5728 1Panel \u91cc\u8d77\u7684\u540d\u5b57\u662f\u4ec0\u4e48\u5c31\u586b\u4ec0\u4e48\u3002<\/p>\n<p><span class=\"token comment\"># \u6362\u6210\u4f60\u5728 1Panel \u91cc\u7ed9 PHP \u8fd0\u884c\u73af\u5883\u8d77\u7684\u540d\u5b57&#xff08;&#061; \u5bb9\u5668\u540d&#xff09;<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">PHP_CTN<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;php84&#034;<\/span><\/p>\n<p>\u540c\u6837\u662f\u5f80\u5bb9\u5668\u91cc\u52a8\u624b&#xff0c;\u7ed3\u679c\u5b8c\u5168\u4e0d\u4e00\u6837\u3002<\/p>\n<p>docker restart &#034;$PHP_CTN&#034; \u53ea\u91cd\u542f\u8fdb\u7a0b&#xff0c;\u5bb9\u5668\u6587\u4ef6\u7cfb\u7edf\u539f\u5c01\u4e0d\u52a8&#xff0c;\u4f60 apt-get \u8865\u7684\u5e93\u548c\u547d\u4ee4\u90fd\u8fd8\u5728&#xff0c;\u4e0d\u7528\u7ba1\u5b83\u3002<\/p>\n<p>\u5bb9\u5668\u91cd\u5efa\u5c31\u5168\u4e22\u4e86\u3002docker compose up\u3001\u5728 1Panel \u91cc\u6539\u73af\u5883\u8bbe\u7f6e\u3001\u5347\u7ea7\u955c\u50cf&#xff0c;\u8fd9\u4e09\u79cd\u90fd\u7b97\u91cd\u5efa\u3002<\/p>\n<p>#mermaid-svg-1XCKDoSSDK4ZpZoo{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-1XCKDoSSDK4ZpZoo .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-1XCKDoSSDK4ZpZoo .error-icon{fill:#552222;}#mermaid-svg-1XCKDoSSDK4ZpZoo .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-1XCKDoSSDK4ZpZoo .marker{fill:#333333;stroke:#333333;}#mermaid-svg-1XCKDoSSDK4ZpZoo .marker.cross{stroke:#333333;}#mermaid-svg-1XCKDoSSDK4ZpZoo svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-1XCKDoSSDK4ZpZoo p{margin:0;}#mermaid-svg-1XCKDoSSDK4ZpZoo .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-1XCKDoSSDK4ZpZoo .cluster-label text{fill:#333;}#mermaid-svg-1XCKDoSSDK4ZpZoo .cluster-label span{color:#333;}#mermaid-svg-1XCKDoSSDK4ZpZoo .cluster-label span p{background-color:transparent;}#mermaid-svg-1XCKDoSSDK4ZpZoo .label text,#mermaid-svg-1XCKDoSSDK4ZpZoo span{fill:#333;color:#333;}#mermaid-svg-1XCKDoSSDK4ZpZoo .node rect,#mermaid-svg-1XCKDoSSDK4ZpZoo .node circle,#mermaid-svg-1XCKDoSSDK4ZpZoo .node ellipse,#mermaid-svg-1XCKDoSSDK4ZpZoo .node polygon,#mermaid-svg-1XCKDoSSDK4ZpZoo .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-1XCKDoSSDK4ZpZoo .rough-node .label text,#mermaid-svg-1XCKDoSSDK4ZpZoo .node .label text,#mermaid-svg-1XCKDoSSDK4ZpZoo .image-shape .label,#mermaid-svg-1XCKDoSSDK4ZpZoo .icon-shape .label{text-anchor:middle;}#mermaid-svg-1XCKDoSSDK4ZpZoo .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-1XCKDoSSDK4ZpZoo .rough-node .label,#mermaid-svg-1XCKDoSSDK4ZpZoo .node .label,#mermaid-svg-1XCKDoSSDK4ZpZoo .image-shape .label,#mermaid-svg-1XCKDoSSDK4ZpZoo .icon-shape .label{text-align:center;}#mermaid-svg-1XCKDoSSDK4ZpZoo .node.clickable{cursor:pointer;}#mermaid-svg-1XCKDoSSDK4ZpZoo .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-1XCKDoSSDK4ZpZoo .arrowheadPath{fill:#333333;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-1XCKDoSSDK4ZpZoo .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-1XCKDoSSDK4ZpZoo .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-1XCKDoSSDK4ZpZoo .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-1XCKDoSSDK4ZpZoo .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-1XCKDoSSDK4ZpZoo .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-1XCKDoSSDK4ZpZoo .cluster text{fill:#333;}#mermaid-svg-1XCKDoSSDK4ZpZoo .cluster span{color:#333;}#mermaid-svg-1XCKDoSSDK4ZpZoo div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-1XCKDoSSDK4ZpZoo .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-1XCKDoSSDK4ZpZoo rect.text{fill:none;stroke-width:0;}#mermaid-svg-1XCKDoSSDK4ZpZoo .icon-shape,#mermaid-svg-1XCKDoSSDK4ZpZoo .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-1XCKDoSSDK4ZpZoo .icon-shape p,#mermaid-svg-1XCKDoSSDK4ZpZoo .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-1XCKDoSSDK4ZpZoo .icon-shape .label rect,#mermaid-svg-1XCKDoSSDK4ZpZoo .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-1XCKDoSSDK4ZpZoo .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-1XCKDoSSDK4ZpZoo .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-1XCKDoSSDK4ZpZoo :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>docker restart<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5bb9\u5668\u91cd\u5efa<\/p>\n<p><\/span><span style=\"color:#1f2328 !important\" class=\"nodeLabel\"><\/p>\n<p>\u955c\u50cf\u5c42\u53ea\u8bfb&#xff0c;\u6765\u81ea 1panel-php-fpm:8.4.25<\/p>\n<p><\/span><span style=\"color:#1f2328 !important\" class=\"nodeLabel\"><\/p>\n<p>\u5bb9\u5668\u53ef\u5199\u5c42\u4f60 apt-get \u8865\u7684\u5e93\u90fd\u5199\u5728\u8fd9\u91cc<\/p>\n<p><\/span><span style=\"color:#1f2328 !important\" class=\"nodeLabel\"><\/p>\n<p>\u6267\u884c\u4e86\u4ec0\u4e48\u64cd\u4f5c&#xff1f;<\/p>\n<p><\/span><span style=\"color:#1a7f37 !important\" class=\"nodeLabel\"><\/p>\n<p>\u5bb9\u5668\u6587\u4ef6\u7cfb\u7edf\u4fdd\u7559\u8865\u88c5\u9879\u90fd\u8fd8\u5728<\/p>\n<p><\/span><span style=\"color:#d1242f !important\" class=\"nodeLabel\"><\/p>\n<p>\u53ef\u5199\u5c42\u88ab\u4e22\u5f03\u8865\u88c5\u9879\u5168\u90e8\u6d88\u5931<\/p>\n<p><\/span><\/p>\n<p>\u8fd9\u6761\u6211\u5f53\u65f6\u5224\u65ad\u9519\u8fc7\u4e00\u6b21\u3002\u6211\u4ee5\u4e3a unzip \u4e0d\u4f9d\u8d56\u4efb\u4f55\u5e93&#xff0c;\u91cd\u5efa\u4e4b\u540e\u5e94\u8be5\u8fd8\u5728\u3002\u9519\u4e86\u3002unzip \u540c\u6837\u662f apt-get \u88c5\u7684&#xff0c;\u8ddf\u90a3\u4e9b\u5e93\u4e00\u6837\u6d3b\u5728\u5bb9\u5668\u7684\u53ef\u5199\u5c42\u91cc\u3002\u51b3\u5b9a\u53bb\u7559\u7684\u662f\u4f60\u6267\u884c\u4e86\u54ea\u79cd\u64cd\u4f5c&#xff0c;\u8ddf\u8fd9\u4e2a\u5305\u6709\u6ca1\u6709\u4f9d\u8d56\u94fe\u6ca1\u5173\u7cfb\u3002<\/p>\n<p>\u4e24\u5c42\u6587\u4ef6\u7cfb\u7edf<\/p>\n<p>Docker \u5bb9\u5668 &#061; \u955c\u50cf\u5c42&#xff08;\u53ea\u8bfb&#xff09;&#043; \u5bb9\u5668\u53ef\u5199\u5c42\u3002<\/p>\n<p>\u955c\u50cf\u5c42\u7684\u5185\u5bb9\u6765\u81ea docker pull \u62c9\u4e0b\u6765\u7684\u955c\u50cf&#xff0c;\u6240\u6709\u5bb9\u5668\u5171\u4eab&#xff0c;\u5bb9\u5668\u5185\u7684\u4efb\u4f55\u64cd\u4f5c\u90fd\u6539\u4e0d\u52a8\u5b83\u3002<\/p>\n<p>\u4f60\u5728\u5bb9\u5668\u91cc\u505a\u7684\u5199\u64cd\u4f5c&#xff0c;apt-get install\u3001\u6539\u6587\u4ef6\u3001\u5efa\u6587\u4ef6&#xff0c;\u5168\u90fd\u843d\u5728\u53ef\u5199\u5c42\u3002\u8fd9\u4e00\u5c42\u662f\u8fd9\u4e2a\u5bb9\u5668\u5b9e\u4f8b\u79c1\u6709\u7684\u3002<\/p>\n<p>docker restart \u53ea\u662f\u628a\u5bb9\u5668\u8fdb\u7a0b\u91cd\u542f\u4e00\u904d&#xff0c;\u53ef\u5199\u5c42\u4e0d\u52a8&#xff0c;\u8865\u88c5\u9879\u5c31\u8fd8\u5728\u3002<\/p>\n<p>\u91cd\u5efa\u7684\u672c\u8d28\u662f\u9500\u6bc1\u65e7\u5bb9\u5668\u5b9e\u4f8b\u3001\u7528\u540c\u4e00\u4e2a\u955c\u50cf\u91cd\u65b0\u5efa\u4e00\u4e2a\u65b0\u5b9e\u4f8b\u3002\u65b0\u5b9e\u4f8b\u7684\u53ef\u5199\u5c42\u662f\u5168\u65b0\u7684\u7a7a\u767d\u5c42&#xff0c;\u65e7\u7684\u8fde\u5e26\u91cc\u9762\u6240\u6709\u8865\u88c5\u5185\u5bb9\u4e00\u8d77\u88ab\u4e22\u5f03\u3002<\/p>\n<p>\u4f60\u8865\u7684\u4e1c\u897f\u4ece\u5934\u5230\u5c3e\u5c31\u6ca1\u8fdb\u8fc7\u955c\u50cf&#xff0c;\u53ea\u5728\u67d0\u4e00\u4ee3\u5bb9\u5668\u7684\u53ef\u5199\u5c42\u91cc\u5f85\u7740\u3002<\/p>\n<p>\u7b2c\u4e00\u6b21\u8865\u5e93\u65f6&#xff0c;\u6211\u662f\u7167\u7740\u62a5\u9519\u4fe1\u606f\u4e00\u4e2a\u4e2a\u8bd5\u5305\u540d\u7684\u3002\u91cd\u653e\u7684\u65f6\u5019\u6362\u4e86\u4e2a\u601d\u8def&#xff1a;\u4e0d\u8bb0\u5f53\u65f6\u6572\u4e86\u54ea\u6761\u547d\u4ee4&#xff0c;\u8bb0\u600e\u4e48\u91cd\u65b0\u63a8\u51fa\u8fd9\u6761\u547d\u4ee4\u3002<\/p>\n<p>\u5305\u540d\u4f1a\u53d8&#xff0c;\u540e\u9762\u6709\u771f\u5b9e\u6848\u4f8b\u3002\u5b58\u547d\u4ee4\u8fdf\u65e9\u8fc7\u671f&#xff0c;\u5b58\u65b9\u6cd5\u4e0d\u4f1a\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\u662f\u95ee PHP \u81ea\u5df1\u6269\u5c55\u76ee\u5f55\u5728\u54ea\u3002\u786c\u7f16\u7801\u8def\u5f84\u662f\u4e2a\u5751&#xff0c;\u76ee\u5f55\u540d\u91cc\u5e26\u7740 PHP \u7684 API \u7248\u672c\u53f7&#xff1a;<\/p>\n<p>\/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20240924\/<br \/>\n                                          ^^^^^^^^^^ \u6362 PHP \u7248\u672c\u5c31\u53d8<\/p>\n<p>\u6362\u4e2a\u5c0f\u7248\u672c&#xff0c;20240924 \u8fd9\u6bb5\u5c31\u53d8\u4e86\u3002<\/p>\n<p><span class=\"token comment\"># \u672c\u673a\u9a8c\u8bc1&#xff1a;\u8fd9\u6761\u80fd\u76f4\u63a5\u62ff\u5230\u6269\u5c55\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span> php <span class=\"token parameter variable\">-r<\/span> <span class=\"token string\">&#039;echo ini_get(&#034;extension_dir&#034;), &#034;\\\\n&#034;;&#039;<\/span><\/p>\n<p>\u7136\u540e\u628a\u904d\u5386\u6269\u5c55\u76ee\u5f55\u3001\u9010\u4e2a ldd\u3001\u53ea\u7559 not found \u6253\u5305\u6210\u4e00\u6761&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u904d\u5386\u6240\u6709\u6269\u5c55 .so&#xff0c;\u627e\u51fa\u4f9d\u8d56\u7f3a\u5931\u7684\u90a3\u4e9b<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span> <span class=\"token function\">bash<\/span> <span class=\"token parameter variable\">-c<\/span> <span class=\"token string\">&#039;<br \/>\n  EXT_DIR&#061;&#034;$(php -r &#034;echo ini_get(\\\\&#034;extension_dir\\\\&#034;);&#034;)&#034;<br \/>\n  for so in &#034;$EXT_DIR&#034;\/*.so; do<br \/>\n    [ -e &#034;$so&#034; ] || continue<br \/>\n    miss&#061;$(ldd &#034;$so&#034; 2&gt;\/dev\/null | grep &#034;not found&#034;)<br \/>\n    if [ -n &#034;$miss&#034; ]; then<br \/>\n      echo &#034;&#8212; $(basename &#034;$so&#034;) &#8212;&#034;<br \/>\n      echo &#034;$miss&#034;<br \/>\n    fi<br \/>\n  done&#039;<\/span><\/p>\n<p>\u4e09\u4e2a\u7ec6\u8282&#xff0c;\u90fd\u662f\u8e29\u8fc7\u624d\u77e5\u9053\u7684\u3002<\/p>\n<p>[ -e &#034;$so&#034; ] || continue&#xff1a;\u901a\u914d\u7b26\u4e00\u4e2a\u90fd\u6ca1\u5339\u914d\u5230\u7684\u65f6\u5019&#xff0c;$so \u4f1a\u662f\u5b57\u9762\u91cf *.so&#xff0c;\u8fd9\u53e5\u628a\u5b83\u6321\u6389\u3002<\/p>\n<p>2&gt;\/dev\/null&#xff1a;\u6709\u4e9b .so \u4e0d\u662f\u52a8\u6001\u5e93&#xff0c;ldd \u4f1a\u5f80 stderr \u5237 not a dynamic executable\u3002<\/p>\n<p>ldd \u53ea\u56de\u7b54\u7f3a\u4e0d\u7f3a&#xff0c;\u4e0d\u56de\u7b54\u8be5\u4e0d\u8be5\u88c5\u3002\u7f3a\u5e93\u7684\u6269\u5c55\u4e0d\u4ee3\u8868\u4f60\u90fd\u9700\u8981&#xff0c;\u8865\u4e4b\u524d\u5148\u786e\u8ba4\u54ea\u4e9b\u6269\u5c55\u662f\u9879\u76ee\u771f\u5728\u7528\u7684\u3002<\/p>\n<p>\u8fd9\u5957\u904d\u5386\u52a0\u8fc7\u6ee4\u7684\u811a\u672c\u903b\u8f91&#xff0c;\u6211\u5728\u540c\u7c7b\u73af\u5883\u4e0a\u7528\u66ff\u8eab\u51fd\u6570\u505a\u8fc7 dry-run&#xff0c;\u628a ldd \u6362\u6210\u6a21\u62df\u8f93\u51fa&#xff0c;\u904d\u5386\u3001continue \u4fdd\u62a4\u3001basename\u3001\u8ba1\u6570\u5168\u90e8\u7b26\u5408\u9884\u671f\u3002\u7a3f\u5b50\u91cc\u6807\u300c\u672c\u673a\u9a8c\u8bc1\u300d\u7684\u5c31\u662f\u8fd9\u4e00\u7c7b&#xff0c;\u5b83\u9a8c\u7684\u662f\u811a\u672c\u903b\u8f91&#xff0c;\u4e0d\u662f\u6211\u90a3\u53f0\u673a\u5668\u4e0a\u7684\u7ed3\u679c\u3002<\/p>\n<p>\u8865\u5e93\u4e4b\u524d&#xff0c;\u8fd9\u6761\u547d\u4ee4\u5f53\u65f6\u8fd8\u662f\u786c\u7f16\u7801\u8def\u5f84\u7684\u7248\u672c&#xff0c;\u8dd1\u51fa\u6765\u7684\u662f&#xff1a;<\/p>\n<p>&#8212; gd.so &#8212;<br \/>\nlibpng16.so.16 &#061;&gt; not found<br \/>\nlibavif.so.16 &#061;&gt; not found<br \/>\nlibwebp.so.7 &#061;&gt; not found<br \/>\nlibjpeg.so.62 &#061;&gt; not found<br \/>\nlibXpm.so.4 &#061;&gt; not found<br \/>\nlibfreetype.so.6 &#061;&gt; not found<br \/>\n&#8212; intl.so &#8212;<br \/>\nlibicuio.so.76 &#061;&gt; not found<br \/>\nlibicui18n.so.76 &#061;&gt; not found<br \/>\nlibicuuc.so.76 &#061;&gt; not found<br \/>\n&#8212; zip.so &#8212;<br \/>\nlibzip.so.5 &#061;&gt; not found<br \/>\n&#8212; memcached.so &#8212;<br \/>\nlibmemcached.so.11 &#061;&gt; not found<\/p>\n<p>\u56db\u4e2a\u6269\u5c55&#xff0c;\u4e00\u5171\u7f3a 11 \u4e2a\u5171\u4eab\u5e93&#xff0c;9 \u6708 16 \u53f7\u5b9e\u6d4b\u3002<\/p>\n<p>\u8865\u5b8c\u518d\u8dd1\u8fd9\u6761\u590d\u9a8c&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u590d\u9a8c&#xff1a;\u6709\u544a\u8b66\u5c31\u6709\u8f93\u51fa&#xff0c;\u7a7a\u8f93\u51fa &#061; \u5168\u90e8\u52a0\u8f7d\u6210\u529f<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span> php <span class=\"token parameter variable\">-m<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#039;Unable to load&#039;<\/span><\/p>\n<p>9 \u6708 17 \u53f7\u5b9e\u6d4b&#xff0c;\u7a7a\u8f93\u51fa&#xff0c;\u96f6\u544a\u8b66\u3002<\/p>\n<p>\u91cd\u5efa\u4e4b\u540e\u600e\u4e48\u91cd\u653e<\/p>\n<p>\u6309\u8fd9\u4e2a\u987a\u5e8f\u8d70\u4e00\u904d&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u2460 \u5148\u770b\u4e22\u6ca1\u4e22 \u2014\u2014 \u6709\u8f93\u51fa\u8bf4\u660e\u6269\u5c55\u53c8\u6302\u4e86<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span> php <span class=\"token parameter variable\">-m<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#039;Unable to load&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u2461 \u53cd\u67e5\u73b0\u5728\u7f3a\u54ea\u4e9b\u5e93<\/span><\/p>\n<p><span class=\"token comment\"># \u2462 \u8865\u5e93<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span> <span class=\"token function\">bash<\/span> <span class=\"token parameter variable\">-lc<\/span> <span class=\"token string\">&#039;<br \/>\n  apt-get update -qq<br \/>\n  apt-get install -y &#8211;no-install-recommends unzip<br \/>\n  # \u5305\u540d\u9010\u4e2a\u8bd5&#xff1a;Debian \u7248\u672c\u8fc7\u6e21\u671f\u540c\u540d\u5305\u4f1a\u6709\u591a\u4e2a\u5019\u9009<br \/>\n  for p in libzip5 libzip4; do<br \/>\n    apt-get install -y &#8211;no-install-recommends &#034;$p&#034; 2&gt;\/dev\/null &amp;&amp; { echo &#034;libzip via $p OK&#034;; break; }<br \/>\n  done<br \/>\n  apt-get install -y &#8211;no-install-recommends libjpeg62-turbo libwebp7 libfreetype6 libxpm4 libavif16<br \/>\n  for p in libpng16-16t64 libpng16-16; do<br \/>\n    apt-get install -y &#8211;no-install-recommends &#034;$p&#034; 2&gt;\/dev\/null &amp;&amp; { echo &#034;libpng via $p OK&#034;; break; }<br \/>\n  done<br \/>\n  apt-get install -y &#8211;no-install-recommends libicu76<br \/>\n  # memcached \u7684\u5e93&#xff1b;\u540c\u6837\u662f t64 \u8fc7\u6e21\u6539\u540d&#xff0c;\u5305\u540d\u522b\u6309\u89c4\u5f8b\u786c\u63a8<br \/>\n  for p in libmemcached11t64 libmemcached11; do<br \/>\n    apt-get install -y &#8211;no-install-recommends &#034;$p&#034; 2&gt;\/dev\/null &amp;&amp; { echo &#034;libmemcached via $p OK&#034;; break; }<br \/>\n  done<br \/>\n&#039;<\/span><br \/>\n<span class=\"token function\">docker<\/span> restart <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u2463 \u590d\u9a8c<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span> php <span class=\"token parameter variable\">-m<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#039;Unable to load&#039;<\/span><\/p>\n<p>\u6709\u4e00\u4ef6\u4e8b\u5f97\u8bf4\u6e05\u695a\u3002\u6211\u5728\u5bb9\u5668\u91cc\u8865\u5e93\u7684\u65f6\u5019\u6ca1\u628a\u5b9e\u9645\u6267\u884c\u7684\u547d\u4ee4\u5b58\u6863&#xff0c;\u4e8b\u540e\u60f3\u91cd\u653e\u624d\u53d1\u73b0\u5305\u540d\u8bb0\u4e0d\u5168\u4e86\u3002\u4e0a\u9762\u8fd9\u6bb5\u662f\u6211\u4e8b\u540e\u91cd\u5efa\u7684\u81ea\u9002\u914d\u7248\u672c&#xff0c;\u7528 for \u5faa\u73af\u9010\u4e2a\u8bd5\u5019\u9009\u5305\u540d&#xff0c;\u5bb9\u5fcd\u5305\u540d\u4e0d\u786e\u5b9a\u3002\u5b83\u4e0d\u7b49\u4e8e\u5f53\u521d\u90a3\u6761\u3002<\/p>\n<p>\u66f4\u6253\u8138\u7684\u662f&#xff0c;\u8fd9\u4e2a\u81ea\u9002\u914d\u7248\u672c\u7b2c\u4e00\u6b21\u5199\u51fa\u6765\u65f6&#xff0c;\u81ea\u5df1\u5c31\u6f0f\u4e86\u4e00\u4e2a\u6269\u5c55&#xff1a;\u56db\u4e2a\u6269\u5c55\u91cc memcached \u90a3\u6761\u6ca1\u5199\u8fdb\u53bb&#xff0c;\u540e\u6765\u62ff\u5b9e\u9645\u56de\u6267\u9010\u9879\u6838\u5bf9\u624d\u53d1\u73b0\u3002<\/p>\n<p>\u6f0f\u4e00\u9879\u7684\u540e\u679c\u8ddf\u5168\u6ca1\u88c5\u4e00\u6837&#xff0c;\u90a3\u4e2a\u6269\u5c55\u7167\u6837 Unable to load\u3002\u53ea\u662f\u544a\u8b66\u4ece 4 \u6761\u53d8\u6210 1 \u6761&#xff0c;\u5f88\u5bb9\u6613\u88ab\u5f53\u6210\u5dee\u4e0d\u591a\u597d\u4e86\u3002<\/p>\n<p>\u628a\u5b83\u9a8c\u6536\u5e72\u51c0\u9760\u7684\u662f\u904d\u5386\u6240\u6709\u6269\u5c55\u9010\u4e2a ldd&#xff0c;\u4eba\u773c\u4f1a\u6f0f\u3002\u6240\u4ee5\u8fd9\u4e00\u8bfe\u6bd4\u300c\u8bb0\u5f97\u5b58\u6863\u300d\u66f4\u503c\u94b1&#xff1a;\u5b58\u4e0b\u6765\u7684\u6e05\u5355\u4f1a\u5199\u9519&#xff0c;\u80fd\u81ea\u52a8\u9a8c\u6536\u7684\u65b9\u6cd5\u4e0d\u4f1a\u3002<\/p>\n<p>\u987a\u4fbf\u8bf4\u4e00\u53e5&#xff0c;unzip \u8fd9\u4e2a\u5305\u540d\u662f\u786e\u5b9a\u7684&#xff0c;\u5b9e\u6d4b\u88c5\u7684\u662f unzip 6.0-29&#043;deb13u1&#xff0c;\u6ca1\u6709\u4f9d\u8d56\u94fe&#xff0c;\u662f\u6e05\u5355\u91cc\u6700\u7a33\u7684\u4e00\u6761\u3002\u6240\u4ee5 zip \u6269\u5c55\u8eba\u7740\u7684\u65f6\u5019&#xff0c;unzip \u547d\u4ee4\u5f80\u5f80\u662f\u4f60\u552f\u4e00\u5269\u4e0b\u7684\u89e3\u5305\u901a\u9053\u3002<\/p>\n<p>Debian \u6b63\u5728\u505a 64 \u4f4d time_t \u8fc7\u6e21&#xff08;t64&#xff09;&#xff0c;\u4e00\u6279\u5305\u6539\u4e86\u540d\u3002<\/p>\n<p>libpng16.so.16 \u8fd9\u4e2a\u5e93&#xff0c;\u5305\u540d\u4ece libpng16-16 \u53d8\u6210\u4e86 libpng16-16t64\u3002\u4f60\u7684\u8865\u5e93\u547d\u4ee4\u8981\u662f\u5199\u6b7b\u4e86\u65e7\u540d&#xff0c;\u5728\u65b0\u7cfb\u7edf\u4e0a\u5c31\u662f E: Unable to locate package\u3002<\/p>\n<p>\u540c\u4e00\u4e2a\u5751\u6211\u8e29\u4e86\u4e24\u6b21\u3002libmemcached.so.11 \u5bf9\u5e94\u7684\u5305&#xff0c;\u6211\u6309 Debian \u7684\u547d\u540d\u89c4\u5f8b&#xff08;lib&lt;name&gt;&lt;so \u4e3b\u7248\u672c&gt;&#xff09;\u63a8\u6210\u4e86 libmemcached11&#xff0c;\u5230 Debian 13 \u4e0a\u4e00\u770b&#xff0c;\u5b9e\u9645\u53eb libmemcached11t64&#xff0c;\u53c8\u662f t64 \u6539\u540d\u3002\u6309\u89c4\u5f8b\u63a8\u65ad\u5305\u540d\u4e00\u6837\u4f1a\u9519\u3002<\/p>\n<p>\u6240\u4ee5\u4e0a\u9762\u90a3\u6bb5\u7528\u4e86 for p in libpng16-16t64 libpng16-16 \u9010\u8bd5\u7684\u5199\u6cd5\u3002\u540c\u6837\u7684\u5751\u8fd8\u6709 ICU \u5e93&#xff0c;libicu76 \u91cc\u7684 76 \u662f ICU \u7248\u672c\u53f7&#xff0c;\u8ddf\u7740\u7cfb\u7edf\u8d70\u3002<\/p>\n<p>\u91cd\u653e\u6e05\u5355\u5f97\u6709\u4eba\u5b58\u3001\u6709\u4eba\u627e\u3001\u6709\u4eba\u6267\u884c\u3002\u5b83\u5929\u7136\u9002\u5408\u653e\u8fdb\u9879\u76ee\u4ed3\u5e93&#xff0c;\u6bd4\u5982 scripts\/php-ext-replay.sh&#xff0c;\u524d\u63d0\u662f\u4f60\u771f\u7684\u5199\u4e86\u3001\u4e0b\u6b21\u771f\u7684\u60f3\u8d77\u6765\u3002<\/p>\n<p>\u91cd\u5efa\u4e4b\u540e\u6709\u4e00\u6bb5\u7a7a\u7a97\u671f<\/p>\n<p>\u4ece\u91cd\u5efa\u5b8c\u6210&#xff0c;\u5230\u4f60\u60f3\u8d77\u53bb\u91cd\u653e&#xff0c;\u4e2d\u95f4\u8fd9\u6bb5\u65f6\u95f4\u670d\u52a1\u662f\u5e26\u75c5\u8fd0\u884c\u7684\u3002\u6269\u5c55\u6ca1\u52a0\u8f7d&#xff0c;\u76f8\u5173\u529f\u80fd\u76f4\u63a5\u62a5\u9519\u3002\u91cd\u5efa\u8981\u662f\u53d1\u751f\u5728\u4f60\u6539\u5b8c\u522b\u7684\u914d\u7f6e\u987a\u624b\u505a\u4e86\u4e2a compose up \u7684\u65f6\u5019&#xff0c;\u8fd9\u4e2a\u7a97\u53e3\u53ef\u80fd\u4e00\u76f4\u6301\u7eed\u5230\u4f60\u4e0b\u6b21\u53d1\u73b0\u95ee\u9898\u3002<\/p>\n<p>\u4e0a\u9762\u4e09\u6761\u5751\u7684\u5171\u540c\u539f\u56e0\u53ea\u6709\u4e00\u4e2a&#xff1a;\u8865\u88c5\u6ca1\u8fdb\u955c\u50cf\u3002\u90a3\u5c31\u8ba9\u5b83\u8fdb\u955c\u50cf&#xff0c;\u57fa\u4e8e 1Panel \u7684 PHP \u955c\u50cf\u6784\u5efa\u81ea\u5df1\u7684\u955c\u50cf&#xff1a;<\/p>\n<p># Dockerfile \u2014\u2014 \u57fa\u4e8e 1Panel \u7684 PHP \u8fd0\u884c\u73af\u5883\u955c\u50cf&#xff0c;\u628a\u8865\u88c5\u56fa\u5316\u8fdb\u955c\u50cf\u5c42<br \/>\nFROM 1panel-php-fpm:8.4.25<\/p>\n<p># Debian 13&#xff08;trixie&#xff09;\u6e90\u5df2\u5c31\u7eea&#xff0c;\u4e00\u6b21\u6027\u8865\u5171\u4eab\u5e93 &#043; unzip<br \/>\n# \u6ce8\u610f&#xff1a;libpng \/ libmemcached \u5728 t64 \u8fc7\u6e21\u671f\u90fd\u6709\u4e24\u4e2a\u5019\u9009\u5305\u540d&#xff0c;\u5404\u7528\u4e00\u4e2a\u5faa\u73af\u9010\u4e2a\u8bd5<br \/>\n#       \u2014\u2014 \u4e24\u4e2a\u5faa\u73af\u4e0d\u80fd\u5408\u5e76&#xff1a;\u5408\u5e76\u540e\u524d\u8005\u4e00\u547d\u4e2d\u5c31 break&#xff0c;\u540e\u8005\u4f1a\u88ab\u6574\u4e2a\u6f0f\u6389<br \/>\nRUN set -eux; \\\\<br \/>\n    apt-get update -qq; \\\\<br \/>\n    apt-get install -y &#8211;no-install-recommends \\\\<br \/>\n        unzip \\\\<br \/>\n        libzip5 \\\\<br \/>\n        libjpeg62-turbo libwebp7 libfreetype6 libxpm4 libavif16 \\\\<br \/>\n        libicu76; \\\\<br \/>\n    for p in libpng16-16t64 libpng16-16; do \\\\<br \/>\n        apt-get install -y &#8211;no-install-recommends &#034;$p&#034; &amp;&amp; break; \\\\<br \/>\n    done; \\\\<br \/>\n    for p in libmemcached11t64 libmemcached11; do \\\\<br \/>\n        apt-get install -y &#8211;no-install-recommends &#034;$p&#034; &amp;&amp; break; \\\\<br \/>\n    done; \\\\<br \/>\n    apt-get clean; \\\\<br \/>\n    rm -rf \/var\/lib\/apt\/lists\/*<\/p>\n<p>\u5199\u8fd9\u4e2a Dockerfile \u65f6\u8e29\u5230\u4e00\u4e2a\u5751&#xff1a;\u6ce8\u91ca\u4e0d\u80fd\u5199\u5728\u7eed\u884c RUN \u7684\u4e2d\u95f4\u3002Docker \u89e3\u6790 \\\\ \u7eed\u884c\u65f6\u4f1a\u628a\u6ce8\u91ca\u884c\u6309\u666e\u901a\u5185\u5bb9\u5e76\u8fdb\u6765&#xff0c;\u6574\u6761\u6307\u4ee4\u88ab\u4ece\u6ce8\u91ca\u5904\u622a\u65ad&#xff0c;\u540e\u534a\u6bb5\u7684 for \u5faa\u73af\u548c apt-get clean \u5168\u4e22\u4e86\u3002\u6240\u4ee5\u4e0a\u9762\u628a\u6240\u6709\u6ce8\u91ca\u90fd\u632a\u5230\u4e86 RUN \u4e4b\u524d\u3002<\/p>\n<p>\u8fd9\u7c7b\u8bed\u6cd5\u9519\u8bef\u5728\u6784\u5efa\u65f6\u4e0d\u4e00\u5b9a\u62a5\u9519&#xff0c;\u53ea\u662f\u5c11\u88c5\u4e86\u51e0\u4e2a\u5305\u3002\u5efa\u8bae\u7528 hadolint \u4e4b\u7c7b\u7684\u5de5\u5177\u8fc7\u4e00\u904d\u3002<\/p>\n<p>\u6784\u5efa\u3001\u6253\u6807\u3001\u5728 1Panel \u91cc\u628a\u8fd9\u4e2a\u955c\u50cf\u6307\u8fc7\u53bb\u3002\u6b64\u540e\u518d\u600e\u4e48\u91cd\u5efa&#xff0c;\u8865\u88c5\u9879\u90fd\u968f\u955c\u50cf\u4e00\u8d77\u56de\u6765\u3002<\/p>\n<p>\u6211\u8fd9\u6b21\u4e3a\u4ec0\u4e48\u6ca1\u8d70\u8fd9\u6761\u8def&#xff1f;\u4e24\u4e2a\u73b0\u5b9e\u539f\u56e0\u3002<\/p>\n<p>\u4e00\u662f\u5f53\u65f6\u7684\u76ee\u6807\u662f\u5c3d\u5feb\u8ba9\u73af\u5883\u53ef\u7528\u3002\u8865\u5e93\u5f53\u573a\u5c31\u89e3\u51b3\u4e86\u963b\u585e&#xff0c;\u81ea\u5efa\u955c\u50cf\u8981\u989d\u5916\u5904\u7406\u6784\u5efa\u3001\u6253\u6807\u3001\u4ee5\u53ca 1Panel \u7684\u8fd0\u884c\u73af\u5883\u5173\u8054\u3002<\/p>\n<p>\u4e8c\u662f\u4f1a\u8131\u79bb 1Panel \u7684\u81ea\u52a8\u7ba1\u7406\u3002PHP \u8fd0\u884c\u73af\u5883\u662f\u9762\u677f\u6258\u7ba1\u7684&#xff0c;\u6362\u6210\u81ea\u5efa\u955c\u50cf\u540e&#xff0c;\u9762\u677f\u7684\u5347\u7ea7\u8fd0\u884c\u73af\u5883\u8fd9\u7c7b\u64cd\u4f5c\u884c\u4e3a\u5c31\u4e0d\u518d\u53ef\u9884\u671f&#xff0c;\u5347\u7ea7\u8def\u5f84\u5f97\u4f60\u81ea\u5df1\u7ef4\u62a4\u3002<\/p>\n<p>\u600e\u4e48\u53d6\u820d&#xff1a;\u4f60\u53ea\u662f\u8fd9\u6b21\u628a\u73af\u5883\u642d\u8d77\u6765&#xff0c;\u91cd\u653e\u6e05\u5355\u591f\u4e86&#xff1b;\u4f60\u8981\u957f\u671f\u8fd0\u7ef4\u3001\u8fd8\u4f1a\u53cd\u590d\u91cd\u5efa&#xff0c;\u6784\u5efa\u81ea\u5b9a\u4e49\u955c\u50cf\u662f\u660e\u663e\u66f4\u5212\u7b97\u7684\u4e00\u6b65\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u628a\u4e00\u53f0 PHP \u5bb9\u5668\u7684 php -m \u8c03\u5230\u96f6\u544a\u8b66&#xff0c;\u56db\u4e2a\u6269\u5c55\u5168\u90fd\u80fd\u52a0\u8f7d\u3002\u540e\u6765\u5728\u9762\u677f\u91cc\u6539\u4e86\u4e00\u6b21\u73af\u5883\u8bbe\u7f6e&#xff0c;\u56db\u4e2a\u6269\u5c55\u5168\u6302\u56de\u53bb\u4e86\u3002<br \/>\n\u8865\u7684\u4e1c\u897f\u6ca1\u8fdb\u955c\u50cf\u3002\u5b83\u4e00\u76f4\u5728\u5bb9\u5668\u7684\u53ef\u5199\u5c42\u91cc\u3002<br \/>\n\u8fd9\u53f0\u662f 1Panel v2 \u8d77\u7684\u73af\u5883&#xff0c;PHP 8.4.25&#xff0c;\u955c\u50cf 1panel-php-fpm:8.4.25&#xff0c;\u57fa\u7840\u955c\u50cf Debian 13&#xff08;trixie&#xff09;&#xff0c;\u670d\u52a1\u5668 4 \u6838 8G\u3002\u4e8b\u60c5\u51fa\u5728 9 \u6708 16<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9098,103],"topic":[],"class_list":["post-111020","post","type-post","status-publish","format-standard","hentry","category-server","tag-it","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>apt-get \u8865\u7684\u5e93\uff0c\u4e00\u6b21\u91cd\u5efa\u5168\u6ca1\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/111020.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"apt-get \u8865\u7684\u5e93\uff0c\u4e00\u6b21\u91cd\u5efa\u5168\u6ca1\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6211\u628a\u4e00\u53f0 PHP \u5bb9\u5668\u7684 php -m \u8c03\u5230\u96f6\u544a\u8b66&#xff0c;\u56db\u4e2a\u6269\u5c55\u5168\u90fd\u80fd\u52a0\u8f7d\u3002\u540e\u6765\u5728\u9762\u677f\u91cc\u6539\u4e86\u4e00\u6b21\u73af\u5883\u8bbe\u7f6e&#xff0c;\u56db\u4e2a\u6269\u5c55\u5168\u6302\u56de\u53bb\u4e86\u3002 \u8865\u7684\u4e1c\u897f\u6ca1\u8fdb\u955c\u50cf\u3002\u5b83\u4e00\u76f4\u5728\u5bb9\u5668\u7684\u53ef\u5199\u5c42\u91cc\u3002 \u8fd9\u53f0\u662f 1Panel v2 \u8d77\u7684\u73af\u5883&#xff0c;PHP 8.4.25&#xff0c;\u955c\u50cf 1panel-php-fpm:8.4.25&#xff0c;\u57fa\u7840\u955c\u50cf Debian 13&#xff08;trixie&#xff09;&#xff0c;\u670d\u52a1\u5668 4 \u6838 8G\u3002\u4e8b\u60c5\u51fa\u5728 9 \u6708 16\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/111020.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-29T22:24:46+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111020.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/111020.html\",\"name\":\"apt-get \u8865\u7684\u5e93\uff0c\u4e00\u6b21\u91cd\u5efa\u5168\u6ca1\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-29T22:24:46+00:00\",\"dateModified\":\"2026-09-29T22:24:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/111020.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/111020.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111020.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"apt-get \u8865\u7684\u5e93\uff0c\u4e00\u6b21\u91cd\u5efa\u5168\u6ca1\u4e86\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"apt-get \u8865\u7684\u5e93\uff0c\u4e00\u6b21\u91cd\u5efa\u5168\u6ca1\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/111020.html","og_locale":"zh_CN","og_type":"article","og_title":"apt-get \u8865\u7684\u5e93\uff0c\u4e00\u6b21\u91cd\u5efa\u5168\u6ca1\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6211\u628a\u4e00\u53f0 PHP \u5bb9\u5668\u7684 php -m \u8c03\u5230\u96f6\u544a\u8b66&#xff0c;\u56db\u4e2a\u6269\u5c55\u5168\u90fd\u80fd\u52a0\u8f7d\u3002\u540e\u6765\u5728\u9762\u677f\u91cc\u6539\u4e86\u4e00\u6b21\u73af\u5883\u8bbe\u7f6e&#xff0c;\u56db\u4e2a\u6269\u5c55\u5168\u6302\u56de\u53bb\u4e86\u3002 \u8865\u7684\u4e1c\u897f\u6ca1\u8fdb\u955c\u50cf\u3002\u5b83\u4e00\u76f4\u5728\u5bb9\u5668\u7684\u53ef\u5199\u5c42\u91cc\u3002 \u8fd9\u53f0\u662f 1Panel v2 \u8d77\u7684\u73af\u5883&#xff0c;PHP 8.4.25&#xff0c;\u955c\u50cf 1panel-php-fpm:8.4.25&#xff0c;\u57fa\u7840\u955c\u50cf Debian 13&#xff08;trixie&#xff09;&#xff0c;\u670d\u52a1\u5668 4 \u6838 8G\u3002\u4e8b\u60c5\u51fa\u5728 9 \u6708 16","og_url":"https:\/\/www.wsisp.com\/helps\/111020.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-29T22:24:46+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/111020.html","url":"https:\/\/www.wsisp.com\/helps\/111020.html","name":"apt-get \u8865\u7684\u5e93\uff0c\u4e00\u6b21\u91cd\u5efa\u5168\u6ca1\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-29T22:24:46+00:00","dateModified":"2026-09-29T22:24:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/111020.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/111020.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/111020.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"apt-get \u8865\u7684\u5e93\uff0c\u4e00\u6b21\u91cd\u5efa\u5168\u6ca1\u4e86"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=111020"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111020\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=111020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=111020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=111020"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=111020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}