更改了监听:80收听:81沼泽 [英] changed listen:80 to listen:81 in wamp

查看:70
本文介绍了更改了监听:80收听:81沼泽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的沼泽中将listen:80更改为listen:81 httpd.conf文件,而我的index.php正常运行.我的问题是我工作方式正确吗?进程正确吗?

Hi i in my wamp i changed listen:80 to listen:81 httpd.conf file and my index.php works fine. My question is am i working in correct way? Is the process right?

推荐答案

listen指令中将端口分配给81的目的对我来说是未知的.您可以在此处阅读有关指令的使用的信息:
http://httpd.apache.org/docs/current/mod/core.html [ ^ ].

无论何时决定端口分配,无论其用途如何,都应始终参阅IANA的规范性文件:
http://www.iana.org/assignments/service-名称端口号/服务名称端口号.xml [ http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers [ http://en.wikipedia.org/wiki/Internet_Assigned_Numbers_Authority [ http://www.iana.org/ [ ^ ].

根据IANA文件,端口80已分配给HTTP,而端口81是未分配的",因此,原则上您现在就可以使用它,但是将来,无法保证该端口已分配,您或您的用户使用了某些端口将来会在此端口上出现新服务,并且它将与您的应用程序冲突,或者您的应用程序将与新的知名服务冲突,也就是说,首先开始侦听的服务将阻止还有另一个-您不想要的东西.

从技术上讲,您可以使用所需的任何端口,但这仅在您不关心某些知名服务和应用程序的情况下.

实际上,这取决于您的要求.如果由于某种原因,您需要使用一些随机端口号(这是非常典型的事情,但是对于HTTP/HTTPS服务器来说,这不是典型的事情),则有专门为保留的端口号范围用户端口(1024-49151,无需在IANA注册之前使用,也可以在IANA注册之前使用),以及动态和/或私有端口(49152-65535). br/>
有关更多说明,请参见: http://en.wikipedia.org/wiki/Ephemeral_port [ ^ ].

在使用Apache时,我不知道为什么要使用默认80(HTTP)或443(HTTPS)以外的端口.但是,我知道出于某些特殊目的需要使用它,因此请自行决定.希望我警告过您并解释其中涉及的内容.

祝你好运,
—SA
The purpose of your port assignment on the listen directive to 81 is unknown to me. You can read about the use of the directive here:
http://httpd.apache.org/docs/current/mod/core.html[^].

Whenever you make a decision of port assignment, regardless of its application, you should always refer to this normative document of IANA:
http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml[^].

See also: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers[^].

IANA is an ultimate authority in Internet assigned numbers, it''s directives play the role of the law. Please see:
http://en.wikipedia.org/wiki/Internet_Assigned_Numbers_Authority[^],
http://www.iana.org/[^].

According to the IANA document, port 80 is assigned to HTTP, and 81 is "unassigned", so, in principle you can use it now, but in future, nothing can guarantee that this port becomes assigned, and you or your user uses some emerging service on this port in future, and than it will conflict with your application, or your application will conflict with that new well-known service, that is, the service which starts to listen first will prevent doing so another one — something which you would not want.

Technically, you can use any ports you want, but this is only if you don''t care about some well-known services and applications.

Actually, it depends on your requirements. If, by some reason, you would need to use some random port number (which is very typical thing, but I don''t thing a typical for HTTP/HTTPS servers), there are the port number ranges specifically reserved for User Ports (1024-49151, be used without or prior to IANA registration), and the Dynamic and/or Private Ports (49152-65535).

For some further explanations, please see: http://en.wikipedia.org/wiki/Ephemeral_port[^].

As you are using Apache, I have no idea why would you want to use the ports other then default 80 (HTTP) or 443 (HTTPS). However, I know that it is needed for some special purposes, so please decide it by yourself. I hope I warned you and explained what''s involved.

Good luck,
—SA


这篇关于更改了监听:80收听:81沼泽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆