美文网首页
31. 转发端口

31. 转发端口

作者: 独步天堂 | 来源:发表于2017-10-05 00:09 被阅读10次

    默认情况下,以下端口会被转发至 Homestead 环境:

    • SSH: 2222 → 发送到 22
    • HTTP: 8000 → 发送到 80
    • HTTPS: 44300 → 发送到 443
    • MySQL: 33060 → 发送到 3306
    • Postgres: 54320 → 发送到 5432
    • Mailhog: 8025 → 发送到 8025

    你可以根据需要转发更多端口给 Vagrant Box,并指定其协议:

    ports:
        - send: 50000
          to: 5000
        - send: 7777
          to: 777
          protocol: udp
    

    相关文章

      网友评论

          本文标题:31. 转发端口

          本文链接:https://www.haomeiwen.com/subject/illhyxtx.html