macos - After apache under mac is started, the browser cannot access 127.0.0.1
为情所困
为情所困 2017-05-16 17:01:13
0
5
821

I use sudo apachectl start to start apache, and then use a browser to access 127.0.0.1. It prompts that the connection cannot be made. What is the possible reason? Below is the process I checked

Rex-TsaomatoiMac:usr rextsao$ ps aux | grep httpd
rextsao 12562 0.0 0.0 2444052 768 s000 S+ 5:42PM 0:00.00 grep http

Please help

为情所困
为情所困

reply all(5)
小葫芦

Thank you everyone, I solved this problem and found a useful command on google apachectl configtest. With the help of this command, I solved the problem step by step. This command should be under the mac environment.

黄舟

Agent? Climb the wall?

伊谢尔伦

Not started? Did sudo apachectl start report no error?

阿神

Check if you have file access permissions first

巴扎黑

You haven’t started it at all. If the bind port of the program on Mac is less than 1024, you need sudo

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template