apache服务器只开80端口怎么设置?求大神指教!!!
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache服务器只开80端口怎么设置?求大神指教!!!相关的知识,希望对你有一定的参考价值。
参考技术A 而且电脑装个防火墙,屏蔽不想开放的端口就行了。apache默认就是只监听80端口撒。
-------------------------------------------
打开Apache目录下conf目录中的httpd.conf文件
然后同时按下键盘上的Ctrl+F组合键,在弹出的“查找”对话框中输入Listen
默认有一句
Listen
80
意思就是监听80端口。你可以看看是否添加了别的端口,删掉就行了。
maven下载的时候出现的问题,求大神指教
[WARNING] An error occurred during dependency resolution.
Failed to retrieve org.apache.struts:struts2-core-2.3.14.2
Caused by: Unable to download the artifact from any repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.struts -DartifactId=struts2-co
re -Dversion=2.3.14.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.struts -DartifactId=struts2-core
-Dversion=2.3.14.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor
yId=[id]
Path to dependency:
1) com.ailk.aiwmWap:aiwmWap:war:1.0-SNAPSHOT
2) org.apache.struts:struts2-core:jar:2.3.14.2
org.apache.struts:struts2-core:jar:2.3.14.2
from the specified remote repositories:
maven (http://repo1.maven.org/maven2),
codehaus (http://repository.codehaus.org/),
AsiainfoCUVSD (http://vsd.asiainfo.com/maven),
ibiblio (http://mirrors.ibiblio.org/pub/mirrors/maven2),
central (http://repo1.maven.org/maven2)
[INFO] Unable to read jar manifest from C:\Documents and Settings\Administrator\
.m2\repository\org\apache\struts\struts2-core\2.3.14.2\struts2-core-2.3.14.2.jar
[INFO] Using source status cache: D:\MyEclipse 8.5\cooding\aiwmWap2\target\mvn-e
clipse-cache.properties
尝试以下方式:
确保网络连接问题,与IE一致:在$Maven_Home/conf/settings.xml 设置。
确保pom.xml文件依赖正确:
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.2.1</version>
<scope>compile</scope>
</dependency>
3. 删除文件夹,重新下载 C:\\***\\.2\\repository\\org\\apache\\.struts
4. 更改下载库
以上是关于apache服务器只开80端口怎么设置?求大神指教!!!的主要内容,如果未能解决你的问题,请参考以下文章