{"id":552,"date":"2017-12-27T23:05:19","date_gmt":"2017-12-27T15:05:19","guid":{"rendered":"http:\/\/www.kiccleaf.com\/?p=552"},"modified":"2017-12-27T23:05:19","modified_gmt":"2017-12-27T15:05:19","slug":"freebsd-%e5%8d%87%e7%ba%a7php%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/www.kiccleaf.com\/?p=552","title":{"rendered":"FreeBSD \u5347\u7ea7PHP\u7248\u672c"},"content":{"rendered":"<p>\u4f7f\u7528\u5230\u7684\u547d\u4ee4<br \/>\npkg update \u66f4\u65b0\u4e0b\u8f6f\u4ef6\u5e93\u7684\u4fe1\u606f\uff0c\u8fd9\u6837\u53ef\u4ee5\u77e5\u9053\u8f6f\u4ef6\u5e93\u4e2d\u4e2a\u5957\u4ef6\u7684\u6700\u65b0\u7248\u672c\u3002<br \/>\npkg upgrade \u662f\u5347\u7ea7\u4f60\u5b89\u88c5\u7684\u5957\u4ef6<br \/>\npkg info  \u663e\u793a\u8f6f\u4ef6\u5305\u4fe1\u606f<\/p>\n<p>\u7b2c\u4e00\u6b65\u5347\u7ea7PHP\u7248\u672c<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@kiccleaf:~ # php -v  #\u67e5\u770b\u5347\u7ea7\u524dPHP\u7248\u672c\r\nPHP 7.1.4 (cli) (built: Nov 25 2017 01:17:11) ( NTS )\r\nCopyright (c) 1997-2017 The PHP Group\r\nZend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies\r\n    with Zend OPcache v7.1.4, Copyright (c) 1999-2017, by Zend Technologies\r\n\r\nroot@kiccleaf:~ # pkg upgrade php71\r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up-to-date.\r\nAll repositories are up-to-date.\r\nThe following 2 package(s) will be affected (of 0 checked):\r\n\r\nInstalled packages to be UPGRADED:\r\n\tphp71: 7.1.4 -&gt; 7.1.12\r\n\tpcre: 8.37_4 -&gt; 8.40_1\r\n\r\nThe process will require 84 KiB more space.\r\n3 MiB to be downloaded.\r\n\r\nProceed with this action? &#x5B;y\/N]: y   #\u540c\u610f\u66f4\u65b0\r\nFetching php71-7.1.12.txz: 100%    2 MiB 103.2kB\/s    00:21    \r\nFetching pcre-8.40_1.txz: 100%    1 MiB 165.7kB\/s    00:07    \r\nChecking integrity... done (0 conflicting)\r\n&#x5B;1\/2] Upgrading pcre from 8.37_4 to 8.40_1...\r\n&#x5B;1\/2] Extracting pcre-8.40_1: 100%\r\n&#x5B;2\/2] Upgrading php71 from 7.1.4 to 7.1.12...\r\nYou may need to manually remove \/usr\/local\/etc\/php-fpm.d\/www.conf if it is no longer needed.\r\n&#x5B;2\/2] Extracting php71-7.1.12: 100%\r\nroot@kiccleaf:~ # php -v  #\u67e5\u770b\u5347\u7ea7\u540e\u7248\u672c\r\nPHP 7.1.12 (cli) (built: Nov 25 2017 01:17:11) ( NTS )\r\nCopyright (c) 1997-2017 The PHP Group\r\nZend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies\r\n    with Zend OPcache v7.1.4, Copyright (c) 1999-2017, by Zend Technologies\r\n<\/pre>\n<p>\u7b2c\u4e8c\u6b65\u5347\u7ea7\u4e0bPHP\u6269\u5c55<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npkg upgrade -y php71-ctype php71-dom php71-filter php71-hash php71-iconv php71-json php71-mysqli php71-opcache php71-pdo php71-pdo_mysql php71-pdo_sqlite php71-phar php71-posix php71-session php71-simplexml php71-sqlite3 php71-tokenizer php71-xml php71-xmlreader php71-xmlwriter\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u5230\u7684\u547d\u4ee4 pkg update \u66f4\u65b0\u4e0b\u8f6f\u4ef6\u5e93\u7684&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.kiccleaf.com\/?p=552\">Continue reading<span class=\"screen-reader-text\">FreeBSD \u5347\u7ea7PHP\u7248\u672c<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1,"footnotes":""},"categories":[6],"tags":[8,37],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-freebsd","tag-37","entry"],"views":4097,"_links":{"self":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=552"}],"version-history":[{"count":1,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":553,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions\/553"}],"wp:attachment":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}