{"id":88414,"date":"2020-02-14T03:48:05","date_gmt":"2020-02-13T19:48:05","guid":{"rendered":"http:\/\/4563.org\/?p=88414"},"modified":"2020-02-14T03:48:05","modified_gmt":"2020-02-13T19:48:05","slug":"%e7%94%a8-php-swoole-%e6%9e%84%e5%bb%ba%e7%ae%80%e6%98%93%e4%ba%91%e5%89%aa%e8%b4%b4%e6%9d%bf%e7%a8%8b%e5%ba%8f%ef%bc%8c%e5%ae%9e%e7%8e%b0%e5%a4%9a%e5%8f%b0%e8%ae%be%e5%a4%87%e5%90%8c%e6%ad%a5","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=88414","title":{"rendered":"\u7528 PHP + Swoole \u6784\u5efa\u7b80\u6613\u4e91\u526a\u8d34\u677f\u7a0b\u5e8f\uff0c\u5b9e\u73b0\u591a\u53f0\u8bbe\u5907\u540c\u6b65\u6570\u636e"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u7528 PHP + Swoole \u6784\u5efa\u7b80\u6613\u4e91\u526a\u8d34\u677f\u7a0b\u5e8f\uff0c\u5b9e\u73b0\u591a\u53f0\u8bbe\u5907\u540c\u6b65\u6570\u636e               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : KasuganoSoras <\/span>  <span><i><\/i> 15<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h2>\u524d\u8a00<\/h2>\n<p>\u4e00\u76f4\u60f3\u627e\u4e2a\u8d81\u624b\u7684\u526a\u8d34\u677f\u540c\u6b65\u7a0b\u5e8f\uff0c\u8bd5\u4e86 1Clipboard \u7b49\u591a\u6b3e\u8f6f\u4ef6\u90fd\u611f\u89c9\u4e00\u822c\u822c\uff0c\u4e0d\u592a\u7b26\u5408\u6211\u7684\u4f7f\u7528\u9700\u6c42\uff0c\u4e8e\u662f\u5c31\u968f\u624b\u64b8\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u7a0b\u5e8f\u7528\u4e8e\u540c\u6b65\u526a\u8d34\u677f\u3002<\/p>\n<p>\u56e0\u4e3a\u662f HTML + PHP \u5b9e\u73b0\u7684\uff0c\u6240\u4ee5\u4e0d\u9700\u8981\u4e0b\u8f7d\u5ba2\u6237\u7aef\u5c31\u53ef\u4ee5\u7528\uff0c\u8fd9\u4e5f\u662f\u6bd4\u8f83\u65b9\u4fbf\u7684\u4e00\u70b9\uff0c\u6709\u65f6\u5019\u60f3\u7ed9\u53e6\u4e00\u53f0\u7535\u8111\u53d1\u70b9\u4e1c\u897f\u8fd8\u8981\u5f00\u4e2a QQ \u5565\u7684\u5b9e\u5728\u9ebb\u70e6\uff0c\u8fd9\u65f6\u5019\u4e5f\u53ef\u4ee5\u6d3e\u4e0a\u7528\u573a\u3002<\/p>\n<p>Demo\uff1aclipboard.top<\/p>\n<p>\u9879\u76ee\u5730\u5740\uff1a https:\/\/github.com\/ZeroDream-CN\/Cloud-ClipBoard<\/p>\n<h2>\u5982\u4f55\u4f7f\u7528<\/h2>\n<ol>\n<li>\u5728\u8bbe\u5907 A \u4e0a\u6253\u5f00 clipboard.top \u8fd9\u4e2a\u7f51\u9875\uff0c\u968f\u4fbf\u8f93\u5165\u4e00\u4e2a\u5bc6\u94a5\uff0c\u70b9\u51fb\u8fde\u63a5\u6309\u94ae<\/li>\n<li>\u5728\u8bbe\u5907 B \u4e0a\u4e5f\u6253\u5f00\u8fd9\u4e2a\u7f51\u9875\uff0c\u8f93\u5165\u540c\u6837\u7684\u5bc6\u94a5\uff0c\u70b9\u51fb\u8fde\u63a5\u6309\u94ae<\/li>\n<li>\u8bbe\u5907 A \u73b0\u5728\u53ef\u4ee5\u5411\u8bbe\u5907 B \u53d1\u9001\u6570\u636e\uff0c\u8bbe\u5907 B \u4e5f\u53ef\u4ee5\u5411\u8bbe\u5907 A \u53d1\u9001\u6570\u636e<\/li>\n<li>\u8fd8\u53ef\u4ee5\u5728\u66f4\u591a\u8bbe\u5907\u4e0a\u6253\u5f00\u8fd9\u4e2a\u7f51\u9875\uff0c\u5b9e\u73b0\u591a\u8bbe\u5907\u540c\u6b65\u6570\u636e<\/li>\n<\/ol>\n<h2>\u529f\u80fd\u548c\u7279\u6027<\/h2>\n<ul>\n<li>\u8de8\u5e73\u53f0\uff0c\u4ec5\u9700\u4e00\u4e2a\u6d4f\u89c8\u5668\uff0c\u65e0\u9700\u4e0b\u8f7d\u4e13\u7528\u5ba2\u6237\u7aef<\/li>\n<li>\u652f\u6301\u4f20\u8f93\u6587\u5b57\u548c\u56fe\u7247\uff0c\u7406\u8bba\u4e0a\u6587\u4ef6\u4e5f\u80fd\u53d1\uff0c\u4e0d\u8fc7\u8981\u505a\u4e00\u4e9b\u6539\u52a8<\/li>\n<li>\u7aef\u5230\u7aef AES-256-CFB \u52a0\u5bc6\uff0c\u52a0\u5bc6\u5728\u524d\u7aef\u5b8c\u6210\uff0c\u4e0d\u4f20\u8f93\u539f\u59cb\u5185\u5bb9\u5230\u670d\u52a1\u5668\uff08\u4ec5\u9650\u6587\u672c\u5185\u5bb9\uff09<\/li>\n<li>\u670d\u52a1\u5668\u5730\u5740\u548c\u5bc6\u94a5\u81ea\u52a8\u4fdd\u5b58\u5230 localStorage<\/li>\n<li>\u53ef\u81ea\u5efa\u670d\u52a1\u5668\uff0c\u4e0d\u4f9d\u8d56\u4efb\u4f55\u7b2c\u4e09\u65b9\u670d\u52a1<\/li>\n<li>WebSocket \u957f\u8fde\u63a5\uff0cSwoole \u9ad8\u6027\u80fd\u670d\u52a1\u7aef<\/li>\n<li>\u5176\u4ed6\u6682\u65f6\u60f3\u4e0d\u51fa<\/li>\n<\/ul>\n<h2>\u5b89\u88c5\u548c\u90e8\u7f72<\/h2>\n<ol>\n<li>\u628a index.php \u653e\u5230\u7f51\u7ad9\u76ee\u5f55\u4e0b<\/li>\n<li>\u521b\u5efa upload \u6587\u4ef6\u5939\u5e76\u7ed9\u4e88 php \u8fdb\u7a0b\u5199\u6743\u9650\uff08\u4f8b\u5982 chown -R www:www upload\/\uff09<\/li>\n<li>\u547d\u4ee4\u884c\u8fd0\u884c websocket.php \uff08\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5 Swoole \u73af\u5883\uff09<\/li>\n<li>\u547d\u4ee4\u884c\u8fd0\u884c cleanup.php \uff08\u7528\u4e8e\u5b9a\u65f6\u6e05\u7406\u8fc7\u671f\u56fe\u7247\u6587\u4ef6\uff09<\/li>\n<\/ol>\n<blockquote>\n<p>\u5efa\u8bae\u4f7f\u7528 screen \u6765\u7ef4\u62a4 php \u8fdb\u7a0b\uff0c\u907f\u514d SSH \u8fde\u63a5\u65ad\u5f00\u540e\u8fdb\u7a0b\u7ec8\u6b62<\/p>\n<\/blockquote>\n<p>\u6b22\u8fce\u4f7f\u7528\uff0c\u5982\u6709 bug \u53ef\u4ee5\u901a\u8fc7\u8bc4\u8bba\u53cd\u9988\u7ed9\u6211\uff08<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1144451\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : heiheidewo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u633a\u5b9e\u7528\u7684\uff0c\u4f46\u662f\u66f4\u591a\u573a\u666f\u662f\u6587\u4ef6\u4f20\u8f93\uff08\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5e94\u8be5\u6253\u6d1e\uff0c\u800c\u4e0d\u662f\u670d\u52a1\u5668\u4e2d\u8f6c\uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1144452\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ifyour <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u633a\u5b9e\u7528\u7684\u3002\u4f46\u662f\u5bf9\u4e8e App \u751f\u6001\u4ea7\u54c1\uff0c\u8fd9\u5c31\u662f\u51fa\u5382\u529f\u80fd\u3002<\/p>\n<p>iPhone &lt;&#8212;&gt; iMac &lt;&#8212;&gt; MacBook<\/p>\n<p>\u526a\u8d34\u677f\u81ea\u52a8\u540c\u6b65\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1144453\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ifyour <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             #2 App -&gt; Apple                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1144454\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cszchen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u662f\u80fd\u8de8\u5e73\u53f0\u652f\u6301 airdrop \u548c handoff \u5c31\u597d\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u7528 PHP + Swoole \u6784\u5efa&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/88414"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88414"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/88414\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88414"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}