{"id":23810,"date":"2024-05-21T15:40:59","date_gmt":"2024-05-21T07:40:59","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=23810"},"modified":"2024-05-21T15:40:59","modified_gmt":"2024-05-21T07:40:59","slug":"win%e8%bd%af%e4%bb%b6%e8%bd%ac%e9%ba%92%e9%ba%9f%e7%94%b5%e8%84%91%e8%bd%af%e4%bb%b6%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/23810\/","title":{"rendered":"win\u8f6f\u4ef6\u8f6c\u9e92\u9e9f\u7535\u8111\u8f6f\u4ef6\u600e\u4e48\u529e\uff1f"},"content":{"rendered":"

\u9e92\u9e9f\u7535\u8111\u662f\u56fd\u4ea7\u64cd\u4f5c\u7cfb<\/p>\n

<\/figure>\n<\/p>\n

\u7edf\u4e4b\u4e00\uff0c\u5176\u57fa\u4e8eLinux\u5185\u6838\uff0c\u91c7\u7528\u4e86\u81ea\u4e3b\u7814\u53d1\u7684Kylin\u684c\u9762\u73af\u5883\uff0c\u5177\u6709\u9ad8\u5ea6\u7684\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002\u7531\u4e8e\u9e92\u9e9f\u7535\u8111\u7684\u51fa\u73b0\uff0c\u8bb8\u591a\u7528\u6237\u60f3\u5c06\u81ea\u5df1\u7684Windows\u8f6f\u4ef6\u8f6c\u79fb\u5230\u9e92\u9e9f\u7535\u8111\u4e0a\u4f7f\u7528\uff0c\u4e0b\u9762\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd\u5982\u4f55\u5b9e\u73b0win\u8f6f\u4ef6\u8f6c\u9e92\u9e9f\u7535\u8111\u3002<\/p>\n

\u5728\u9e92\u9e9f\u7535\u8111\u4e0a\u8fd0\u884cWindows\u8f6f\u4ef6\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u901a\u8fc7Wine\u6a21\u62df\u5668\u3002Wine\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u517c\u5bb9\u5c42\uff0c\u5b83\u53ef\u4ee5\u5728Linux\u548c\u5176\u4ed6POSIX\u517c\u5bb9\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884cWindows\u5e94\u7528\u7a0b\u5e8f\u3002Wine\u4e0d\u662f\u4e00\u4e2a\u865a\u62df\u673a\uff0c\u5b83\u5e76\u4e0d\u9700\u8981\u5728Linux\u7cfb\u7edf\u4e0a\u8fd0\u884cWindows\u64cd\u4f5c\u7cfb\u7edf\u3002\u800c\u662f\u5c06Windows API\u8f6c\u6362\u4e3aLinux\u7cfb\u7edf\u53ef\u4ee5\u7406\u89e3\u7684API\uff0c\u4ece\u800c\u4f7f\u5f97Windows\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5728Linux\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002<\/p>\n

\u4e0b\u9762\u662fwin\u8f6f\u4ef6\u8f6c\u9e92\u9e9f\u7535\u8111\u7684\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n

1. \u5b89\u88c5Wine\u6a21\u62df\u5668<\/p>\n

\u5728\u9e92\u9e9f\u7535\u8111\u5c06web\u7aef\u7684\u7a0b\u5e8f\u6253\u5305\u6210exe<\/a>\u4e0a\u5b89\u88c5Wine\u6a21\u62df\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f6f\u4ef6\u4e2d\u5fc3\u6216\u8005\u7ec8\u7aef\u547d\u4ee4\u884c\u5b89\u88c5\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

“`bash<\/p>\n

sudo apt install wine<\/p>\n

“`<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5Wine\u7684\u7248\u672c\uff1a<\/p>\n

“`bash<\/p>\n

wine –version<\/p>\n

“`<\/p>\n

2. \u4e0b\u8f7dWindows\u8f6f\u4ef6<\/p>\n

\u5728\u9e92\u9e9f\u7535\u8111\u4e0a\u4e0b\u8f7d\u9700\u8981\u8f6c\u6362\u7684Windows\u8f6f\u4ef6\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5c06\u8f6f\u4ef6\u5305\u89e3\u538b\u5230\u4efb\u610f\u76ee\u5f55\u3002<\/p>\n

3. \u8fd0\u884cWindows\u8f6f\u4ef6<\/p>\n

\u5728\u9e92\u9e9f\u7535\u8111\u4e0a\u6253\u5f00\u7ec8\u7aef\uff0c\u8fdb\u5165\u5230Windows\u8f6f\u4ef6\u6240\u5728\u76ee\u5f55\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884cWindows\u8f6f\u4ef6\uff1a<\/p>\n

“`bash<\/p>\n

wine .\/xxx.exe<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0cxxx.exe\u4e3a\u9700\u8981\u8fd0\u884c\u7684Windows\u8f6f\u4ef6\u7684\u6587\u4ef6\u540d\u3002<\/p>\n

4. \u5b89\u88c5Windows\u8f6f\u4ef6<\/p>\n

\u5982\u679c\u9700\u8981\u5728\u9e92\u9e9f\u7535\u8111\u4e0a\u5b89\u88c5Windows\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884cWindows\u8f6f\u4ef6\u7684\u5b89\u88c5\u7a0b\u5e8f\uff1a<\/p>\n

“`bash<\/p>\n

wine .\/setup.exe<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0csetup.exe\u4e3a\u9700\u8981\u8fd0\u884c\u7684Windows\u8f6f\u4ef6\u7684\u5b89\u88c5\u7a0b\u5e8f\u6587\u4ef6\u540d\u3002<\/p>\n

\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e0d\u662f\u6240\u6709\u7684Windows\u8f6f\u4ef6\u90fd\u53ef\u4ee5\u5728\u9e92\u9e9f\u7535\u8111\u4e0a\u8fd0\u884c\u3002\u4e00\u4e9b\u9700\u8981\u4f9d\u8d56Windows\u64cd\u4f5c\u7cfb\u7edf\u7684\u8f6f\u4ef6\u53ef\u80fd\u65e0\u6cd5\u5728Wine\u6a21\u62df\u5668\u4e0a\u6b63\u5e38\u8fd0\u884c\u3002\u56e0\u6b64\uff0c\u5728\u8fdb\u884cwin\u8f6f\u4ef6\u8f6c\u9e92\u9e9f\u7535\u8111\u65f6\uff0c\u9700\u8981\u5148\u4e86\u89e3\u8f6f\u4ef6\u662f\u5426\u9002\u5408\u5728Wine\u6a21\u62df\u5668\u4e0a\u8fd0\u884c\u3002<\/p>\n

\u603b\u7ed3<\/p>\n

\u901a\u8fc7Wine\u6a21\u62df\u5668\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06Windows\u8f6f\u4ef6\u8f6c\u79fb\u5230\u9e92\u9e9f\u7535\u8111quicker\u53ef\u4ee5\u751f\u6210exe\u5417<\/a>\u4e0a\u4f7f\u7528\u3002\u8fd9\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u9009\u62e9\uff0c\u4f7f\u5f97\u9e92\u9e9f\u7535\u8111\u7684\u4f7f\u7528\u66f4\u52a0\u7075\u6d3b\u65b9\u4fbf\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e0d\u662f\u6240\u6709\u7684Windows\u8f6f\u4ef6\u90fd\u53ef\u4ee5\u5728\u9e92\u9e9f\u7535\u8111\u4e0a\u8fd0\u884c\uff0c\u56e0\u6b64\u5728\u9009\u62e9\u8f6f\u4ef6\u65f6\u9700\u8981\u8c28\u614e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u9e92\u9e9f\u7535\u8111\u662f\u56fd\u4ea7\u64cd\u4f5c\u7cfb\u7edf\u4e4b\u4e00\uff0c\u5176\u57fa\u4e8eLinux\u5185\u6838\uff0c\u91c7\u7528\u4e86\u81ea\u4e3b\u7814\u53d1\u7684Kylin\u684c\u9762\u73af\u5883\uff0c\u5177\u6709\u9ad8\u5ea6\u7684\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002\u7531\u4e8e\u9e92\u9e9f\u7535\u8111\u7684\u51fa\u73b0\uff0c\u8bb8\u591a\u7528\u6237\u60f3\u5c06\u81ea\u5df1\u7684Windows\u8f6f\u4ef6\u8f6c\u79fb\u5230\u9e92\u9e9f\u7535\u8111\u4e0a\u4f7f\u7528\uff0c\u4e0b\u9762\u5c06\u4e3a<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[19689,24553,9374,135,24552],"topic":[],"class_list":["post-23810","post","type-post","status-publish","format-standard","hentry","category-exekf","tag-exe","tag-windows","tag-9374","tag-135","tag-24552"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/23810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=23810"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/23810\/revisions"}],"predecessor-version":[{"id":23850,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/23810\/revisions\/23850"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=23810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=23810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=23810"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=23810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}