In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you the content about how the system comes with apache to stop. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
When using mac os for web development, you will encounter a situation where port 80 is already occupied. This problem can be solved through the following steps.
1. Use lsof-i 80 to view the processes that currently occupy port 80, and kill if there is one. (recommended study: use of apache)
2. Turn off the startup of mac with apache.
Sudo launchctl unload-w / System/Library/LaunchDaemons/org.apache.httpd.plist
If you want it to boot one day, change unload to load:
Sudo launchctl load-w / System/Library/LaunchDaemons/org.apache.httpd.plist
3, and the most common one, mac forbids ordinary users from accessing ports below 1024, including port 80. If you want to access through port 80, you need to forward through the port. The command is as follows:
Sudoipfw add fwd 127.0.0.1,1081 tcp from any to 127.0.0.1 80 in
Roughly means to do port forwarding, port 80 to 1081, so that web services point to 1081 of nginx (equivalent to the original port 80)
About the ipfw command:
A. View rules: sodu ipfw list
Localhost:sbin lq$ sudo ipfw list00100 fwd 127.0.0.1,1081 tcp fromany to 127.0.0.1 dst-port 80 in65535 allow ip fromany to any
B. Delete rule: sodu ipfw delete 100 [deleted rule is: 00100 fwd 127.0.0.1 tcp from any to 1081 tcp from any to 127.0.0.1 dst-port 80 in]
C. New rule: sudo ipfw add fwd 127.0.0.1 in 1081tcp from any to 127.0.0.1 80
Thank you for reading! On the system with apache how to stop sharing here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 297
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.