简体   繁体   English

MAMP如何将apache端口配置为80以外的端口

[英]MAMP how can I configure apache port to something other than 80

Basically I am getting the error in this post: APACHE needs port 80 - MAMP . 基本上,我在这篇文章中得到错误: APACHE需要端口80-MAMP The solution to original post is to kill the tasks using Port 80. But I don't want to kill the tasks which I don't know. 解决原始帖子的方法是使用端口80杀死任务。但是我不想杀死我不知道的任务。

I have already changed the port number for Apache in MAMP UI. 我已经在MAMP UI中更改了Apache的端口号。 But I am still getting the same error message. 但是我仍然收到相同的错误消息。 Is there a way I can configure which port for Apache to use in MAMP? 有没有一种方法可以配置要在MAMP中使用的Apache端口?

  1. Quit MAMP (make sure servers are stopped) 退出MAMP(确保服务器已停止)
  2. Open Apache configuration page "c:\\MAMP\\conf\\apache\\httpd.conf" (with a text editor) 打开Apache配置页面"c:\\MAMP\\conf\\apache\\httpd.conf" (使用文本编辑器)
  3. Locate line "Listen 80" 找到行"Listen 80"
  4. Change to "Listen 8080" , save 更改为"Listen 8080" ,保存
  5. Run MAMP UI (you should see the port for Apache changed to 8080) 运行MAMP UI(您应该看到Apache的端口更改为8080)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将 apache2 配置为端口 80 以外的端口? - How do I configure apache2 to a port other than port 80? 如何使Apache在端口80上工作? 找不到MAMP主页 - How can I make Apache work on port 80? MAMP home page not found apache2不适用于80以外的端口 - apache2 not working with port other than 80 如何从 static 网页链接到在 80 以外的端口上侦听的 node.js 应用程序? - How can I link to a node.js application listening on a port other than 80 from a static webpage? 在Apache中定义本地站点-使用80以外的端口 - Define local site in Apache - Use port other than 80 如何从80以外的其他端口通过apache2(GCP的Linux)访问网站? - How to access website from apache2 (linux from GCP) from other port than 80? 如何在apache上配置django并在apache中创建https,以便django url应该以https://打开 <ip> :80端口 - how to configure django on apache and make https in the apache so that django url should open with https://<ip>:80 port 自定义端口(80和443除外)上的HTTPS - HTTPS on a custom port other than 80 and 443 NodeJS HTTP - 侦听 80 以外的其他端口 - NodeJS HTTP - listen on other port than 80 在默认80以外的其他端口上运行magento - Running magento on other port than default 80
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM