我想在 NodeJs 应用程序中执行以下 shell 命令。如果我手动完成工作,命令如下:
sudo su password 1 command that needs a root access exit
任何想法或代码片段都会有帮助
shell sudo node.js
node.js ×1
shell ×1
sudo ×1