{"id":495,"date":"2019-05-29T16:03:35","date_gmt":"2019-05-29T08:03:35","guid":{"rendered":"http:\/\/blog.lovexu.cc\/?p=495"},"modified":"2019-05-29T16:03:35","modified_gmt":"2019-05-29T08:03:35","slug":"%e7%be%a4%e6%99%966-2-2%e7%9a%84%e4%b8%80%e4%ba%9b%e7%bb%8f%e9%aa%8c","status":"publish","type":"post","link":"https:\/\/lox.im\/index.php\/495.html","title":{"rendered":"\u7fa4\u66566.2.2\u7684\u4e00\u4e9b\u7ecf\u9a8c"},"content":{"rendered":"\n<p>1\u3001\u65b0\u589e\u81ea\u5df1\u9700\u8981\u7684 PHP \u914d\u7f6e\u6587\u4ef6:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vim \/run\/php-fpm\/conf.d\/my.ini  <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u4f8b\u5982\u589e\u52a0memcached\u548credis\u7684\u652f\u6301\u3002\n#\u7fa4\u6656\u7684mencached\u548credis\u7684\u7aef\u53e3\u4e0d\u662f\u5e38\u7528\u7684\uff0c\u8bf7\u81ea\u884cnetstat -nlpt \u67e5\u8be2\nextension = memcached.so\nextension = redis.so<\/code><\/pre>\n\n\n\n<p>\u4f46\u662f\u4e0a\u8ff0\u6bcf\u6b21\u91cd\u542f\u540e\u90fd\u4f1a\u6d88\u5931\uff0c\u9700\u8981\u81ea\u5df1\u518d\u91cd\u65b0\u7f16\u8f91\u3002<\/p>\n\n\n\n<p>2\u3001\u4f7f\u7528cron \u540e\u53f0\u66f4\u65b0\u4efb\u52a1 \uff0c\u4ee5nextcloud\u4e3a\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/crontab\n#\u5728\u6253\u5f00\u7684\u6587\u4ef6\u4e2d\uff0c\u8f93\u5165\u3002\u8fd9\u91cc\u5047\u8bbe\u4f60\u4f7f\u7528\u7684php7.2\u7248\u672c\u3002cron.php\u5730\u5740\u4e5f\u9700\u8981\u6362\u6210\u4f60\u81ea\u5df1\u7684\u8def\u5f84\u3002\n*\/15  *  *  *  * http \/usr\/local\/bin\/php72 \/volume1\/web\/nextcloud\/cron.php\n# \u6309esc\uff0c\u8f93\u5165:wq\u4fdd\u5b58\u66f4\u6539\u540e\uff0c\u91cd\u542fcron\u670d\u52a1\nsynoservice --restart crond<\/code><\/pre>\n\n\n\n<p>3\u3001\u7fa4\u6656\u4e2d\u7684\u670d\u52a1\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u5c0f\u77e5\u8bc6\u70b9\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u547d\u4ee4\u83b7\u5f97\u6240\u6709\u6ce8\u518c\u7684\u670d\u52a1\nsynoservice --list<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u65b0\u589e\u81ea\u5df1\u9700\u8981\u7684 PHP \u914d\u7f6e\u6587\u4ef6: \u4f46\u662f\u4e0a\u8ff0\u6bcf\u6b21\u91cd\u542f\u540e\u90fd\u4f1a\u6d88\u5931\uff0c\u9700\u8981\u81ea\u5df1\u518d\u91cd\u65b0\u7f16\u8f91\u3002 2\u3001\u4f7f\u7528cron \u540e\u53f0\u66f4\u65b0\u4efb\u52a1 \uff0c\u4ee5ne &#8230;<\/p>\n","protected":false},"author":1,"featured_media":420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[4],"tags":[36,35,12],"class_list":["post-495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","tag-36","tag-php","tag-12"],"_links":{"self":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/comments?post=495"}],"version-history":[{"count":0,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/495\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media\/420"}],"wp:attachment":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media?parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/categories?post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/tags?post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}