{"id":914,"date":"2022-02-06T11:56:00","date_gmt":"2022-02-06T11:56:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=914"},"modified":"2022-02-06T11:56:00","modified_gmt":"2022-02-06T11:56:00","slug":"914","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2022\/02\/06\/914\/","title":{"rendered":"\u5728Debian\u5b89\u88c5\u591a\u4e2a\u7248\u672cPHP-\u8f6c\u5e16"},"content":{"rendered":"<p>\u6e90\u6587\u7ae0 <a href=\"https:\/\/www.taterli.com\/8507\/\">https:\/\/www.taterli.com\/8507\/<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2022\/02\/3963715439.jpg\" alt=\"php.jpg\" title=\"php.jpg\"><\/p>\n<p>\u5f88\u591a\u4eba\u53ea\u4f1a\u5728BT\u7b49\u4e00\u952e\u811a\u672c\u7528,\u5176\u5b9e\u547d\u4ee4\u64cd\u4f5c\u672c\u8eab\u4e5f\u662f\u975e\u5e38\u7b80\u5355\u7684\u8bf4.<\/p>\n<h3>\u9996\u5148\u5f15\u5165\u4e00\u4e2a\u4e09\u65b9\u6e90,\u8fd9\u4e2a\u6e90\u662f\u67d0\u77e5\u540dPHP\u5f00\u53d1\u8005\u7684\u6e90,\u9664\u975e\u4f5c\u8005\u4e0d\u5e72\u4e86,\u4e0d\u7136\u90fd\u4f1a\u4e00\u76f4\u7ef4\u62a4\u7684.<\/h3>\n<pre><code>#!\/bin\/bash\n# To add this repository please do:\n\nif [ \"$(whoami)\" != \"root\" ]; then\n    SUDO=sudo\nfi\n\n${SUDO} apt-get -y install apt-transport-https lsb-release ca-certificates curl\n${SUDO} wget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg\n${SUDO} sh -c 'echo \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" &gt; \/etc\/apt\/sources.list.d\/php.list'\n${SUDO} apt-get update<\/code><\/pre>\n<h3>\u63a5\u7740\u4fbf\u53ef\u4ee5\u9009\u62e9\u81ea\u5df1\u559c\u6b22\u7684\u7248\u672c,\u53ef\u4ee5\u540c\u65f6\u5b89\u88c5\u591a\u4e2a.<\/h3>\n<pre><code>apt install php5.6   [PHP 5.6]\napt install php7.0   [PHP 7.0]\napt install php7.1   [PHP 7.1]\napt install php7.2   [PHP 7.2]\napt install php7.3   [PHP 7.3]\napt install php7.4   [PHP 7.4]<\/code><\/pre>\n<h3>\u90a3\u5982\u4f55\u6307\u5b9a\u9ed8\u8ba4\u7248\u672c\u5462?<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.taterli.com\/wp-content\/uploads\/2022\/01\/image.png\" alt=\"\" title=\"\"><\/p>\n<p>update-alternatives --set php \/usr\/bin\/php5.6<br \/>\u81f3\u4e8e\u5728Nginx\u4e2d,\u660e\u663e\u662f\u914d\u7f6e\u6587\u4ef6\u6307\u5b9a\u7684\u561b,\u5c31\u4e0d\u591a\u8bf4\u4e86,\u5f53\u7136\u4e0d\u540c\u7248\u672c\u591a\u5360\u4e00\u4e9b\u8d44\u6e90\u4e86.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6e90\u6587\u7ae0 https:\/\/www.taterli.com\/8507\/ \u5f88\u591a\u4eba\u53ea\u4f1a\u5728BT\u7b49\u4e00\u952e\u811a\u672c\u7528,\u5176 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[35,34],"class_list":["post-914","post","type-post","status-publish","format-standard","hentry","category-vps","tag-nginx","tag-php"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=914"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/914\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}