使用Mac中的端口80 [英] The port 80 in Mac is used

查看:230
本文介绍了使用Mac中的端口80的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们必须为服务器使用端口80.但是当我尝试在Mac中使用它时,总是说使用了80,但我不知道哪个程序使用它.

We have to use port 80 for our server. But when I was trying to use it in Mac, it always said that the 80 is used, but I don't know which program uses it.

我在Google中搜索了它,有人说这与apache有关,但我尝试了,但没有用.我找到了: https://gist.github.com/kujohn/7209628 ,但似乎是无法通过IP地址访问我们的服务器.

I searched it in Google, and someone said it's about apache, but I tried, which is not working. I found this: https://gist.github.com/kujohn/7209628 , but seems it's not working visiting our server by IP address.

我真的不知道发生了什么,如何使用端口80查找哪个程序并将其停止.

I really don't know what's going on and how can I find out which program using port 80 and stop it.

非常感谢任何人的帮助,我是Mac用户.谢谢.

Many thanks if anyone can help, I'm new using Mac. Thanks.

推荐答案

找出使用80端口的进程是什么

To find out what process is using port 80

  1. 转到应用
  2. 打开实用工具.
  3. 打开活动监视器.
  4. 点击内存标签,
  5. 查看端口和使用它们的过程.找到端口80并选择它
  6. 转到菜单栏上的视图,然后选择退出过程.
  1. go to Applications
  2. open utilities.
  3. open Activity Monitor.
  4. click on the Memory tab,
  5. look at the ports and the processes using them. Find port 80 and select it
  6. go to the view on the menu bar and choose Quit process.

这只会终止进程,不会停止已经在运行的服务器实例继续运行.

This will just kill the process, it will not stop a server instance that is already running from continuing to run.

目前尚不清楚您是否正在使用数据库管理系统,使用MAMP对我有效的方法只有以下一种.

It is not clear if you are using a database management system or not and which one but one method that has worked for me using MAMP is as follows.

  • 使用sudo apachectl stop命令停止服务器.
  • 然后将端口更改为端口80.
  • 然后重新启动服务器.
  • stop the server by using sudo apachectl stop command.
  • then change the port to port 80.
  • then restart your servers.

这篇关于使用Mac中的端口80的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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