{"id":3791,"date":"2019-07-12T21:02:53","date_gmt":"2019-07-12T13:02:53","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3791"},"modified":"2022-05-18T12:55:45","modified_gmt":"2022-05-18T04:55:45","slug":"xhost","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/xhost","title":{"rendered":"xhost\u547d\u4ee4 – X\u670d\u52a1\u5668\u8bbf\u95ee\u63a7\u5236\u5de5\u5177"},"content":{"rendered":"\n

xhost\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dX-Windows host\u201c\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662fX\u670d\u52a1\u5668\u8bbf\u95ee\u63a7\u5236\u5de5\u5177\uff0c\u8fd0\u884cxhost\u547d\u4ee4\u524d\u9700\u8981\u5148\u542f\u52a8\u672c\u5730\u7684X-windows\u56fe\u5f62\u754c\u9762\u670d\u52a1\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>xhost [\u53c2\u6570] [\u4e3b\u673a]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

+<\/td>\u5173\u95ed\u8bbf\u95ee\u6388\u6743\uff0c\u5141\u8bb8\u4efb\u4f55\u4e3b\u673a\u8bbf\u95ee\u672c\u5730X\u670d\u52a1\u5668<\/td><\/tr>
--<\/td>\u6253\u5f00\u8bbf\u95ee\u6388\u6743\uff0c\u4ec5\u5141\u8bb8\u6388\u6743\u6e05\u5355\u4e2d\u7684\u4e3b\u673a\u8bbf\u95ee\u672c\u5730X\u670d\u52a1\u5668<\/td><\/tr>
+<\u4e3b\u673a\u6216ip><\/td>\u5141\u8bb8\u6307\u5b9a\u7684\u4e3b\u673a\u8bbf\u95ee\u672c\u5730X\u670d\u52a1\u5668<\/td><\/tr>
-<\u4e3b\u673a\u6216ip><\/td>\u7981\u6b62\u6307\u5b9a\u7684\u4e3b\u673a\u8bbf\u95ee\u672c\u5730X\u670d\u52a1\u5668<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u5f53\u524dX\u670d\u52a1\u5668\u4e0a\u7684\u6388\u6743\u914d\u7f6e\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# xhost<\/strong><\/pre>\n\n\n\n

\u6dfb\u52a0\u6307\u5b9a\u7684IP\u5730\u5740\u4e3a\u6388\u6743\u8bbf\u95eeX\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# xhost + 192.168.10.10<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

xhost\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dX-Windows host\u201c\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662fX\u670d\u52a1\u5668\u8bbf\u95ee\u63a7\u5236\u5de5\u5177\uff0c\u8fd0\u884cxhos […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3791"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3791"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3791\/revisions"}],"predecessor-version":[{"id":9836,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3791\/revisions\/9836"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}