如何更改Apache的默认TCP/IP端口 [英] How to change apache's default tcp/ip port

查看:50
本文介绍了如何更改Apache的默认TCP/IP端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使apache使用端口3000而不是80在外部服务器上的ruby on rails应用程序上运行?

How can I make apache use port 3000 instead of 80 to run my ruby on rails application on an external server?

推荐答案

编辑您的 httpd.conf 查找显示 Listen 80 的行并将80更改为任意端口您要使用.

Edit your httpd.conf Find the line that says Listen 80 and change the 80 to whatever port you want to use.

别忘了重新启动apache.

Don't forget to restart apache.

这篇关于如何更改Apache的默认TCP/IP端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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