{"id":2739,"date":"2019-10-29T00:01:04","date_gmt":"2019-10-28T16:01:04","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=2739"},"modified":"2019-11-01T11:50:00","modified_gmt":"2019-11-01T03:50:00","slug":"php-sheng-ji","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/skill\/php-sheng-ji.html","title":{"rendered":"LNMP\u4e00\u952e\u5305\u548c\u5b9d\u5854\u9762\u677f\u5347\u7ea7PHP\u7248\u672c\u7684\u65b9\u6cd5"},"content":{"rendered":"<p>\u5f53\u8001\u7248\u672c\u7684php\u5305\u542b\u6f0f\u6d1e\uff0c\u6216\u8005\u4e00\u4e9b\u7a0b\u5e8f\u9700\u8981\u65b0\u7248\u672c\u7684php\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5c31\u9700\u8981\u5bf9php\u8fdb\u884c\u7248\u672c\u5347\u7ea7\u3002<\/p>\n<p>\u672c\u6587\u6559\u5927\u5bb6\u5982\u4f55\u4e3a\u670d\u52a1\u5668\u7684php\u7248\u672c\u5347\u7ea7\u3002<\/p>\n<h2>LNMP\u4e00\u952e\u5305\u5347\u7ea7php\u7684\u65b9\u6cd5<\/h2>\n<p>\u5982\u679c\u4f60\u7528\u7684\u662f<a href=\"https:\/\/blog.naibabiji.com\/tag\/lnmp\">LNMP<\/a>\u4e00\u952e\u5305\uff0c\u90a3\u4e48\u5347\u7ea7php\u7248\u672c\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>\u9996\u5148\uff0c\u767b\u5f55ssh\u540e\u5207\u6362\u5230lnmp\u7684\u5b89\u88c5\u5305\u76ee\u5f55\u3002<\/p>\n<p>\u8fd0\u884c\u4e0b\u9762\u7684\u5347\u7ea7\u4ee3\u7801<\/p>\n<pre>.\/upgrade.sh php<\/pre>\n<p>\u5230http:\/\/www.php.net\/downloads.php \u83b7\u53d6\u7248\u672c\u53f7\uff0c\u8f93\u5165\u7248\u672c\u53f7\uff0c\u59827.3.11 \u56de\u8f66\uff0c\u518d\u6b21\u56de\u8f66\u786e\u8ba4\u5373\u53ef\u5f00\u59cb\u5347\u7ea7\u3002\u5982\u4e0b\u56fe<\/p>\n<p><a href=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2019\/10\/lnmp-upgrade-php.png?_upt=e93990751572278708\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2740\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2019\/10\/lnmp-upgrade-php.png?_upt=e93990751572278708\" alt=\"lnmp\u5347\u7ea7php\u7248\u672c\" width=\"604\" height=\"302\" \/><\/a>\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u7f51\u7ad9\u4f1a\u6682\u65f6\u65e0\u6cd5\u8bbf\u95ee\uff0c\u5347\u7ea7\u5b8c\u6bd5\u540e\u5373\u53ef\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4e4b\u524d\u5b89\u88c5\u8fc7php\u76f8\u5173\u7ec4\u4ef6\u7684\uff0c\u9700\u8981\u91cd\u65b0\u5b89\u88c5\u3002<\/p>\n<p>\u5347\u7ea7\u5b8cPHP\u5982\u679cphpmyadmin\u53ef\u80fd\u4f1a\u65e0\u6cd5\u4f7f\u7528\uff0c\u9700\u8981\u5347\u7ea7phpmyadmin\u81f3\u5bf9\u4e8ephp\u548cmysql\u7248\u672c\u7684phpmyadmin\u7248\u672c\u3002<\/p>\n<p>\u5982\u679c\u8981\u6062\u590d\u539fPHP\uff0c\u5c06 \/usr\/local\/ \u4e0b oldphp\u65e5\u5fd7 \u7684\u76ee\u5f55\u91cd\u547d\u540d\u4e3a php \u5e76\uff0c\u5c06\/usr\/local\/oldphp\u65e5\u671f\/init.d.php-fpm.bak.\u65e5\u671f \u7684\u6587\u4ef6\u62f7\u8d1d\u5230\/etc\/init.d\/ \u76ee\u5f55\u4e0b\u91cd\u547d\u540d\u4e3a php-fpm \u5373\u53ef\u6062\u590d\u3002<\/p>\n<h2>\u5b9d\u5854\u9762\u677f\u5347\u7ea7php\u7248\u672c\u7684\u65b9\u6cd5<\/h2>\n<p>\u5b9d\u5854\u9762\u677f\u5347\u7ea7php\u7248\u672c\u7684\u65b9\u6cd5\u6709\u4e24\u79cd\u3002<\/p>\n<p>\u65b9\u6cd5\u4e00\uff1a\u76f4\u63a5\u5728\u5b9d\u5854\u7684\u5e94\u7528\u5546\u5e97\u91cc\u9762\u9009\u62e9\u65b0\u7248\u672c\u7684php\u8fdb\u884c\u5b89\u88c5\uff0c\u7136\u540e\u53bb\u7f51\u7ad9\u8bbe\u7f6e\u91cc\u9762\u628a\u7f51\u7ad9\u4f7f\u7528\u7684PHP\u7248\u672c\u5207\u6362\u5230\u65b0\u7684\u5373\u53ef\u3002<\/p>\n<p>\u65b9\u6cd5\u4e8c\uff1a\u5148\u5220\u9664\u8001\u7248\u672c\u7684php\uff0c\u7136\u540e\u5e94\u7528\u5546\u5e97\u5b89\u88c5\u65b0\u7248\u672c\u7684PHP\u5373\u53ef\u3002<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;2739&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;3&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;3\\\/5 - (2 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;LNMP\u4e00\u952e\u5305\u548c\u5b9d\u5854\u9762\u677f\u5347\u7ea7PHP\u7248\u672c\u7684\u65b9\u6cd5&quot;,&quot;width&quot;:&quot;82&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 82px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            3\/5 - (2 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u8001\u7248\u672c\u7684php\u5305\u542b\u6f0f\u6d1e\uff0c\u6216\u8005\u4e00\u4e9b\u7a0b\u5e8f\u9700\u8981\u65b0\u7248\u672c\u7684php\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5c31\u9700\u8981\u5bf9php\u8fdb\u884c\u7248\u672c\u5347\u7ea7\u3002 \u672c\u6587\u6559\u5927\u5bb6\u5982 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2741,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"LNMP\u4e00\u952e\u5305\u548c\u5b9d\u5854\u9762\u677f\u5347\u7ea7PHP\u7248\u672c\u7684\u65b9\u6cd5 - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u5f53\u8001\u7248\u672c\u7684php\u5305\u542b\u6f0f\u6d1e\uff0c\u6216\u8005\u4e00\u4e9b\u7a0b\u5e8f\u9700\u8981\u65b0\u7248\u672c\u7684php\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5c31\u9700\u8981\u5bf9php\u8fdb\u884c\u7248\u672c\u5347\u7ea7\u3002 \u672c\u6587\u6559\u5927\u5bb6\u5982\u4f55\u4e3a\u670d\u52a1\u5668\u7684php\u7248\u672c\u5347\u7ea7\u3002 LNMP\u4e00\u952e\u5305\u5347\u7ea7php\u7684\u65b9\u6cd5 \u5982\u679c\u4f60\u7528\u7684\u662f LNMP \u4e00\u952e\u5305\uff0c\u90a3\u4e48\u5347\u7ea7php\u7248\u672c\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a \u9996\u5148\uff0c\u767b\u5f55ssh\u540e\u5207\u6362\u5230lnmp\u7684\u5b89\u88c5\u5305\u76ee\u5f55\u3002 \u8fd0\u884c\u4e0b\u9762\u7684\u5347\u7ea7\u4ee3\u7801 \u5230http:\/\/"},"footnotes":""},"categories":[142],"tags":[],"class_list":["post-2739","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/2739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=2739"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/2739\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media\/2741"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=2739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=2739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=2739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}