WIN7的80端口怎么开关,第1张

1 首先在win7下找到运行,但是win7的运行不像XP那么好找,win7运行的位置在:开始→所有程序→附件→运行。

2 然后在对话框中,输入cmd(大小写均可)。

3 然后是如何查看80端口的方法,一般会用这两种方法:

1)输入netstat -ano

2)输入:netstat -ano|findstr 80

这两种方法都可以查看到80端口,查看到80端口,主要是来看PID的,以便在进程中结束占用80端口的程序

4 然后是打开任务管理器(打开进程方法:1ctrl+alt+delete;2右键电脑最下面的任务栏,选择任务管理器),查看占用80端口的进程及PID。

5 然后再到进程下面,,选择列,然后将PID前面打上√,确定即可,然后在进程中找到刚才占用80端口的PID,将其关闭,即可。

一般情况下服务器

都是机房在控制的,如果机房禁止了80端口,那只能让机房开了,否则自己是没办法操作的。。。

80端口现在是的确实需要备案才可以的,如果是网通,就去网通公司去咨询下,备案要些身份证件还有照片,还有一些资料,网通会有提供的

网站备案和开通80端口的过程如下:

1 注册账号:在工信部备案管理系统官网注册账号,必须使用实名认证。

2 填写备案信息:填写网站信息、主体信息、管理员信息等基本信息。备案申请必须使用公司或个体工商户的名称申请,个人使用身份证信息申请。

3 审核备案信息:提交备案申请后,待工信部门进行审核,审核时间一般为20个工作日。审核通过后,备案网站的备案号和接入号就会下发给您。

对于开通80端口,具体步骤如下:

1 在您所使用的服务器上打开路由面板或路由设置。

2 在路由设置中找到“DMZ”或“端口转发”选项。

3 在对应的选项中,将80端口添加到防火墙规则中,并指向您所连接的计算机IP地址。

4 保存设置并重启路由器,此时80端口已成功映射到您的计算机上。

请注意,以上步骤可能因不同的网络环境和设备而有所不同,具体操作请根据您所在的网络环境和设备进行调整。

Tomcat服务器安装的时候默认的端口设置是8080,通常我一看到端口是8080的网站,我就猜测服务器估计是Tomcat,一般来说网站的端口普遍

是80,apache服务器的默认端口就是80,而80与8080端口有一点区别就是,如果你去访问80端口的网站,那么可以直接输入域名访问,而没必要

带上80,因为80是http协议的默认端口;但是,如果是访问8080端口的网站,那么在输入域名以后还要加上8080才行。就是因为这个繁琐的操作,

所以我每次都会修改下端口,修改方法可以参考下面:

(1)首先找到tomcat的安装路径,找到路径conf文件夹下面的serverxml文件,如下图1所示。

图1:serverxml所在路径

(2)用文本编辑器打开serverxml,修改其中端口,文件中端口有很多,比如8005,8080,8009等等,别的都可以不用管,视情况修改就好,我只修改了8080端口为80,直接查找8080替换成80就OK了,修改后的文件内容如下:

<xml version='10' encoding='utf-8'>

<!--

Licensed to the Apache Software Foundation (ASF) under one or more

contributor license agreements See the NOTICE file distributed with

this work for additional information regarding copyright ownership

The ASF licenses this file to You under the Apache License, Version 20

(the "License"); you may not use this file except in compliance with

the License You may obtain a copy of the License at

http://wwwapacheorg/licenses/LICENSE-20

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied

See the License for the specific language governing permissions and

limitations under the License

-->

<!-- Note: A "Server" is not itself a "Container", so you may not

define subcomponents such as "Valves" at this level

Documentation at /docs/config/serverhtml

-->

<Server port="8005" shutdown="SHUTDOWN">

<!--APR library loader Documentation at /docs/aprhtml -->

<Listener className="orgapachecatalinacoreAprLifecycleListener" SSLEngine="on" />

<!--Initialize Jasper prior to webapps are loaded Documentation at /docs/jasper-howtohtml -->

<Listener className="orgapachecatalinacoreJasperListener" />

<!-- Prevent memory leaks due to use of particular java/javax APIs-->

<Listener className="orgapachecatalinacoreJreMemoryLeakPreventionListener" />

<!-- JMX Support for the Tomcat server Documentation at /docs/non-existenthtml -->

<Listener className="orgapachecatalinambeansServerLifecycleListener" />

<Listener className="orgapachecatalinambeansGlobalResourcesLifecycleListener" />

<!-- Global JNDI resources

Documentation at /docs/jndi-resources-howtohtml

-->

<GlobalNamingResources>

<!-- Editable user database that can also be used by

UserDatabaseRealm to authenticate users

-->

<Resource name="UserDatabase" auth="Container"

type="orgapachecatalinaUserDatabase"

description="User database that can be updated and saved"

factory="orgapachecatalinausersMemoryUserDatabaseFactory"

pathname="conf/tomcat-usersxml" />

</GlobalNamingResources>

<!-- A "Service" is a collection of one or more "Connectors" that share

a single "Container" Note: A "Service" is not itself a "Container",

so you may not define subcomponents such as "Valves" at this level

Documentation at /docs/config/servicehtml

-->

<Service name="Catalina">

<!--The connectors can use a shared executor, you can define one or more named thread pools-->

<!--

<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"

maxThreads="150" minSpareThreads="4"/>

-->

<!-- A "Connector" represents an endpoint by which requests are received

and responses are returned Documentation at :

Java HTTP Connector: /docs/config/httphtml (blocking & non-blocking)

Java AJP Connector: /docs/config/ajphtml

APR (HTTP/AJP) Connector: /docs/aprhtml

Define a non-SSL HTTP/11 Connector on port 8080

-->

<Connector port="80" protocol="HTTP/11"

connectionTimeout="20000"

redirectPort="8443" />

<!-- A "Connector" using the shared thread pool-->

<!--

<Connector executor="tomcatThreadPool"

port="8080" protocol="HTTP/11"

connectionTimeout="20000"

redirectPort="8443" />

-->

<!-- Define a SSL HTTP/11 Connector on port 8443

This connector uses the JSSE configuration, when using APR, the

connector should be using the OpenSSL style configuration

described in the APR documentation -->

<!--

<Connector port="8443" protocol="HTTP/11" SSLEnabled="true"

maxThreads="150" scheme="https" secure="true"

clientAuth="false" sslProtocol="TLS" />

-->

<!-- Define an AJP 13 Connector on port 8009 -->

<Connector port="8009" protocol="AJP/13" redirectPort="8443" />

<!-- An Engine represents the entry point (within Catalina) that processes

every request The Engine implementation for Tomcat stand alone

analyzes the HTTP headers included with the request, and passes them

on to the appropriate Host (virtual host)

Documentation at /docs/config/enginehtml -->

<!-- You should set jvmRoute to support load-balancing via AJP ie :

<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">

-->

<Engine name="Catalina" defaultHost="localhost">

<!--For clustering, please take a look at documentation at:

/docs/cluster-howtohtml (simple how to)

/docs/config/clusterhtml (reference documentation) -->

<!--

<Cluster className="orgapachecatalinahatcpSimpleTcpCluster"/>

-->

<!-- The request dumper valve dumps useful debugging information about

the request and response data received and sent by Tomcat

Documentation at: /docs/config/valvehtml -->

<!--

<Valve className="orgapachecatalinavalvesRequestDumperValve"/>

-->

<!-- This Realm uses the UserDatabase configured in the global JNDI

resources under the key "UserDatabase" Any edits

that are performed against this UserDatabase are immediately

available for use by the Realm -->

<Realm className="orgapachecatalinarealmUserDatabaseRealm"

resourceName="UserDatabase"/>

<!-- Define the default virtual host

Note: XML Schema validation will not work with Xerces 22

-->

<Host name="localhost" appBase="webapps"

unpackWARs="true" autoDeploy="true"

xmlValidation="false" xmlNamespaceAware="false">

<!-- SingleSignOn valve, share authentication between web applications

Documentation at: /docs/config/valvehtml -->

<!--

<Valve className="orgapachecatalinaauthenticatorSingleSignOn" />

-->

<!-- Access log processes all example

Documentation at: /docs/config/valvehtml -->

<!--

<Valve className="orgapachecatalinavalvesAccessLogValve" directory="logs"

prefix="localhost_access_log" suffix="txt" pattern="common" resolveHosts="false"/>

-->

</Host>

</Engine>

</Service>

</Server>

(3)修改serverxml文件以后,重启tomcat服务器,配置修改成功。

DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
网站模板库 » WIN7的80端口怎么开关

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情