{"id":147,"date":"2021-01-15T11:30:28","date_gmt":"2021-01-15T03:30:28","guid":{"rendered":"http:\/\/blog.gamekingtao.top\/?p=147"},"modified":"2021-01-15T11:30:28","modified_gmt":"2021-01-15T03:30:28","slug":"mongodb-%e5%91%bd%e4%bb%a4%e6%9f%a5%e8%af%a2%e6%89%80%e6%9c%89%e6%95%b0%e6%8d%ae%e5%ba%93%e5%92%8c%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/blog.gamekingtao.top\/index.php\/2021\/01\/15\/mongodb-%e5%91%bd%e4%bb%a4%e6%9f%a5%e8%af%a2%e6%89%80%e6%9c%89%e6%95%b0%e6%8d%ae%e5%ba%93%e5%92%8c%e8%a1%a8\/","title":{"rendered":"MongoDb \u547d\u4ee4\u67e5\u8be2\u6240\u6709\u6570\u636e\u5e93\u548c\u8868"},"content":{"rendered":"<p>MongoDb \u547d\u4ee4\u67e5\u8be2\u6240\u6709\u6570\u636e\u5e93\u5217\u8868<\/p>\n<p>CODE:<\/p>\n<p>&gt; show dbs<\/p>\n<p>\u5982\u679c\u60f3\u67e5\u770b\u5f53\u524d\u8fde\u63a5\u5728\u54ea\u4e2a\u6570\u636e\u5e93\u4e0b\u9762\uff0c\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165db<br \/>\nCODE:<\/p>\n<p>&gt; db<br \/>\nAdmin<br \/>\n\u60f3\u5207\u6362\u5230test\u6570\u636e\u5e93\u4e0b\u9762<br \/>\nCODE:<\/p>\n<p>&gt; use test<br \/>\nswitched to db test<br \/>\n&gt; db<br \/>\nTest<br \/>\n\u60f3\u67e5\u770btest\u4e0b\u6709\u54ea\u4e9b\u8868\u6216\u8005\u53ebcollection\uff0c\u53ef\u4ee5\u8f93\u5165<br \/>\nCODE:<\/p>\n<p>&gt; show collections<br \/>\nsystem.indexes<br \/>\nuser<br \/>\n\u60f3\u77e5\u9053mongodb\u652f\u6301\u54ea\u4e9b\u547d\u4ee4\uff0c\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165help<br \/>\nCODE:<br \/>\n&gt; help<br \/>\nDos\u4ee3\u7801 \u6536\u85cf\u4ee3\u7801<\/p>\n<p>HELP<br \/>\nshow dbs show database names<br \/>\nshow collections show collections in current database<br \/>\nshow users show users in current database<br \/>\nshow profile show most recent system.profile entries with time &gt;= 1ms<br \/>\nuse &lt;db name&gt; set curent database to &lt;db name&gt;<br \/>\ndb.help() help on DB methods<br \/>\ndb.foo.help() help on collection methods<br \/>\ndb.foo.find() list objects in collection foo<br \/>\ndb.foo.find( { a : 1 } ) list objects in foo where a == 1<br \/>\nit result of the last line evaluated; use to further iterate<\/p>\n<p>\u5982\u679c\u60f3\u77e5\u9053\u5f53\u524d\u6570\u636e\u5e93\u652f\u6301\u54ea\u4e9b\u65b9\u6cd5\uff1a<br \/>\nCODE:<\/p>\n<p>&gt; db.help();<br \/>\nJava\u4ee3\u7801 \u6536\u85cf\u4ee3\u7801<\/p>\n<p>DB methods:<br \/>\ndb.addUser(username, password) \u6dfb\u52a0\u6570\u636e\u5e93\u6388\u6743\u7528\u6237<br \/>\ndb.auth(username, password) \u8bbf\u95ee\u8ba4\u8bc1<br \/>\ndb.cloneDatabase(fromhost) \u514b\u9686\u6570\u636e\u5e93<br \/>\ndb.commandHelp(name) returns the help for the command<br \/>\ndb.copyDatabase(fromdb, todb, fromhost) \u590d\u5236\u6570\u636e\u5e93<br \/>\ndb.createCollection(name, { size : &#8230;, capped : &#8230;, max : &#8230; } ) \u521b\u5efa\u8868<br \/>\ndb.currentOp() displays the current operation in the db<br \/>\ndb.dropDatabase() \u5220\u9664\u5f53\u524d\u6570\u636e\u5e93<br \/>\ndb.eval_r(func, args) run code server-side<br \/>\ndb.getCollection(cname) same as db[&#8216;cname&#8217;] or db.cname<br \/>\ndb.getCollectionNames() \u83b7\u53d6\u5f53\u524d\u6570\u636e\u5e93\u7684\u8868\u540d<br \/>\ndb.getLastError() &#8211; just returns the err msg string<br \/>\ndb.getLastErrorObj() &#8211; return full status object<br \/>\ndb.getMongo() get the server connection object<br \/>\ndb.getMongo().setSlaveOk() allow this connection to read from the nonmaster member of a replica pair<br \/>\ndb.getName()<br \/>\ndb.getPrevError()<br \/>\ndb.getProfilingLevel()<br \/>\ndb.getReplicationInfo()<br \/>\ndb.getSisterDB(name) get the db at the same server as this onew<br \/>\ndb.killOp() kills the current operation in the db<br \/>\ndb.printCollectionStats() \u6253\u5370\u5404\u8868\u7684\u72b6\u6001\u4fe1\u606f<br \/>\ndb.printReplicationInfo() \u6253\u5370\u4e3b\u6570\u636e\u5e93\u7684\u590d\u5236\u72b6\u6001\u4fe1\u606f<br \/>\ndb.printSlaveReplicationInfo() \u6253\u5370\u4ece\u6570\u636e\u5e93\u7684\u590d\u5236\u72b6\u6001\u4fe1\u606f<br \/>\ndb.printShardingStatus() \u6253\u5370\u5206\u7247\u72b6\u6001\u4fe1\u606f<br \/>\ndb.removeUser(username) \u5220\u9664\u6570\u636e\u5e93\u7528\u6237<br \/>\ndb.repairDatabase() \u4fee\u590d\u6570\u636e\u5e93<br \/>\ndb.resetError()<br \/>\ndb.runCommand(cmdObj) run a database command. if cmdObj is a string, turns it into { cmdObj : 1 }<br \/>\ndb.setProfilingLevel(level) 0=off 1=slow 2=all<br \/>\ndb.shutdownServer()<br \/>\ndb.version() current version of the server<\/p>\n<p>\u5982\u679c\u60f3\u77e5\u9053\u5f53\u524d\u6570\u636e\u5e93\u4e0b\u7684\u8868\u6216\u8005\u8868collection\u652f\u6301\u54ea\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e0b\u547d\u4ee4\u5982\uff1a<br \/>\nCODE:<\/p>\n<p>&gt; db.user.help(); user\u4e3a\u8868\u540d<br \/>\nJava\u4ee3\u7801 \u6536\u85cf\u4ee3\u7801<\/p>\n<p>DBCollection help<br \/>\ndb.foo.count() \u7edf\u8ba1\u8868\u7684\u884c\u6570<br \/>\ndb.foo.dataSize() \u7edf\u8ba1\u8868\u6570\u636e\u7684\u5927\u5c0f<br \/>\ndb.foo.distinct( key ) &#8211; eg. db.foo.distinct( &#8216;x&#8217; ) \u6309\u7167\u7ed9\u5b9a\u7684\u6761\u4ef6\u9664\u91cd<br \/>\ndb.foo.drop() drop the collection \u5220\u9664\u8868<br \/>\ndb.foo.dropIndex(name) \u5220\u9664\u6307\u5b9a\u7d22\u5f15<br \/>\ndb.foo.dropIndexes() \u5220\u9664\u6240\u6709\u7d22\u5f15<br \/>\ndb.foo.ensureIndex(keypattern,options) &#8211; options should be an object with these possible fields: name, unique, dropDups \u589e\u52a0\u7d22\u5f15<br \/>\ndb.foo.find( [query] , [fields]) &#8211; first parameter is an optional query filter. second parameter is optional set of fields to return.<\/p>\n<p>\u6839\u636e\u6761\u4ef6\u67e5\u627e\u6570\u636e<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u901a\u8fc7\u6761\u4ef6\u67e5\u8be2\uff1a db.foo.find( { x : 77 } , { name : 1 , x : 1 } )<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>\u5982\u679c\u60f3\u77e5\u9053\u5f53\u524d\u6570\u636e\u5e93\u4e0b\u7684\u8868\u6216\u8005\u8868collection\u652f\u6301\u54ea\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e0b\u547d\u4ee4\u5982\uff1a<br \/>\nCODE:<\/p>\n<p>&gt; db.user.help(); user\u4e3a\u8868\u540d<br \/>\nJava\u4ee3\u7801 \u6536\u85cf\u4ee3\u7801<\/p>\n<p>DBCollection help<br \/>\ndb.foo.count() \u7edf\u8ba1\u8868\u7684\u884c\u6570<br \/>\ndb.foo.dataSize() \u7edf\u8ba1\u8868\u6570\u636e\u7684\u5927\u5c0f<br \/>\ndb.foo.distinct( key ) &#8211; eg. db.foo.distinct( &#8216;x&#8217; ) \u6309\u7167\u7ed9\u5b9a\u7684\u6761\u4ef6\u9664\u91cd<br \/>\ndb.foo.drop() drop the collection \u5220\u9664\u8868<br \/>\ndb.foo.dropIndex(name) \u5220\u9664\u6307\u5b9a\u7d22\u5f15<br \/>\ndb.foo.dropIndexes() \u5220\u9664\u6240\u6709\u7d22\u5f15<br \/>\ndb.foo.ensureIndex(keypattern,options) &#8211; options should be an object with these possible fields: name, unique, dropDups \u589e\u52a0\u7d22\u5f15<br \/>\ndb.foo.find( [query] , [fields]) &#8211; first parameter is an optional query filter. second parameter is optional set of fields to return.<\/p>\n<p>\u6839\u636e\u6761\u4ef6\u67e5\u627e\u6570\u636e<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u901a\u8fc7\u6761\u4ef6\u67e5\u8be2\uff1a db.foo.find( { x : 77 } , { name : 1 , x : 1 } )<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\ninstead of connecting to a mongod instance<br \/>\n-v [ &#8211;verbose ] be more verbose (include multiple times for more<br \/>\nverbosity e.g. -vvvvv)<br \/>\n-o [ &#8211;out ] arg (=dump) output directory<br \/>\n[falcon@www.fwphp.cn ~\/mongodb\/bin]$ .\/mongodump -d test -o test\/<br \/>\nconnected to: 127.0.0.1<br \/>\nDATABASE: test to test\/test<br \/>\ntest.user to test\/test\/user.bson<br \/>\n100000 objects<br \/>\ntest.system.indexes to test\/test\/system.indexes.bson<br \/>\n1 objects<br \/>\n[falcon@www.fwphp.cn ~\/mongodb\/bin]$ ls<br \/>\n2 mongo mongodump mongofiles mongorestore mongosniff<br \/>\ndump mongod mongoexport mongoimport mongos test<br \/>\nMongoDB\u7684\u6570\u636e\u6062\u590d\u5de5\u5177mongorestore<\/p>\n<p>\u67e5\u770btest\u5e93\u4e2d\u7684\u8868<br \/>\nCODE:<\/p>\n<p>&gt; show collections<br \/>\nsystem.indexes<br \/>\nUser<br \/>\n\u5220\u9664user\u8868<br \/>\nCODE:<\/p>\n<p>&gt; db.user.drop();<br \/>\nTrue<\/p>\n<p>&gt; show collections<br \/>\nSystem.indexes<br \/>\n\u73b0\u5728\u5229\u7528mongorestore\u8868\u6062\u590d\u521a\u624d\u5229\u7528mongodump\u5907\u4efd\u7684\u6570\u636e<br \/>\nCODE:<\/p>\n<p>[falcon@www.fwphp.cn ~\/mongodb\/bin]$ .\/mongorestore &#8211;help<br \/>\nusage: .\/mongorestore [options] [directory or filename to restore from]<br \/>\noptions:<br \/>\n&#8211;help produce help message<br \/>\n-h [ &#8211;host ] arg mongo host to connect to<br \/>\n-d [ &#8211;db ] arg database to use<br \/>\n-c [ &#8211;collection ] arg collection to use (some commands)<br \/>\n-u [ &#8211;username ] arg username<br \/>\n-p [ &#8211;password ] arg password<br \/>\n&#8211;dbpath arg directly access mongod data files in this path,<br \/>\ninstead of connecting to a mongod instance<br \/>\n-v [ &#8211;verbose ] be more verbose (include multiple times for more<br \/>\nverbosity e.g. -vvvvv)<\/p>\n<p>[falcon@www.fwphp.cn ~\/mongodb\/bin]$ .\/mongorestore -d test -c user test\/test\/user.bson<br \/>\nconnected to: 127.0.0.1<br \/>\ntest\/test\/user.bson<br \/>\ngoing into namespace [test.user]<\/p>\n<p>100000 objects<br \/>\nUser\u8868\u4e2d\u768410w\u6761\u8bb0\u5f55\u5df2\u7ecf\u6062\u590d<br \/>\nCODE:<\/p>\n<p>&gt; show collections<br \/>\nsystem.indexes<br \/>\nuser<br \/>\n&gt; db.user.find();<br \/>\n{ &#8220;_id&#8221; : ObjectId(&#8220;4b9c8db08ead0e3347000000&#8221;), &#8220;uid&#8221; : 1, &#8220;username&#8221; : &#8220;Falcon.C-1&#8221; }<br \/>\n{ &#8220;_id&#8221; : ObjectId(&#8220;4b9c8db08ead0e3347010000&#8221;), &#8220;uid&#8221; : 2, &#8220;username&#8221; : &#8220;Falcon.C-2&#8221; }<br \/>\n{ &#8220;_id&#8221; : ObjectId(&#8220;4b9c8db08ead0e3347020000&#8221;), &#8220;uid&#8221; : 3, &#8220;username&#8221; : &#8220;Falcon.C-3&#8221; }<br \/>\n{ &#8220;_id&#8221; : ObjectId(&#8220;4b9c8db08ead0e3347030000&#8221;), &#8220;uid&#8221; : 4, &#8220;username&#8221; : &#8220;Falcon.C-4&#8221; }<br \/>\n{ &#8220;_id&#8221; : ObjectId(&#8220;4b9c8db08ead0e3347040000&#8221;), &#8220;uid&#8221; : 5, &#8220;username&#8221; : &#8220;Falcon.C-5&#8221; }<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;..<br \/>\nhas more<\/p>\n<p>1. \u8d85\u7ea7\u7528\u6237\u76f8\u5173\uff1a<\/p>\n<p>#\u589e\u52a0\u6216\u4fee\u6539\u7528\u6237\u5bc6\u7801<\/p>\n<p>db.addUser(&#8216;admin&#8217;,&#8217;pwd&#8217;)<\/p>\n<p>#\u67e5\u770b\u7528\u6237\u5217\u8868<\/p>\n<p>db.system.users.find()<\/p>\n<p>#\u7528\u6237\u8ba4\u8bc1<\/p>\n<p>db.auth(&#8216;admin&#8217;,&#8217;pwd&#8217;)<\/p>\n<p>#\u5220\u9664\u7528\u6237<\/p>\n<p>db.removeUser(&#8216;mongodb&#8217;)<\/p>\n<p>#\u67e5\u770b\u6240\u6709\u7528\u6237<\/p>\n<p>show users<\/p>\n<p>#\u67e5\u770b\u6240\u6709\u6570\u636e\u5e93<\/p>\n<p>show dbs<\/p>\n<p>#\u67e5\u770b\u6240\u6709\u7684collection<\/p>\n<p>show collections<\/p>\n<p>#\u67e5\u770b\u5404collection\u7684\u72b6\u6001<\/p>\n<p>db.printCollectionStats()<\/p>\n<p>#\u67e5\u770b\u4e3b\u4ece\u590d\u5236\u72b6\u6001<\/p>\n<p>db.printReplicationInfo()<\/p>\n<p>#\u4fee\u590d\u6570\u636e\u5e93<\/p>\n<p>db.repairDatabase()<\/p>\n<p>#\u8bbe\u7f6e\u8bb0\u5f55profiling\uff0c0=off 1=slow 2=all<\/p>\n<p>db.setProfilingLevel(1)<\/p>\n<p>#\u67e5\u770bprofiling<br \/>\nshow profile<\/p>\n<p>#\u62f7\u8d1d\u6570\u636e\u5e93<\/p>\n<p>db.copyDatabase(&#8216;mail_addr&#8217;,&#8217;mail_addr_tmp&#8217;)<\/p>\n<p>#\u5220\u9664collection<\/p>\n<p>db.mail_addr.drop()<\/p>\n<p>#\u5220\u9664\u5f53\u524d\u7684\u6570\u636e\u5e93<\/p>\n<p>db.dropDatabase()<\/p>\n<p>2. \u5ba2\u6237\u7aef\u8fde\u63a5<\/p>\n<p>\/usr\/local\/mongodb\/bin\/mongo user_addr -u user -p &#8216;pwd&#8217;<\/p>\n<p>3. \u589e\u5220\u6539<\/p>\n<p>#\u5b58\u50a8\u5d4c\u5957\u7684\u5bf9\u8c61<\/p>\n<p>db.foo.save({&#8216;name&#8217;:&#8217;ysz&#8217;,&#8217;address&#8217;:{&#8216;city&#8217;:&#8217;beijing&#8217;,&#8217;post&#8217;:100096},&#8217;phone&#8217;:[138,139]})<\/p>\n<p>#\u5b58\u50a8\u6570\u7ec4\u5bf9\u8c61<\/p>\n<p>db.user_addr.save({&#8216;Uid&#8217;:&#8217;yushunzhi@sohu.com&#8217;,&#8217;Al&#8217;:[&#8216;test-1@sohu.com&#8217;,&#8217;test-2@sohu.com&#8217;]})<\/p>\n<p>#\u6839\u636equery\u6761\u4ef6\u4fee\u6539\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u5219\u63d2\u5165\uff0c\u5141\u8bb8\u4fee\u6539\u591a\u6761\u8bb0\u5f55<br \/>\ndb.foo.update({&#8216;yy&#8217;:5},{&#8216;$set&#8217;:{&#8216;xx&#8217;:2}},upsert=true,multi=true)<\/p>\n<p>#\u5220\u9664yy=5\u7684\u8bb0\u5f55<\/p>\n<p>db.foo.remove({&#8216;yy&#8217;:5})<\/p>\n<p>#\u5220\u9664\u6240\u6709\u7684\u8bb0\u5f55<\/p>\n<p>db.foo.remove()<\/p>\n<p>4. \u7d22\u5f15<\/p>\n<p>\u589e\u52a0\u7d22\u5f15\uff1a1(ascending),-1(descending)<\/p>\n<p>db.things.ensureIndex({firstname: 1, lastname: 1}, {unique: true});<\/p>\n<p>#\u7d22\u5f15\u5b50\u5bf9\u8c61<\/p>\n<p>db.user_addr.ensureIndex({&#8216;Al.Em&#8217;: 1})<\/p>\n<p>#\u67e5\u770b\u7d22\u5f15\u4fe1\u606f<\/p>\n<p>db.deliver_status.getIndexes()<\/p>\n<p>db.deliver_status.getIndexKeys()<\/p>\n<p>#\u6839\u636e\u7d22\u5f15\u540d\u5220\u9664\u7d22\u5f15<br \/>\ndb.user_addr.dropIndex(&#8216;Al.Em_1&#8217;)<\/p>\n<p>5. \u67e5\u8be2<\/p>\n<p>\u67e5\u627e\u6240\u6709<\/p>\n<p>db.foo.find()<\/p>\n<p>#\u67e5\u627e\u4e00\u6761\u8bb0\u5f55<\/p>\n<p>db.foo.findOne()<\/p>\n<p>#\u6839\u636e\u6761\u4ef6\u68c0\u7d2210\u6761\u8bb0\u5f55<\/p>\n<p>db.foo.find({&#8216;msg&#8217;:&#8217;Hello 1&#8242;}).limit(10)<\/p>\n<p>#sort\u6392\u5e8f<\/p>\n<p>db.deliver_status.find({&#8216;From&#8217;:&#8217;yushunzhi@sohu.com&#8217;}).sort({&#8216;Dt&#8217;,-1})<\/p>\n<p>db.deliver_status.find().sort({&#8216;Ct&#8217;:-1}).limit(1)<\/p>\n<p>#count\u64cd\u4f5c<\/p>\n<p>db.user_addr.count()<\/p>\n<p>#distinct\u64cd\u4f5c<\/p>\n<p>db.foo.distinct(&#8216;msg&#8217;)<br \/>\n#&gt;\u64cd\u4f5c<\/p>\n<p>db.foo.find({&#8220;timestamp&#8221;: {&#8220;$gte&#8221; : 2}})<\/p>\n<p>#\u5b50\u5bf9\u8c61\u7684\u67e5\u627e<\/p>\n<p>db.foo.find({&#8216;address.city&#8217;:&#8217;beijing&#8217;})<\/p>\n<p>6. \u7ba1\u7406<\/p>\n<p>\u67e5\u770bcollection\u6570\u636e\u7684\u5927\u5c0f<\/p>\n<p>db.deliver_status.dataSize()<\/p>\n<p>#\u67e5\u770bcolleciont\u72b6\u6001<\/p>\n<p>db.deliver_status.stats()<\/p>\n<p>#\u67e5\u8be2\u6240\u6709\u7d22\u5f15\u7684\u5927\u5c0f<\/p>\n<p>db.deliver_status.totalIndexSize()<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MongoDb \u547d\u4ee4\u67e5\u8be2\u6240\u6709\u6570\u636e\u5e93\u5217\u8868 CODE: &gt; show dbs \u5982\u679c\u60f3\u67e5\u770b\u5f53\u524d\u8fde\u63a5\u5728\u54ea\u4e2a\u6570\u636e\u5e93 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.gamekingtao.top\/index.php\/2021\/01\/15\/mongodb-%e5%91%bd%e4%bb%a4%e6%9f%a5%e8%af%a2%e6%89%80%e6%9c%89%e6%95%b0%e6%8d%ae%e5%ba%93%e5%92%8c%e8%a1%a8\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cMongoDb \u547d\u4ee4\u67e5\u8be2\u6240\u6709\u6570\u636e\u5e93\u548c\u8868\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/147"}],"collection":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":1,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/147\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}