{"id":207,"date":"2024-08-21T11:40:06","date_gmt":"2024-08-21T03:40:06","guid":{"rendered":"http:\/\/znl.pub\/?p=207"},"modified":"2024-08-22T19:50:47","modified_gmt":"2024-08-22T11:50:47","slug":"%e6%80%8e%e4%b9%88%e5%ae%89%e8%a3%85php-posix%e6%89%a9%e5%b1%95%ef%bc%9f%e4%bd%bf%e7%94%a8%e5%8c%85%e7%ae%a1%e7%90%86%e5%99%a8%e5%ae%89%e8%a3%85%e7%9a%84php","status":"publish","type":"post","link":"https:\/\/znl.pub\/?p=207","title":{"rendered":"\u600e\u4e48\u5b89\u88c5php-posix\u6269\u5c55\uff1f\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u7684php"},"content":{"rendered":"<p>\u6700\u8fd1\u5728workman\u9879\u76ee\u4e2d\u5f15\u5165\u4e86\u4e00\u4e2a\u5305\uff0c\u5948\u4f55\u8fd9\u4e2a\u5305\u8981\u6c42php81\u7248\u672c\u4ee5\u4e0a\uff0c\u4e8e\u662f\u6211\u4eec\u4f7f\u7528php81\uff08\u6211\u4eec\u672c\u8eab\u7cfb\u7edf\u4e0a\u5c31\u67092\u5957\u4e0d\u540c\u7248\u672c\u7684php\uff0c\u8fd9\u662f\u4f7f\u7528 remi \u6e90\u6765\u5b89\u88c5\u7684\uff09\u6765\u8fd0\u884c\uff0c\u7ed3\u679c\u62a5\u9519\uff1a<br \/>\nCall to undefined function posix_getpid()\u3002\u3002<br \/>\n\u7f51\u4e0a\u7684\u6559\u7a0b\u90fd\u662f\u6559\u6211\u4eec\u5982\u4f55\u5b89\u88c5 php-posix \u6269\u5c55\uff0c\u4f46\u662f\u6211\u65e0\u8bba\u5982\u4f55\u4e5f\u6ca1\u627e\u5230\u554a\uff1a<br \/>\n<code>yum info php81* | grep ^Name | grep -i posix<\/code><br \/>\n\u7ed3\u679c\u7a7a\u7a7a\u5982\u4e5f\u3002<br \/>\n\u9996\u5148\u8bf4\u4e00\u4e0b\uff0c\u6211\u4eec\u7684\u7cfb\u7edf\u662fCentos\u7cfb\u5217\u7684\uff0c\u4e0a\u9762\u6211\u7528yum\u547d\u4ee4\u5927\u5bb6\u5c31\u5e94\u8be5\u77e5\u9053\u4e86\u3002\u65e0\u6cd5\u4ece\u767e\u5ea6\u641c\u7d22\u5230\u7ed3\u679c\uff0c\u6211\u90fd\u4e00\u5ea6\u6000\u7591php\u57288.1\u4ee5\u540e\u88c1\u526a\u4e86posix\uff0c\u4e0d\u8fc7\u4e8b\u5b9e\u4e0a\u5e76\u6ca1\u6709\uff0c\u800c\u662f\u5305\u542b\u5230\u4e86\u53e6\u4e00\u4e2a\u6269\u5c55\u4e2d\uff1a <a href=\"https:\/\/stackoverflow.com\/questions\/2197366\/how-to-install-posix-in-php\" title=\"php-process\">php-process<\/a> \u3002<br \/>\n\u6211\u4eec\u77e5\u9053debian\u548cCentos\u5728\u4e00\u4e9b\u5305\u7684\u547d\u540d\u4e0a\u662f\u5b58\u5728\u5dee\u5f02\u7684\uff08\u6211\u4e0d\u77e5\u9053\u662f\u5426\u5728ubuntu\u4e0a\u5c31\u8981\u7528php-posix\u4e86\uff0c\u8c01\u8981\u662f\u8bd5\u8fc7\u4e86\u53ef\u4ee5\u544a\u8bc9\u6211\u4e00\u4e0b\uff09\u3002<br \/>\n\u6293\u7d27\u91cd\u65b0\u641c\u7d22\u770b\u770b\uff1a<br \/>\n<code>yum info php81* | grep ^Name | grep -i process<\/code><br \/>\n<img decoding=\"async\" src=\"http:\/\/znl.pub\/wp-content\/uploads\/2024\/08\/image-1724211376401.png\" alt=\"file\" \/><br \/>\n\u6293\u7d27\u5b89\u88c5\u8bd5\u8bd5 <code>yum install php81-php-process<\/code>,\u91cd\u65b0\u8fd0\u884c\uff0c\u5f53\u5f53\u5f53\uff01<br \/>\n<img decoding=\"async\" src=\"http:\/\/znl.pub\/wp-content\/uploads\/2024\/08\/image-1724211480758.png\" alt=\"file\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728workman\u9879\u76ee\u4e2d\u5f15\u5165\u4e86\u4e00\u4e2a\u5305\uff0c\u5948\u4f55\u8fd9\u4e2a\u5305\u8981\u6c42php81\u7248\u672c\u4ee5\u4e0a\uff0c\u4e8e\u662f\u6211\u4eec\u4f7f\u7528php81\uff08\u6211\u4eec\u672c\u8eab\u7cfb\u7edf&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,21],"tags":[],"class_list":["post-207","post","type-post","status-publish","format-standard","hentry","category-linux-use","category-php"],"_links":{"self":[{"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/znl.pub\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=207"}],"version-history":[{"count":2,"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":212,"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions\/212"}],"wp:attachment":[{"href":"https:\/\/znl.pub\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/znl.pub\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/znl.pub\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}