Mochiweb 端口 80

发布于 2024-08-06 12:29:48 字数 124 浏览 1 评论 0原文

我正在尝试通过 Mochiweb 在端口 80 上运行 BeepBeep。如果我输入 sudo ./start_server.sh,它就会起作用。像这样运行 Mochiweb 是否存在安全风险?如果有如何补救?

谢谢!

I am attempting to run BeepBeep through Mochiweb on Port 80. It works if I type sudo ./start_server.sh. Are there any security risks with running Mochiweb like this? If so how to remedy?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心房敞 2024-08-13 12:29:48

以 root 身份运行任何服务都有风险。如果没有更多信息,很难正确回答你的问题。这是您正在运行的生产服务还是开发实例?

如果是生产环境,我建议在不同的端口上运行 mochiweb 实例,以便它可以作为用户运行,然后使用 nginx 或 apache 等代理来侦听 80 并转发请求。

running any service as root has risk. It's hard to answer your question properly without more information though. Is this a production service or a dev instance you are running?

If production I would recommend running the mochiweb instance on a different port so it can run as a user and then using a proxy like nginx or apache to listen on 80 and forward the request.

回首观望 2024-08-13 12:29:48

您可以在非特权端口上启动它,并在防火墙中进行端口转发,以便端口 80 进入您的非特权端口。

You could start it on an unprivileged port and do port-forwarding in your firewall, so that port 80 goes to your unprivileged port.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文