本文介绍了改变监听端口上配置的httpd清漆配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装光油缓存我的CentOS server.I正确尝试做配置,但我看了很多文件,我说改apache的端口 80收听收听8080 。但是,我找不到任何听80行我的服务器上 /etc/httpd/conf/httpd.conf中,但我发现 0.0.0.0:80 行。它是一回事吗?如果这些相同thinhgs,当我改变我的网站不能正常​​工作。

I installed Varnish Cache my CentOS server.I try the do configuration correctly but as I read many document say to me change apache port Listen 80 to Listen 8080. But I couldn't find any Listen 80 line on my server /etc/httpd/conf/httpd.conf but i found 0.0.0.0:80 line. Is it same thing ? If those are same thinhgs, when i change my sites not working.

我知道我做出巨大的逻辑错误,但我无法理解。

I know that I make huge logical mistake but i can't understand.

感谢

推荐答案

在此文件 /etc/httpd/conf/httpd.conf中应该有一行:ServerRoot的的/ etc / httpd的
下面这一行有 80收听更改为收听8080 键,重新启动Apache

In this file /etc/httpd/conf/httpd.conf there should be a line: ServerRoot "/etc/httpd"Below this line there is Listen 80 Change this to Listen 8080 and restart apache

使用命令重新启动:/etc/init.d/httpd重新启动

Restarting with command: /etc/init.d/httpd restart

我也发现了这一点: - > <一个href=\"http://updatedlinux.word$p$pss.com/2011/04/29/how-to-change-the-default-port-number-for-apache-http-server/\">http://updatedlinux.word$p$pss.com/2011/04/29/how-to-change-the-default-port-number-for-apache-http-server/

I also found this:-> http://updatedlinux.wordpress.com/2011/04/29/how-to-change-the-default-port-number-for-apache-http-server/

可能的,这将帮助!

这篇关于改变监听端口上配置的httpd清漆配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 14:19