dongyan5141 2015-01-23 18:31
浏览 124

在端口80和Apache中运行beego

I was trying to run my beego in google compute engine instances. I have it running on port 8080. But when I tried to change it to port 80, it will have an ListenAndServe Permission denied error. What shall I do to make it run on port 80. Also can I serve the beego project using Apache2 so that I can run the project without doing bee run?

  • 写回答

1条回答 默认 最新

  • douzhaolu4839 2015-01-24 12:36
    关注

    Ports under 1024 are privileged, so you need root access to run a process that listens on any of them.

    For your second question: you can use apache or any other reverse proxy to host your application. This basically means that you run two separate processes (one for apache and one for your application). Apache listens on port 80 and forwards the request that are meant for your application. It is quite easy to set up a the reverse proxy for your vhost.

    评论

报告相同问题?

悬赏问题

  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan