Home  >  Q&A  >  body text

macos - After apache under mac is started, the browser cannot access 127.0.0.1

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

为情所困为情所困2713 days ago781

reply all(5)I'll reply

  • 高洛峰

    高洛峰2017-05-16 17:03:13

    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.

    reply
    0
  • 黄舟

    黄舟2017-05-16 17:03:13

    Agent? Climb the wall?

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 17:03:13

    Not started? Did sudo apachectl start report no error?

    reply
    0
  • 阿神

    阿神2017-05-16 17:03:13

    Check if you have file access permissions first

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 17:03:13

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

    reply
    0
  • Cancelreply