gpt4 book ai didi

node.js - Linuxbrew Nodejs - 绑定(bind)到端口 80

转载 作者:行者123 更新时间:2023-12-03 09:20:24 25 4
gpt4 key购买 nike

我想解决 this issue 中描述的相同问题.

因此我想执行以下命令:

$ sudo setcap cap_net_bind_service=+ep /home/username/.linuxbrew/bin/node 

这产生了错误:

Failed to set capabilities on file `/home/username/.linuxbrew/bin/node' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file

发生这种情况是因为文件夹名称是.linuxbrew吗?如果是,我该如何修复它?

最佳答案

发生这种情况是因为您尝试在符号链接(symbolic link)上运行它。尝试运行这个:

sudo setcap cap_net_bind_service=+ep $(readlink -f ~username/.linuxbrew/node)

关于node.js - Linuxbrew Nodejs - 绑定(bind)到端口 80,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32789378/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com