{"id":53077,"date":"2023-09-30T23:00:36","date_gmt":"2023-09-30T15:00:36","guid":{"rendered":"http:\/\/www.upcheng.top\/?page_id=53077"},"modified":"2023-09-30T23:27:39","modified_gmt":"2023-09-30T15:27:39","slug":"npc","status":"publish","type":"page","link":"https:\/\/www.upcheng.top\/index.php\/npc\/","title":{"rendered":"NPS\u5185\u7f51\u7a7f\u900f"},"content":{"rendered":"<p>[vc_row][vc_column width=&#8221;2\/3&#8243;][vc_column_text]<\/p>\n<h1 style=\"text-align: center;\"><strong>NPS\u5185\u7f51\u7a7f\u900f<\/strong><\/h1>\n<p>[\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/3&#8243;]<style type=\"text\/css\" data-type=\"the7_shortcodes-inline-css\">#default-btn-7d1485bf5157bb168e8db52afb75e326.ico-right-side > i {\n  margin-right: 0px;\n  margin-left: 24px;\n}\n#default-btn-7d1485bf5157bb168e8db52afb75e326 > i {\n  margin-right: 24px;\n}\n<\/style><div class=\"btn-align-center\"><a href=\"https:\/\/github.com\/ehang-io\/nps\" class=\"default-btn-shortcode dt-btn dt-btn-l link-hover-off \" target=\"_blank\" id=\"default-btn-7d1485bf5157bb168e8db52afb75e326\" rel=\"noopener\"><i class=\"Defaults-github\"><\/i><span>Star\u4e00\u4e0b\u5b98\u65b9<\/span><\/a><\/div>[\/vc_column][\/vc_row][vc_row][vc_column][vc_empty_space][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 style=\"text-align: center;\"><strong>\u76ee\u524d\u652f\u6301tcp\u3001udp\u6d41\u91cf\u8f6c\u53d1\uff0c\u53ef\u652f\u6301\u4efb\u4f55tcp\u3001udp\u4e0a\u5c42\u534f\u8bae\u3002<\/strong><\/h3>\n<p style=\"text-align: center;\">\u672c\u9879\u76ee\u4e3a\u81ea\u5efa\u65b9\u6848\uff0c\u57fa\u4e8e<a href=\"https:\/\/github.com\/ehang-io\/nps\" target=\"_blank\" rel=\"noopener\">NPS<\/a>\uff0c\u90e8\u7f72\u4e8e<a href=\"https:\/\/www.upcheng.top\/\" target=\"_blank\" rel=\"noopener\">\u6a59\u6d3e\u6570\u79d1<\/a>\u3002<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_separator border_width=&#8221;4&#8243;][\/vc_column][\/vc_row][vc_row][vc_column width=&#8221;1\/2&#8243;]<div id=\"ultimate-heading-896669e26c1acdba3\" class=\"uvc-heading ult-adjust-bottom-margin ultimate-heading-896669e26c1acdba3 uvc-4747 accent-border-color color-title uvc-heading-default-font-sizes\" data-hspacer=\"line_only\"  data-halign=\"center\" style=\"text-align:center\"><div class=\"uvc-main-heading ult-responsive\"  data-ultimate-target='.uvc-heading.ultimate-heading-896669e26c1acdba3 h2'  data-responsive-json-new='{\"font-size\":\"\",\"line-height\":\"\"}' ><h2 style=\"--font-weight:theme;\">\u670d\u52a1\u5668\u4fe1\u606f<\/h2><\/div><div class=\"uvc-heading-spacer line_only\" style=\"topheight:4px;\"><span class=\"uvc-headings-line\" style=\"border-style:solid;border-bottom-width:4px;border-color:#ccc;width:128px;\"><\/span><\/div><div class=\"uvc-sub-heading ult-responsive\"  data-ultimate-target='.uvc-heading.ultimate-heading-896669e26c1acdba3 .uvc-sub-heading '  data-responsive-json-new='{\"font-size\":\"\",\"line-height\":\"\"}'  style=\"font-weight:normal;margin-top:8px;\">\u4e0b\u5217\u914d\u7f6e\u76f4\u63a5\u7c98\u8d34\u81f3\u5ba2\u6237\u7aefnpc.conf\u6587\u4ef6\u5185\u7684\u5168\u5c40\u914d\u7f6ecommon\u90e8\u5206<\/div><\/div>[vc_column_text css=&#8221;.vc_custom_1696084478139{padding-top: 24px !important;}&#8221;]<div class=\"shortcode-code\">\n<p>&#091;common&#093;<br \/>\nserver_addr=ds.upcheng.top:8024<br \/>\nconn_type=tcp<br \/>\nvkey=&#091;userkey&#093;<br \/>\nauto_reconnection=true<br \/>\n#pprof_addr=0.0.0.0:9999<br \/>\ndisconnect_timeout=60<\/p><\/div>[\/vc_column_text][vc_text_separator title=&#8221;\u6ce8\u610f&#8221; border_width=&#8221;4&#8243;][vc_column_text]\u914d\u7f6e\u4fe1\u606f\u4e2d\u7684[userkey]\u8bf7\u586b\u5165\u7533\u8bf7\u5230\u7684\u5bc6\u94a5<\/p>\n<p>\u5185\u7f51\u7a7f\u900f\u4ec5\u63d0\u4f9b\u57fa\u7840\u670d\u52a1\uff0c\u4e0d\u652f\u6301\u5927\u6d41\u91cf\u4e1a\u52a1[\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/2&#8243;]<div id=\"ultimate-heading-831469e26c1acdc31\" class=\"uvc-heading ult-adjust-bottom-margin ultimate-heading-831469e26c1acdc31 uvc-5411 accent-border-color color-title uvc-heading-default-font-sizes\" data-hspacer=\"line_only\"  data-halign=\"center\" style=\"text-align:center\"><div class=\"uvc-main-heading ult-responsive\"  data-ultimate-target='.uvc-heading.ultimate-heading-831469e26c1acdc31 h2'  data-responsive-json-new='{\"font-size\":\"\",\"line-height\":\"\"}' ><h2 style=\"--font-weight:theme;\">\u5ba2\u6237\u7aef\u4e0b\u8f7d<\/h2><\/div><div class=\"uvc-heading-spacer line_only\" style=\"topheight:4px;\"><span class=\"uvc-headings-line\" style=\"border-style:solid;border-bottom-width:4px;border-color:#ccc;width:128px;\"><\/span><\/div><\/div>[vc_empty_space]<style type=\"text\/css\" data-type=\"the7_shortcodes-inline-css\">#default-btn-3c7b386340796f3f0aa731e942f76ccb.ico-right-side > i {\n  margin-right: 0px;\n  margin-left: 24px;\n}\n#default-btn-3c7b386340796f3f0aa731e942f76ccb > i {\n  margin-right: 24px;\n}\n<\/style><div class=\"btn-align-center\"><a href=\"https:\/\/github.com\/ehang-io\/nps\/releases\" class=\"default-btn-shortcode dt-btn dt-btn-l link-hover-off \" target=\"_blank\" id=\"default-btn-3c7b386340796f3f0aa731e942f76ccb\" rel=\"noopener\"><i class=\"Defaults-github\"><\/i><span>\u5b98\u65b9\u4e0b\u8f7d<\/span><\/a><\/div>[vc_empty_space]<style type=\"text\/css\" data-type=\"the7_shortcodes-inline-css\">#default-btn-9aa328a37cc776875cfdff0595802038.ico-right-side > i {\n  margin-right: 0px;\n  margin-left: 24px;\n}\n#default-btn-9aa328a37cc776875cfdff0595802038 > i {\n  margin-right: 24px;\n}\n<\/style><div class=\"btn-align-center\"><a href=\"https:\/\/ds.upcheng.top:10003\/d\/s\/vQeEyti8oWoOvQbhhkd9QUbSxFXiiu9A\/RVItptWo6rTHYC_Yh6sP7i-vX31Ln7Sq-rrKAzOD-yQo\" class=\"default-btn-shortcode dt-btn dt-btn-l link-hover-off \" target=\"_blank\" id=\"default-btn-9aa328a37cc776875cfdff0595802038\" rel=\"noopener\"><i class=\"Defaults-download\"><\/i><span>\u672c\u7ad9\u5206\u6d41\u4e0b\u8f7d<\/span><\/a><\/div>[vc_empty_space height=&#8221;24px&#8221;][vc_column_text]<\/p>\n<p style=\"text-align: center;\">\u5206\u6d41\u7ad9\u4ec5\u63d0\u4f9bWindows\u5ba2\u6237\u7aef<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_separator border_width=&#8221;4&#8243;][\/vc_column][\/vc_row][vc_row][vc_column width=&#8221;1\/2&#8243;]<div id=\"ultimate-heading-812269e26c1acdd22\" class=\"uvc-heading ult-adjust-bottom-margin ultimate-heading-812269e26c1acdd22 uvc-1685 accent-border-color color-title uvc-heading-default-font-sizes\" data-hspacer=\"line_only\"  data-halign=\"center\" style=\"text-align:center\"><div class=\"uvc-main-heading ult-responsive\"  data-ultimate-target='.uvc-heading.ultimate-heading-812269e26c1acdd22 h2'  data-responsive-json-new='{\"font-size\":\"\",\"line-height\":\"\"}' ><h2 style=\"--font-weight:theme;\">TCP\u53caUDP\u914d\u7f6e\u6837\u4f8b<\/h2><\/div><div class=\"uvc-heading-spacer line_only\" style=\"topheight:4px;\"><span class=\"uvc-headings-line\" style=\"border-style:solid;border-bottom-width:4px;border-color:#ccc;width:156px;\"><\/span><\/div><\/div>[vc_empty_space][vc_column_text]<div class=\"shortcode-code\">\n<p>&#091;tcp1&#093;<\/p>\n<p>mode=tcp<\/p>\n<p>target_addr=127.0.0.1:8080<\/p>\n<p>server_port=9001<\/p>\n<p>&nbsp;<\/p>\n<p>&#091;udp1&#093;<\/p>\n<p>mode=udp<\/p>\n<p>target_addr=127.0.0.1:8080<\/p>\n<p>server_port=9002<\/p>\n<p><\/p><\/div>[\/vc_column_text][vc_text_separator title=&#8221;\u6ce8\u610f&#8221; border_width=&#8221;4&#8243;][vc_column_text]\u5f53\u914d\u7f6e\u591a\u4e2aTCP\u6216UDP\u96a7\u9053\u65f6\uff0c\u8bf7\u6ce8\u610f\u914d\u7f6e\u540d\u79f0\u4e0d\u80fd\u91cd\u590d<\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\u4f7f\u7528 [server_addr] + [server_port] \u8bbf\u95ee\u5bf9\u5e94\u7684\u4e1a\u52a1<\/p>\n<p>\u670d\u52a1\u5668\u5730\u5740\u4e3a<div class=\"shortcode-code\">\n<p>ds.upcheng.top<\/p><\/div>[\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/2&#8243;]<div id=\"ultimate-heading-965369e26c1acdd60\" class=\"uvc-heading ult-adjust-bottom-margin ultimate-heading-965369e26c1acdd60 uvc-7276 accent-border-color color-title uvc-heading-default-font-sizes\" data-hspacer=\"line_only\"  data-halign=\"center\" style=\"text-align:center\"><div class=\"uvc-main-heading ult-responsive\"  data-ultimate-target='.uvc-heading.ultimate-heading-965369e26c1acdd60 h2'  data-responsive-json-new='{\"font-size\":\"\",\"line-height\":\"\"}' ><h2 style=\"--font-weight:theme;\">\u6ce8\u518c\u5230\u7cfb\u7edf\u670d\u52a1<\/h2><\/div><div class=\"uvc-heading-spacer line_only\" style=\"topheight:4px;\"><span class=\"uvc-headings-line\" style=\"border-style:solid;border-bottom-width:4px;border-color:#ccc;width:156px;\"><\/span><\/div><\/div>[vc_empty_space][vc_column_text]\u5bf9\u4e8ewindows\uff0c\u4f7f\u7528\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884ccmd<\/p>\n<ul>\n<li>\u6ce8\u518c\uff1a<code>npc.exe install<\/code><\/li>\n<li>\u542f\u52a8\uff1a<code>npc.exe start<\/code><\/li>\n<li>\u505c\u6b62\uff1a<code>npc.exe stop<\/code><\/li>\n<li>\u5982\u679c\u9700\u8981\u66f4\u6362\u547d\u4ee4\u5185\u5bb9\u9700\u8981\u5148\u5378\u8f7d<code>npc.exe uninstall<\/code>\uff0c\u518d\u91cd\u65b0\u6ce8\u518c<\/li>\n<li>\u5982\u679c\u9700\u8981\u5f53\u5ba2\u6237\u7aef\u9000\u51fa\u65f6\u81ea\u52a8\u91cd\u542f\u5ba2\u6237\u7aef\uff0c\u8bf7\u6309\u7167\u5982\u56fe\u6240\u793a\u914d\u7f6e\u00a0<img decoding=\"async\" src=\"https:\/\/github.com\/ehang-io\/nps\/blob\/master\/docs\/windows_client_service_configuration.png?raw=true\" alt=\"image\" data-origin=\"https:\/\/github.com\/ehang-io\/nps\/blob\/master\/docs\/windows_client_service_configuration.png?raw=true\" \/><\/li>\n<\/ul>\n<p>\u6ce8\u518c\u5230\u670d\u52a1\u540e\uff0c\u65e5\u5fd7\u6587\u4ef6windows\u4f4d\u4e8e\u5f53\u524d\u76ee\u5f55\u4e0b\uff0clinux\u548cdarwin\u4f4d\u4e8e\/var\/log\/npc.log<\/p>\n<p>\u6ce8\u518c\u540e\u4f7f\u7528Win+R \u8f93\u5165<code>services.msc<\/code>\uff0c\u627e\u5230 npc_386\uff0c\u786e\u8ba4\u662f\u5426\u5df2\u542f\u52a8\u5e76\u4e14\u662f\u5426\u4e3a\u81ea\u52a8\u542f\u52a8\uff0c\u82e5\u4e0d\u6ee1\u8db3\u5219\u624b\u52a8\u66f4\u6539\u3002[\/vc_column_text][vc_text_separator title=&#8221;\u5b98\u65b9\u4f7f\u7528\u6587\u6863&#8221; border_width=&#8221;4&#8243;][vc_column_text css=&#8221;.vc_custom_1696087483657{padding-top: 8px !important;}&#8221;]<a href=\"https:\/\/ehang-io.github.io\/nps\/#\/use\">https:\/\/ehang-io.github.io\/nps\/#\/use.<\/a>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_separator border_width=&#8221;4&#8243;][\/vc_column][\/vc_row][vc_row][vc_column]<div id=\"ultimate-heading-609869e26c1acdd7f\" class=\"uvc-heading ult-adjust-bottom-margin ultimate-heading-609869e26c1acdd7f uvc-5937 accent-border-color color-title uvc-heading-default-font-sizes\" data-hspacer=\"line_only\"  data-halign=\"center\" style=\"text-align:center\"><div class=\"uvc-main-heading ult-responsive\"  data-ultimate-target='.uvc-heading.ultimate-heading-609869e26c1acdd7f h2'  data-responsive-json-new='{\"font-size\":\"\",\"line-height\":\"\"}' ><h2 style=\"--font-weight:theme;\">\u5185\u7f51\u7a7f\u900f\u96a7\u9053\u7533\u8bf7<\/h2><\/div><div class=\"uvc-heading-spacer line_only\" style=\"topheight:4px;\"><span class=\"uvc-headings-line\" style=\"border-style:solid;border-bottom-width:4px;border-color:#ccc;width:156px;\"><\/span><\/div><div class=\"uvc-sub-heading ult-responsive\"  data-ultimate-target='.uvc-heading.ultimate-heading-609869e26c1acdd7f .uvc-sub-heading '  data-responsive-json-new='{\"font-size\":\"\",\"line-height\":\"\"}'  style=\"font-weight:normal;margin-top:8px;\">\u5728\u4e0b\u65b9\u586b\u5199\u9700\u7533\u8bf7\u7684\u96a7\u9053\u4fe1\u606f\uff0c\u59d3\u540d\u5904\u53ef\u586b\u5199\u6635\u79f0\uff0c\u6d88\u606f\u5904\u586b\u5199\u6240\u9700\u8981\u7684\u7aef\u53e3\u8303\u56f4\uff0c\u7533\u8bf7\u540e48\u5c0f\u65f6\u5185\u4e0b\u53d1\u5bc6\u94a5\u81f3\u90ae\u7bb1\u3002\u6807\u6709<strong>*<\/strong>\u7684\u4e3a\u5fc5\u586b\u9879<\/div><\/div>[vc_empty_space][vc_text_separator title=&#8221;\u6ce8\u610f&#8221; border_width=&#8221;4&#8243;][vc_column_text]\u76ee\u524d\u5f00\u653e\u7aef\u53e3\u8303\u56f450000-58999\uff0c\u82e5\u7533\u8bf7\u7684\u7aef\u53e3\u4e0e\u5176\u4ed6\u7528\u6237\u53d1\u751f\u51b2\u7a81\uff0c\u5c06\u4ee5\u90ae\u7bb1\u544a\u77e5\uff0c\u5e76\u5148\u884c\u653e\u884c\u7533\u8bf7\u7684\u672a\u88ab\u4f7f\u7528\u7684\u7aef\u53e3[\/vc_column_text]<form class=\"dt-contact-form dt-form privacy-form\" method=\"post\"><input type=\"hidden\" name=\"widget_id\" value=\"presscore-contact-form-widget--1\" \/><input type=\"hidden\" name=\"send_message\" value=\"\" \/><input type=\"hidden\" name=\"security_token\" value=\"3b5e607598281a1d4271\"\/><div class=\"form-fields\"><span class=\"form-name\"><label class=\"assistive-text\">\u59d3\u540d *<\/label><input type=\"text\" class=\"validate[required]\" placeholder=\"\u59d3\u540d *\" name=\"name\" value=\"\" aria-required=\"true\">\n<\/span><span class=\"form-mail\"><label class=\"assistive-text\">\u7535\u5b50\u90ae\u4ef6 *<\/label><input type=\"text\" class=\"validate[required,custom[email]]\" placeholder=\"\u7535\u5b50\u90ae\u4ef6 *\" name=\"email\" value=\"\" aria-required=\"true\">\n<\/span><span class=\"form-telephone\"><label class=\"assistive-text\">\u7535\u8bdd<\/label><input type=\"text\" placeholder=\"\u7535\u8bdd\" name=\"telephone\" value=\"\" aria-required=\"false\">\n<\/span><span class=\"form-city\"><label class=\"assistive-text\">\u57ce\u5e02 *<\/label><input type=\"text\" class=\"validate[required]\" placeholder=\"\u57ce\u5e02 *\" name=\"city\" value=\"\" aria-required=\"true\">\n<\/span><\/div><span class=\"form-message\"><label class=\"assistive-text\">\u6d88\u606f *<\/label><textarea class=\"validate[required]\" placeholder=\"\u6d88\u606f *\" name=\"message\" rows=\"1\" aria-required=\"true\"><\/textarea>\n<\/span><p class=\"the7-form-terms-wrap\"><input type=\"checkbox\" id=\"the7-form-terms-7f9bcc33944cd0718a62665e934f7653\" name=\"terms\" class=\"validate[required] the7-form-terms\" aria-required=\"true\" \/>&nbsp;<label for=\"the7-form-terms-7f9bcc33944cd0718a62665e934f7653\"><span class=\"form-terms-text\">\u52fe\u9009\u6b64\u6846\u5e76\u586b\u5199\u6b64\u8868\u683c\uff0c\u5373\u8868\u793a\u60a8\u540c\u610f\u6309\u7167\u6211\u4eec\u7684\u9690\u79c1\u653f\u7b56\u5b58\u50a8\u548c\u5904\u7406\u60a8\u7684\u6570\u636e<\/span><\/label><\/p><p><a href=\"#\" class=\"dt-btn dt-btn-m dt-btn-submit\" rel=\"nofollow\"><span>\u63d0\u4ea4<\/span><\/a><input class=\"assistive-text\" type=\"submit\" value=\"\u63d0\u4ea4\"><\/p><\/form>\n[vc_empty_space][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column width=&#8221;2\/3&#8243;][vc_column_t&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-53077","page","type-page","status-publish","hentry","description-off"],"_links":{"self":[{"href":"https:\/\/www.upcheng.top\/index.php\/wp-json\/wp\/v2\/pages\/53077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.upcheng.top\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.upcheng.top\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.upcheng.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.upcheng.top\/index.php\/wp-json\/wp\/v2\/comments?post=53077"}],"version-history":[{"count":29,"href":"https:\/\/www.upcheng.top\/index.php\/wp-json\/wp\/v2\/pages\/53077\/revisions"}],"predecessor-version":[{"id":53108,"href":"https:\/\/www.upcheng.top\/index.php\/wp-json\/wp\/v2\/pages\/53077\/revisions\/53108"}],"wp:attachment":[{"href":"https:\/\/www.upcheng.top\/index.php\/wp-json\/wp\/v2\/media?parent=53077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}