{"id":479724,"date":"2023-08-09T10:43:48","date_gmt":"2023-08-09T10:43:48","guid":{"rendered":""},"modified":"2023-09-05T11:19:26","modified_gmt":"2023-09-05T11:19:26","slug":"xinetd","status":"publish","type":"wiki","link":"https:\/\/oneproxy.pro\/cn\/wiki\/xinetd\/","title":{"rendered":"\u897f\u5948\u7279"},"content":{"rendered":"<p>Xinetd \u662f Extended Internet Services Daemon \u7684\u7f29\u5199\uff0c\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u5f00\u6e90\u8f6f\u4ef6\u5de5\u5177\uff0c\u6709\u52a9\u4e8e\u5728\u7c7b Unix \u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7ba1\u7406\u548c\u4f18\u5316\u7f51\u7edc\u670d\u52a1\u3002\u901a\u8fc7\u5145\u5f53\u8d85\u7ea7\u670d\u52a1\u5668\uff0cXinetd \u4fa6\u542c\u4f20\u5165\u7684\u8fde\u63a5\u8bf7\u6c42\uff0c\u5e76\u4ec5\u5728\u9700\u8981\u65f6\u52a8\u6001\u542f\u52a8\u7279\u5b9a\u670d\u52a1\u3002\u8fd9\u79cd\u6709\u6548\u7684\u670d\u52a1\u7ba1\u7406\u65b9\u6cd5\u6709\u52a9\u4e8e\u8282\u7701\u7cfb\u7edf\u8d44\u6e90\u5e76\u589e\u5f3a\u5b89\u5168\u6027\u3002<\/p>\n<h2>Xinetd \u7684\u8d77\u6e90\u5386\u53f2<\/h2>\n<p>\u8d85\u7ea7\u670d\u52a1\u5668\u7684\u6982\u5ff5\u53ef\u4ee5\u8ffd\u6eaf\u5230 20 \u4e16\u7eaa 80 \u5e74\u4ee3\uff0c\u5f53\u65f6\u5f15\u5165\u4e86 inetd\uff08\u4e92\u8054\u7f51\u8d85\u7ea7\u670d\u52a1\u5668\uff09\u5b88\u62a4\u8fdb\u7a0b\u3002\u7136\u800c\uff0c\u7531\u4e8e\u5176\u8bbe\u8ba1\u7684\u9650\u5236\uff0cinetd \u9762\u4e34\u53ef\u6269\u5c55\u6027\u548c\u6027\u80fd\u95ee\u9898\uff0c\u5bfc\u81f4 20 \u4e16\u7eaa 90 \u5e74\u4ee3\u672b\u521b\u5efa\u4e86 Xinetd\u3002 Xinetd \u7531\u5f00\u6e90\u8f6f\u4ef6\u5f00\u53d1\u5b9e\u9a8c\u5ba4\uff08\u73b0\u5c5e\u4e8e Linux \u57fa\u91d1\u4f1a\uff09\u5f00\u53d1\uff0c\u65e8\u5728\u514b\u670d\u8fd9\u4e9b\u9650\u5236\u5e76\u4e3a\u7ba1\u7406\u7f51\u7edc\u670d\u52a1\u63d0\u4f9b\u66f4\u901a\u7528\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h2>\u6709\u5173 Xinetd \u7684\u8be6\u7ec6\u4fe1\u606f<\/h2>\n<p>Xinetd \u4f5c\u4e3a\u4e00\u4e2a\u201c\u8d85\u7ea7\u8d85\u7ea7\u670d\u52a1\u5668\u201d\u8fd0\u884c\uff0c\u5b83\u6709\u6548\u5730\u5904\u7406\u6765\u81ea\u5404\u79cd\u5ba2\u6237\u7aef\u7684\u4f20\u5165\u8fde\u63a5\u8bf7\u6c42\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u8bf7\u6c42\u8f6c\u53d1\u5230\u7279\u5b9a\u7684\u670d\u52a1\u5b88\u62a4\u8fdb\u7a0b\u3002\u4e0e inetd \u7b49\u4f20\u7edf\u8d85\u7ea7\u670d\u52a1\u5668\u4e0d\u540c\uff0cXinetd \u5141\u8bb8\u7ba1\u7406\u5458\u5728\u5355\u72ec\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u5404\u79cd\u670d\u52a1\u5c5e\u6027\uff0c\u4f8b\u5982\u8d44\u6e90\u9650\u5236\u3001\u8bbf\u95ee\u63a7\u5236\u548c\u65e5\u5fd7\u8bb0\u5f55\u8bbe\u7f6e\uff0c\u4ece\u800c\u589e\u52a0\u4e86\u7075\u6d3b\u6027\u3002\u8fd9\u79cd\u6a21\u5757\u5316\u65b9\u6cd5\u7b80\u5316\u4e86\u591a\u79cd\u670d\u52a1\u7684\u7ba1\u7406\uff0c\u5e76\u6709\u52a9\u4e8e\u6839\u636e\u5355\u72ec\u7684\u670d\u52a1\u9700\u6c42\u8fdb\u884c\u5b9a\u5236\u3002<\/p>\n<h2>Xinetd\u7684\u5185\u90e8\u7ed3\u6784<\/h2>\n<p>Xinetd \u7684\u5185\u90e8\u7ed3\u6784\u56f4\u7ed5\u5176\u914d\u7f6e\u6587\u4ef6\u5c55\u5f00\uff0c\u901a\u5e38\u4f4d\u4e8e <code data-no-translation=\"\">\/etc\/xinetd.d\/<\/code> \u76ee\u5f55\u3002\u6bcf\u4e2a\u670d\u52a1\u90fd\u5728\u5176\u4e13\u7528\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\uff0c\u5176\u4e2d\u5305\u62ec\u670d\u52a1\u540d\u79f0\u3001\u7aef\u53e3\u53f7\u3001\u534f\u8bae\u7c7b\u578b\u548c\u7279\u5b9a\u4e8e\u670d\u52a1\u7684\u8bbe\u7f6e\u7b49\u53c2\u6570\u3002\u5f53\u6536\u5230\u8fde\u63a5\u8bf7\u6c42\u65f6\uff0cXinetd \u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u6765\u786e\u5b9a\u8981\u542f\u52a8\u7684\u9002\u5f53\u670d\u52a1\u5b88\u62a4\u8fdb\u7a0b\u3002\u8fd9\u79cd\u6309\u9700\u6a21\u578b\u901a\u8fc7\u4ec5\u542f\u52a8\u5fc5\u8981\u7684\u670d\u52a1\u5b9e\u4f8b\u6765\u5e2e\u52a9\u51cf\u5c11\u7cfb\u7edf\u5f00\u9500\u3002<\/p>\n<h2>Xinetd\u5173\u952e\u7279\u6027\u5206\u6790<\/h2>\n<p>Xinetd \u62e5\u6709\u51e0\u4e2a\u6709\u52a9\u4e8e\u5176\u53d7\u6b22\u8fce\u548c\u9ad8\u6548\u7684\u5173\u952e\u529f\u80fd\uff1a<\/p>\n<ol>\n<li><strong>\u8d44\u6e90\u4f18\u5316\uff1a<\/strong> Xinetd \u901a\u8fc7\u6309\u9700\u542f\u52a8\u670d\u52a1\u6765\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u8d44\u6e90\u4f7f\u7528\uff0c\u4ece\u800c\u8282\u7701\u5185\u5b58\u548c CPU \u5468\u671f\u3002<\/li>\n<li><strong>\u5b89\u5168\u589e\u5f3a\uff1a<\/strong> \u901a\u8fc7\u7ef4\u62a4\u96c6\u4e2d\u8bbf\u95ee\u70b9\uff0cXinetd \u5141\u8bb8\u7ba1\u7406\u5458\u5b9e\u65bd\u8bbf\u95ee\u63a7\u5236\uff0c\u4ece\u800c\u589e\u5f3a\u7cfb\u7edf\u5b89\u5168\u6027\u3002<\/li>\n<li><strong>\u7075\u6d3b\u6027\uff1a<\/strong> Xinetd \u7684\u6a21\u5757\u5316\u65b9\u6cd5\u53ef\u4ee5\u5bf9\u5404\u4e2a\u670d\u52a1\u8bbe\u7f6e\u8fdb\u884c\u5fae\u8c03\uff0c\u4ece\u800c\u4fc3\u8fdb\u5b9a\u5236\u3002<\/li>\n<li><strong>\u8bb0\u5f55\uff1a<\/strong> \u8be6\u7ec6\u7684\u65e5\u5fd7\u8bb0\u5f55\u529f\u80fd\u6709\u52a9\u4e8e\u8ddf\u8e2a\u548c\u5206\u6790\u8fde\u63a5\u5c1d\u8bd5\u548c\u670d\u52a1\u4f7f\u7528\u60c5\u51b5\u3002<\/li>\n<\/ol>\n<h2>Xinetd \u7684\u7c7b\u578b\u53ca\u5176\u7279\u70b9<\/h2>\n<p>Xinetd \u652f\u6301\u5404\u79cd\u7c7b\u578b\u7684\u7f51\u7edc\u670d\u52a1\uff0c\u6bcf\u79cd\u670d\u52a1\u90fd\u6709\u7279\u5b9a\u7684\u7279\u5f81\u3002\u8fd9\u662f\u4e00\u4e2a\u7ec6\u5206\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7c7b\u578b<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5355\u7ebf\u7a0b<\/td>\n<td>\u4e00\u6b21\u5904\u7406\u4e00\u4e2a\u8fde\u63a5\uff0c\u9002\u5408\u4f4e\u9700\u6c42\u670d\u52a1\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u591a\u7ebf\u7a0b<\/td>\n<td>\u540c\u65f6\u7ba1\u7406\u591a\u4e2a\u8fde\u63a5\uff0c\u975e\u5e38\u9002\u5408\u4e2d\u7b49\u6d41\u91cf\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u90e8\u670d\u52a1<\/td>\n<td>\u652f\u6301\u540c\u4e00\u673a\u5668\u5185\u7684\u8fde\u63a5\uff0c\u589e\u5f3a\u5185\u90e8\u901a\u4fe1\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Xinetd \u7684\u4f7f\u7528\u65b9\u6cd5\u3001\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>Xinetd \u5728\u591a\u79cd\u573a\u666f\u4e2d\u90fd\u6709\u7528\u5904\uff0c\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li><strong>\u8fdc\u7a0b\u7ba1\u7406\uff1a<\/strong> Xinetd \u53ef\u4ee5\u914d\u7f6e\u4e3a\u5b89\u5168\u5730\u7ba1\u7406\u8fdc\u7a0b\u7ba1\u7406\u5de5\u5177\u3002<\/li>\n<li><strong>\u7f51\u7edc\u76d1\u63a7\uff1a<\/strong> \u5b83\u6709\u52a9\u4e8e\u90e8\u7f72\u4ece\u591a\u4e2a\u6765\u6e90\u6536\u96c6\u6570\u636e\u7684\u76d1\u63a7\u670d\u52a1\u3002<\/li>\n<\/ul>\n<p>Xinetd \u7684\u5e38\u89c1\u95ee\u9898\u5305\u62ec\u914d\u7f6e\u9519\u8bef\u548c\u62d2\u7edd\u670d\u52a1\u653b\u51fb\u3002\u89e3\u51b3\u65b9\u6848\u5305\u62ec\u5f7b\u5e95\u68c0\u67e5\u914d\u7f6e\u548c\u5b9e\u65bd\u9632\u706b\u5899\u89c4\u5219\u4ee5\u7f13\u89e3\u653b\u51fb\u3002<\/p>\n<h2>\u4e3b\u8981\u7279\u70b9\u53ca\u6bd4\u8f83<\/h2>\n<p>\u4e0b\u9762\u662f Xinetd \u4e0e\u7c7b\u4f3c\u672f\u8bed\u7684\u6bd4\u8f83\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u9762<\/th>\n<th>\u897f\u5948\u7279<\/th>\n<th>\u5185\u7f51<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u670d\u52a1\u7ba1\u7406<\/td>\n<td>\u6309\u9700\u3001\u53ef\u914d\u7f6e<\/td>\n<td>\u9759\u6001\u914d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td>\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5<\/td>\n<td>\u4f18\u5316<\/td>\n<td>\u6d88\u8017\u8d44\u6e90<\/td>\n<\/tr>\n<tr>\n<td>\u5b9a\u5236\u5316<\/td>\n<td>\u6a21\u5757\u5316\u7684<\/td>\n<td>\u7075\u6d3b\u6027\u6709\u9650<\/td>\n<\/tr>\n<tr>\n<td>\u5b89\u5168<\/td>\n<td>\u589e\u5f3a\u63a7\u5236<\/td>\n<td>\u57fa\u672c\u8bbf\u95ee\u63a7\u5236<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u524d\u666f\u548c\u672a\u6765\u6280\u672f<\/h2>\n<p>\u968f\u7740\u6280\u672f\u7684\u53d1\u5c55\uff0cXinetd \u4e0d\u65ad\u9002\u5e94\u65b0\u7684\u6311\u6218\u3002\u672a\u6765\u7684\u53d1\u5c55\u53ef\u80fd\u5305\u62ec\u6539\u8fdb\u7684\u5b89\u5168\u673a\u5236\u3001\u589e\u5f3a\u7684\u53ef\u6269\u5c55\u6027\u4ee5\u53ca\u4e0e\u65b0\u5174\u7f51\u7edc\u534f\u8bae\u7684\u517c\u5bb9\u6027\u3002<\/p>\n<h2>Xinetd \u4e0e\u4ee3\u7406\u670d\u52a1\u5668\u7684\u5173\u8054<\/h2>\n<p>Xinetd \u4e0e\u4ee3\u7406\u670d\u52a1\u5668\u5bc6\u5207\u76f8\u5173\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u7528\u6765\u6709\u6548\u5730\u7ba1\u7406\u548c\u4f18\u5316\u4ee3\u7406\u670d\u52a1\u3002\u901a\u8fc7\u4f7f\u7528 Xinetd \u6309\u9700\u542f\u52a8\u4ee3\u7406\u5b9e\u4f8b\uff0c\u7ec4\u7ec7\u53ef\u4ee5\u51cf\u5c11\u5f00\u9500\u5e76\u589e\u5f3a\u6574\u4f53\u7f51\u7edc\u6027\u80fd\u3002\u6b64\u5916\uff0cXinetd \u7684\u5b89\u5168\u529f\u80fd\u53ef\u4ee5\u5e2e\u52a9\u4fdd\u62a4\u4ee3\u7406\u670d\u52a1\u514d\u906d\u672a\u7ecf\u6388\u6743\u7684\u8bbf\u95ee\u3002<\/p>\n<h2>\u76f8\u5173\u94fe\u63a5<\/h2>\n<p>\u6709\u5173 Xinetd \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u8003\u8651\u63a2\u7d22\u4ee5\u4e0b\u8d44\u6e90\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/www.xinetd.org\/\" target=\"_new\" rel=\"noopener nofollow\">Xinetd \u6587\u6863<\/a><\/li>\n<li><a href=\"https:\/\/www.linuxfoundation.org\/\" target=\"_new\" rel=\"noopener nofollow\">Linux\u57fa\u91d1\u4f1a<\/a><\/li>\n<li><a href=\"https:\/\/www.linuxjournal.com\/article\/4649\" target=\"_new\" rel=\"noopener nofollow\">Inetd \u4e0e Xinetd<\/a><\/li>\n<\/ul>","protected":false},"featured_media":479725,"menu_order":0,"template":"","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"class_list":["post-479724","wiki","type-wiki","status-publish","has-post-thumbnail","hentry"],"acf":{"faq_title":"Frequently Asked Questions about <mark>Xinetd: Streamlining Network Services Management<\/mark>","faq_items":[{"question":"What is Xinetd and what does it do?","answer":"<p>Xinetd, short for Extended Internet Services Daemon, is a software tool that efficiently manages network services on Unix-like systems. It acts as a super-server, launching specific services only when needed, conserving resources, and enhancing security.<\/p>"},{"question":"How did Xinetd originate and why?","answer":"<p>Xinetd emerged in response to the limitations of its predecessor, inetd (Internet Super Server), which faced scalability issues. Developed by the Open Source Software Development Labs, Xinetd was created in the late 1990s to provide a more versatile and efficient solution for managing network services.<\/p>"},{"question":"How does Xinetd work internally?","answer":"<p>Xinetd uses configuration files to define various service attributes and settings. When a connection request is received, it consults these files to determine the appropriate service daemon to launch. This on-demand approach reduces system overhead by only starting necessary service instances.<\/p>"},{"question":"What are the key features of Xinetd?","answer":"<p>Xinetd offers several key features, including resource optimization through on-demand service launching, enhanced security with centralized access controls, flexibility via modular configuration, and detailed logging capabilities.<\/p>"},{"question":"What types of Xinetd exist and what are their characteristics?","answer":"<p>Xinetd supports different service types: single-threaded, multi-threaded, and internal services. Single-threaded handles one connection at a time, multi-threaded manages multiple connections simultaneously, and internal services support communication within the same machine.<\/p>"},{"question":"How can Xinetd be used, and what problems might arise?","answer":"<p>Xinetd finds use in remote administration and network monitoring. Problems like configuration errors and denial-of-service attacks can occur. Solutions involve careful configuration review and implementing firewall rules to counteract attacks.<\/p>"},{"question":"How does Xinetd compare to inetd?","answer":"<p>Xinetd offers on-demand and configurable service management, resource optimization, modular customization, and enhanced security. In contrast, inetd uses static configuration, consumes more resources, and offers limited flexibility.<\/p>"},{"question":"What are the future prospects of Xinetd?","answer":"<p>Future developments may include improved security mechanisms, enhanced scalability, and compatibility with emerging network protocols.<\/p>"},{"question":"How does Xinetd relate to proxy servers?","answer":"<p>Xinetd is closely associated with proxy servers. It can manage and optimize proxy services efficiently, launching instances on-demand to reduce overhead and enhance performance. Its security features also aid in protecting proxy services from unauthorized access.<\/p>"}]},"_links":{"self":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/479724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/types\/wiki"}],"version-history":[{"count":0,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/479724\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media\/479725"}],"wp:attachment":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media?parent=479724"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}