{"id":322,"date":"2016-09-07T16:11:40","date_gmt":"2016-09-07T08:11:40","guid":{"rendered":"https:\/\/yyshell.com\/?p=322"},"modified":"2018-02-24T17:39:33","modified_gmt":"2018-02-24T09:39:33","slug":"samba%e3%80%81rsync%e3%80%81lsynd%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e6%96%87%e4%bb%b6%e5%85%b1%e4%ba%ab%e4%b8%ad%e5%ae%9e%e6%88%98%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/yyshell.com\/?p=322","title":{"rendered":"samba\u3001rsync\u3001lsyncd\u5728\u4f01\u4e1a\u5185\u90e8\u6587\u4ef6\u5171\u4eab\u4e2d\u5b9e\u6218\u5e94\u7528"},"content":{"rendered":"<p>\u5982\u679c\u4f60\u7684\u516c\u53f8\u5f88\u591a\u6570\u636e\u90fd\u662f\u6d89\u5bc6\u7684\uff0c\u4f60\u5df2\u7ecf\u628aUSB\u7b49\u4f20\u8f93\u6570\u636e\u7684\u7aef\u53e3\u5df2\u7ecf\u7981\u6b62\u4e86\uff0c\u673a\u7bb1\u4e0a\u9501\u4e86\uff0c\u4f46\u80af\u5b9a\u4e0d\u60f3\u5458\u5de5\u628a\u516c\u53f8\u5f88\u591a\u5185\u90e8\u6587\u4ef6\u4f20\u8f93\u5230\u4e92\u8054\u7f51\u4e0a\u53bb\uff0c\u90a3\u4e48\u4f60\u8be5\u600e\u4e48\u505a\u5462\uff1f\u6211\u89c9\u5f97\u6709\u5982\u4e0b\u51e0\u4e2a\u9009\u62e9\uff1a<\/p>\n<ol>\n<li>\u5982\u679c\u4f60\u7684\u6587\u4ef6\u6d89\u53ca\u7b49\u7ea7\u8f83\u9ad8\uff0c\u4fdd\u5bc6\u6027\u6781\u5f3a\uff0c\u90a3\u4e48\u6211\u63a8\u8350\u4f60\u8ba9\u8fd9\u90e8\u5206\u6d89\u5bc6\u7684\u5458\u5de5\u7684\u529e\u516c\u7535\u8111\u4e25\u683c\u5207\u65ad\u5916\u90e8\u7f51\u7edc\uff0c\u8981\u67e5\u8d44\u6599\u7684\u8bdd\uff0c\u7edf\u7edf\u7528\u5355\u53f0\u516c\u5171\u7535\u8111\u67e5\u627e\uff0c\u516c\u5171\u7535\u8111\u548c\u529e\u516c\u7535\u8111\u6ca1\u6709\u4efb\u4f55\u7269\u7406\u8fde\u63a5\uff0c\u5e76\u6709\u76f8\u5e94\u7684\u5ba1\u8ba1\u8f6f\u4ef6\u5ba1\u8ba1\u7528\u6237\u7684\u884c\u4e3a\u3002\u8bb0\u4f4f\uff0c\u771f\u6b63\u6d89\u5bc6\u7684\u5355\u4f4d\uff0c\u4f60\u5e94\u8be5\u4e25\u683c\u7684\u505a\u5230\u7981\u6b62\u201c\u4e00\u673a\u4e24\u7528\u201d<\/li>\n<li>\u8d2d\u4e70X\u4fe1\u670d\uff0cX\u5eb7\u7684\u7f51\u7edc\u884c\u4e3a\u7ba1\u7406\u8bbe\u5907\uff0c\u7981\u6b62\u5bf9\u5916\u6587\u4ef6\u7684\u4e0a\u4f20\u3002\u4f46\u901a\u5e38\u8fd9\u7c7b\u8bbe\u5907\u90fd\u6bd4\u8f83\u6602\u8d35\uff0c\u4e00\u822c\u6839\u636e\u6587\u4ef6\u7c7b\u578b\u6765\u5224\u65ad\u4e0a\u4f20\u884c\u4e3a\uff0c\u5982\u679c\u7528\u6237\u4f7f\u7528https\u52a0\u5bc6\u7684\u65b9\u5f0f\u4e0a\u4f20\u6587\u4ef6\uff0c\u5b83\u4eec\u4e00\u822c\u5c31\u4e0d\u7ba1\u7528\u4e86\u3002\u5e76\u4e14\uff0c\u6709\u4e9b\u5f31\u667a\u7684\u884c\u4e3a\u7ba1\u7406\u8bbe\u5907\uff0c\u5c45\u7136\u662f\u6839\u636e\u6587\u4ef6\u540e\u7f00\u6765\u5224\u65ad\u6587\u4ef6\u662f\u5426\u53ef\u4ee5\u4e0a\u4f20\u7684\uff0c\u771f\u4e2a\u5c31\u6709\u70b9\u641e\u7b11\u4e86\u3002<\/li>\n<li>\u628a\u516c\u53f8\u7f51\u7edc\u5212\u5206\u6210\u4e0d\u540c\u7684vlan\uff0c\u6709\u4e9b\u6bb5\u80fd\u4e0a\u7f51\uff0c\u6709\u4e9b\u4e0d\u80fd\u4e0a\u7f51\uff0c\u628a\u80fd\u4e0a\u7f51\u6bb5\u7684\u67d0\u53f0\u673a\u5668\uff0c\u4f5c\u4e3a\u5927\u5bb6\u5171\u4eab\u4e0a\u7f51\u7684\u8df3\u677f\u673a\u4f7f\u7528\uff0c\u7136\u540e\u505a\u8def\u7531\u5141\u8bb8\u5185\u7f51\u7684\u67d0\u4e9b\u673a\u5668\u8bbf\u95ee\u6b64\u7f51\u6bb5\u7684\u67d0\u53f0\u673a\u5668\uff0c\u6765\u4e0a\u7f51\u67e5\u8d44\u6599\uff0c\u6709\u4e9b\u6587\u6863\u9700\u8981\u4e0b\u8f7d\u4e0b\u6765\u7684\uff0c\u53ea\u5141\u8bb8\u5355\u5411\u4ece\u5916\u7f51\u5230\u5185\u7f51\u4f20\u8f93\uff0c\u4e0d\u5141\u8bb8\u4f20\u8f93\u51fa\u53bb\u3002\u6211\u4eec\u8fd9\u91cc\u8bb2\u7684\u5c31\u662f\u5728\u8fd9\u4e2a\u573a\u666f\u4e0b\u7684\u5e94\u7528\u3002<\/li>\n<\/ol>\n<p>\u4e0b\u9762\u662f\u8fd9\u4e2a\u573a\u666f\u7b80\u5355\u7684\u67b6\u6784\u56fe\uff0c\u6211\u4eec\u8fd9\u91cc\u7701\u53bb\u4e86\u7f51\u7edc\u8bbe\u5907\u5212\u5206vlan\uff0c\u505a\u8def\u7531\u7b49\u7ec6\u8282\u3002<\/p>\n<p><a href=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/09\/filesync.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-324 size-full\" src=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/09\/filesync.png\" alt=\"filesync\" width=\"772\" height=\"680\" \/><\/a>\u56fe\u4e2d\uff0c\u9664\u4e86\u4e0a\u7f51\u8df3\u677f\u673a\u80fd\u4e0a\u7f51\u5916\uff0c\u5176\u4ed6\u6240\u6709\u8bbe\u5907\u90fd\u53ea\u80fd\u8bbf\u95ee\u5185\u7f51\u3002\u5458\u5de5\u7535\u8111\u8d26\u53f7\u901a\u8fc7samba PDC\u505a\u57df\u63a7\u8fdb\u884c\u7ba1\u7406\uff08<a href=\"https:\/\/yyshell.com\/?p=263\">\u53c2\u8003\u6587\u7ae0<\/a>\uff09\u3002PDC\u4f1a\u5b9a\u671f\u628a\u7cfb\u7edf\u7684passwd\uff0cshadow\u6587\u4ef6\uff0csamba\u7684private\u7b49\u6587\u4ef6\u5939\u540c\u6b65\u5230\u5907\u7528\u7684samba\u670d\u52a1\u5668\u4e2d\u53bb\uff0c\u5907\u7528\u7684samba\u670d\u52a1\u5668\u901a\u8fc7lsyncd\u6765\u540c\u6b65\u5916\u7f51\u4e0b\u8f7d\u7684\u8d44\u6599\u5230\u5185\u7f51samba PDC\u4e2d\uff0c\u5458\u5de5\u901a\u8fc7\u81ea\u5df1\u7684\u529e\u516c\u7535\u8111\uff0c\u5728pdc\u4e2d\u8bfb\u53d6\u6587\u4ef6\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6211\u4eec\u7684\u8df3\u677f\u673a\u9700\u8981\u7981\u7528\u526a\u5207\u677f\u7b49\u4e00\u7cfb\u5217\u5171\u4eab\uff0c\u5982\u4f55\u8bbe\u5907\u8fdc\u7a0b\u7684\u8df3\u677f\u673a\u8bf7\u53c2\u8003<a href=\"https:\/\/yyshell.com\/?p=282\">\u6b64\u6587\u7ae0<\/a>\u3002<\/p>\n<p>\u8fd9\u91cc\u4e3b\u8981\u8bb2\u7684\u662f\uff0c\u5982\u4f55\u901a\u8fc7lsyncd\u8fd9\u4e2a\u8f6f\u4ef6\uff08\u8fd9\u91cc\u662f\u5b83\u7684<a href=\"https:\/\/github.com\/axkibe\/lsyncd\">\u8f6f\u4ef6\u4e3b\u9875<\/a>\uff09\uff0c\u628a\u5907\u7528samba\u4e0a\u7684\u6587\u4ef6\uff0c\u540c\u6b65\u5230\u6211\u4eec\u4e3b\u8981\u7684\u6587\u4ef6\u670d\u52a1\u5668samba PDC\u4e0a\u3002<\/p>\n<p>\u4e24\u53f0samba\u64cd\u4f5c\u7cfb\u7edf\u662fcentos6\uff08\u7406\u8bba\u4e0acentos7\u7684\u914d\u7f6e\u5e94\u8be5\u662f\u4e00\u6837\u7684\uff09\uff0c\u5b83\u4eec\u7684IP\u5730\u5740\u5728192.168.1.0\/24\u6bb5\u4e2d\u3002\u540c\u6b65\u6587\u4ef6\u5939\u5206\u4e24\u53f0\u673a\u5668\u90fd\u662f\/srv\/tongbu\u76ee\u5f55\u3002\u6211\u4eec\u628a\u63a5\u6536\u6587\u4ef6\u7684samba pdc\u79f0\u4e3a\u670d\u52a1\u7aef(192.168.1.2)\uff0c\u53d1\u9001\u6587\u4ef6\u7684\u5907\u7528samba\u79f0\u4e3a\u5ba2\u6237\u7aef(192.168.1.3)\u3002\u4e0b\u9762\u8bb2\u4e0b\u4e24\u4e2a\u8bbe\u7f6e\u3002<\/p>\n<h3>\u670d\u52a1\u7aef\uff1a<\/h3>\n<p>\u5b89\u88c5rsync\u548cxinetd\uff0c\u542f\u52a8\u76f8\u5e94\u7684rsync\u670d\u52a1<\/p>\n<pre class=\"lang:sh decode:true \">yum install rsync xinetd<\/pre>\n<p>\u521b\u5efaxinetd\u914d\u7f6e\u6587\u4ef6\uff1a<br \/>\nvim \/etc\/xinetd.d\/rsync\u5185\u5bb9\u5982\u4e0b:<\/p>\n<pre class=\"lang:sh decode:true \">service rsync\r\n{\r\n   disable         = no\r\n   only_from       = 192.168.1.0\/24\r\n   socket_type     = stream\r\n   wait            = no\r\n   user            = root\r\n   server          = \/usr\/bin\/rsync\r\n   server_args     = --daemon\r\n   log_on_failure += USERID\r\n}<\/pre>\n<p>\u542f\u52a8\u5b88\u62a4\u8fdb\u7a0b\uff1a<br \/>\nservice xinetd start<br \/>\n\u52a0\u5165\u5f00\u673a\u542f\u52a8\uff1a<br \/>\nchkconfig xinetd on<\/p>\n<p>\u67e5\u770brsync\u670d\u52a1\u662f\u5426\u5df2\u7ecf\u542f\u52a8\uff1a<br \/>\nnetstat -tnlp | grep 873<\/p>\n<p>\u9632\u706b\u5899\u653e\u884c\u7aef\u53e3\uff1a<br \/>\niptables -I INPUT -p tcp &#8211;dport 873 -j ACCEPT<br \/>\nservice iptables save<br \/>\nservice iptables restart<\/p>\n<p>\u540c\u6b65\u76ee\u5f55\u7684selinux\u8bbe\u7f6e\uff1a<br \/>\n\u5982\u679c\u5de5\u4f5c\u76ee\u5f55\u662f\u5355\u7eaf\u7684rsync\u540c\u6b65\u76ee\u5f55\uff0c\u5219\u628a\u540c\u6b65\u7684\/srv\/tongbu\u6587\u4ef6\u5939\u8bbe\u7f6e\u6210<b>rsync_data_t<\/b>\u8fd9\u4e2a\u4e0a\u4e0b\u6587\u5373\u53ef\u3002\u6b64\u5904\uff0c\u6211\u4eec\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e0d\u4ec5\u4ec5\u662frsync\u5de5\u4f5c\u76ee\u5f55\uff0c\u8fd8\u662fsamba\u5de5\u4f5c\u76ee\u5f55\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u5e94\u8be5\u8bbe\u7f6e\u6210public_content\uff0c\u6b64\u5904\uff0c\u6211\u4eec\u7684\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e0d\u4ec5\u9700\u8981\u8bfb\u53d6\uff0c\u8fd8\u9700\u8981\u5199\u5165\uff0c\u56e0\u6b64\u8981\u8fd9\u6837\u8bbe\u7f6e\u4e0a\u4e0b\u6587\uff1a<br \/>\nsemanage fcontext -a -t public_content_rw_t &#8220;\/srv\/tongbu(\/.*)?&#8221;<br \/>\nrestorecon -Rv \/srv\/tongbu<br \/>\n\u53e6\u5916\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u5f00\u542f\u4e00\u4e9b\u5e03\u5c14\u503c\uff1a<br \/>\nsetsebool -P allow_rsync_anon_write 1<br \/>\n\u5982\u679c\u8981\u6539\u53d8rsync\u7684\u9ed8\u8ba4\u7aef\u53e3\uff0c\u9700\u8981\u7528semanage port \u66f4\u6539rsync_port_t\u7684\u503c\uff0c\u5177\u4f53\u65b9\u6848\u89c1\u8fd9\u7bc7\u66f4\u6539ssh\u9ed8\u8ba4\u7aef\u53e3\u7684<a href=\"https:\/\/yyshell.com\/?p=25\">\u6587\u7ae0<\/a>\u3002\u4f60\u53ef\u4ee5\u5b89\u88c5selinux-policy-doc\u8fd9\u4e2a\u5305\u540e\uff0c\u7528man 8 rsync_selinux\u67e5\u770b\u5bf9\u4e8ersync\u6765\u8bf4\uff0cselinux\u5177\u4f53\u7684\u914d\u7f6e\u65b9\u6cd5\u3002<\/p>\n<p>\u914d\u7f6ersync\u6587\u4ef6\uff1a<br \/>\nvim \/etc\/rsyncd.conf \u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:sh decode:true \">[tongbu]\r\npath = \/srv\/tongbu\/\r\ncomment = lsyncd test\r\nuid = root\r\ngid = root\r\nread only = no\r\nauth users = lsyncd\r\nsecrets file = \/etc\/rsyncd\/rsyncd.secret<\/pre>\n<p>\u914d\u7f6e\u4e0a\u9762\u7684\u5bc6\u7801\u6587\u4ef6\uff1a<br \/>\nvim \/etc\/rsyncd\/rsyncd.secret \u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:sh decode:true \">lsyncd:passmima<\/pre>\n<p>\u8bbe\u7f6e\u5bc6\u7801\u6587\u4ef6\u6743\u9650\uff1a<\/p>\n<pre class=\"lang:sh decode:true \">chmod 600 \/etc\/rsyncd\/rsyncd.secret<\/pre>\n<p>\u6b64\u65f6\u91cd\u542f\u4e0bxinetd\u670d\u52a1\uff0c\u6211\u4eec\u7684\u670d\u52a1\u7aef\u5927\u81f4\u5c31\u5df2\u7ecf\u5de5\u4f5c\u5b8c\u6210\u4e86\u3002<\/p>\n<h3>\u5ba2\u6237\u7aef\u914d\u7f6e\uff1a<\/h3>\n<p>\u5b89\u88c5rsync\u548clsyncd\u8f6f\u4ef6\uff1a<br \/>\nyum install rsync epel-release<br \/>\nyum install lsyncd<\/p>\n<p>\u914d\u7f6e\u540c\u6b65\u5bc6\u7801\uff1a<br \/>\nvim \/etc\/rsyncd\/rsyncd.secret \u5185\u5bb9\u5982\u4e0b<\/p>\n<pre class=\"lang:sh decode:true \">passmima<\/pre>\n<p>\u66f4\u6539\u5bc6\u7801\u6587\u4ef6\u6743\u9650\uff1a<\/p>\n<pre class=\"lang:sh decode:true \">chmod 600 \/etc\/rsyncd\/rsyncd.secret<\/pre>\n<p>\u914d\u7f6elsyncd\uff1a<br \/>\nvim \/etc\/lsyncd.conf \u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:sh decode:true\">settings {\r\n    logfile =\"\/var\/log\/lsyncd\/lsyncd.log\",\r\n    statusFile =\"\/tmp\/lsyncd.status\",\r\n    maxProcesses = 8,\r\n    }\r\n\r\n\r\nsync {\r\n    default.rsync,\r\n    source    = \"\/srv\/tongbu\",\r\n    target    = \"lsyncd@192.168.1.2::tongbu\",\r\n    delete=\"running\",\r\n    exclude = { \".*\", \".tmp\" },\r\n    delay = 30,\r\n    init = false,\r\n    rsync     = {\r\n        binary = \"\/usr\/bin\/rsync\",\r\n        archive = true,\r\n        compress = true,\r\n        whole_file = false,\r\n        verbose   = true,\r\n        password_file = \"\/etc\/rsyncd\/rsyncd.secret\",\r\n        _extra    = {\"--bwlimit=200\"}\r\n        }\r\n    }\r\n<\/pre>\n<p>lsyncd\u9ed8\u8ba4\u4f7f\u7528\u7684inotifyMode\u662fCloseWrite\uff0c\u8fd9\u91cc\u5c31\u4f7f\u7528\u9ed8\u8ba4\u503c\uff0c\u6545\u6ca1\u6709\u914d\u7f6e\uff0c\u5982\u679c\u6709\u9700\u8981\uff0c\u53ef\u4ee5\u518dsettings\u91cc\u9762\u914d\u7f6e\u4e0b\u3002<\/p>\n<p>\u542f\u52a8lsyncd\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\uff1a<br \/>\nservice lsyncd start<br \/>\nchkconfig lsyncd on<\/p>\n<p>\u6b64\u65f6\uff0c\u6211\u4eec\u5728\u5ba2\u6237\u7aef\u4e0b\u7684\/srv\/tongbu\u6587\u4ef6\u5939\u4e2d\u65b0\u589e\u6587\u4ef6\uff0c\u5728\u670d\u52a1\u7aef\u7684\/srv\/tongbu\u6587\u4ef6\u5939\u5e94\u8be5\u4f1a\u770b\u5230\u53d8\u5316\u3002\u65e5\u5fd7\u7684\u63d0\u793a\uff1a<\/p>\n<blockquote><p>Wed Sep\u00a0 7 16:56:42 2016 Normal: Calling rsync with filter-list of new\/modified files\/dirs<br \/>\n\/test\/4913<br \/>\n\/test\/<br \/>\n\/<br \/>\n\/test\/hjkl.txt<br \/>\n\/test\/hjkl.txt~<br \/>\nsending incremental file list<br \/>\ntest\/<br \/>\ntest\/hjkl.txt<\/p>\n<p>sent 202 bytes\u00a0 received 31 bytes\u00a0 22.19 bytes\/sec<br \/>\ntotal size is 48\u00a0 speedup is 0.21<br \/>\nWed Sep\u00a0 7 16:56:52 2016 Normal: Finished a list after exitcode: 0<\/p><\/blockquote>\n<p>\u5728\u6587\u4ef6\u7279\u522b\u591a\u7684\u65f6\u5019\uff0c\u6709\u62a5\u9053\u663e\u793a\u4f1a\u51fa\u73b0\u4e22\u5931\u6587\u4ef6\u7684\u73b0\u8c61\uff0c\u6211\u4eec\u9700\u8981\u628a\u670d\u52a1\u7aef\u7684\/etc\/xinetd.conf\u6587\u4ef6\u4e2d\u6539\u4e0b\uff1a<\/p>\n<pre class=\"lang:sh decode:true \">cps             = 500 30\r\ninstances       = UNLIMITED\r\nper_source      = UNLIMITED<\/pre>\n<p>\u5177\u4f53\u914d\u7f6e\u542b\u4e49\u53ef\u4ee5man xinetd.conf\u770b\u4e00\u4e0b\u3002<\/p>\n<p>lsyncd\u7684\u914d\u7f6e\u53ef\u4ee5\u53c2\u8003<a href=\"http:\/\/axkibe.github.io\/lsyncd\/\">\u5b98\u65b9\u6587\u6863<\/a>\u3002\u82f1\u6587\u4e0d\u597d\u7684\u770b\u4e0b<a href=\"http:\/\/seanlook.com\/2015\/05\/06\/lsyncd-synchronize-realtime\/\">\u8fd9\u4e2a<\/a>\u4e5f\u4e0d\u9519\u3002<\/p>\n<div id=\"icibaCirclePointer\" style=\"position: absolute; top: 410px; left: 703px;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u4f60\u7684\u516c\u53f8\u5f88\u591a\u6570\u636e\u90fd\u662f\u6d89\u5bc6\u7684\uff0c\u4f60\u5df2\u7ecf\u628aUSB\u7b49\u4f20\u8f93\u6570\u636e\u7684\u7aef\u53e3\u5df2\u7ecf\u7981\u6b62\u4e86\uff0c\u673a\u7bb1\u4e0a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,12],"tags":[35,22,33,14,36,34],"class_list":["post-322","post","type-post","status-publish","format-standard","hentry","category-linux","category-12","tag-lsyncd","tag-rdp","tag-rsync","tag-samba","tag-selinux","tag-xinetd"],"_links":{"self":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=322"}],"version-history":[{"count":11,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":458,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions\/458"}],"wp:attachment":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}