我想在端口 80 上运行我的 node.js 应用程序而不以 root 身份运行它
$> which node
/usr/bin/node
我曾尝试使用 setcap 但它不起作用:
$> sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/node
Failed to set capabilities on file `/usr/bin/node' (Operation not
permitted)
The value of the capability argument is not permitted for a file. Or
the file is not a regular (non-symlink) file
我究竟做错了什么 ?