nohup: ignoring input and appending output to ‘nohup.out’ nohup: failed to run command ‘/for.sh’: Permission denied

参考: https://unix.stackexchange.com/questions/386545/nohup-failed-to-run-command-permission-denied

nohup: failed to run command ‘/for.sh’: Permission denied

  1. 确保shell脚本是 #!/bin/sh 开头
  2. 更改脚本文件的权限: chmod +x ./for.sh

nohup: ignoring input and appending output to ‘nohup.out’

nohup: ignoring input and appending output to ‘nohup.out’ nohup: failed to run command ‘/for.sh’: Permission denied

nohup: ignoring input and appending output to ‘nohup.out’ nohup: failed to run command ‘/for.sh’: Permission denied

上一篇:golang gin框架 swag在线api文档


下一篇:【Oracle】记录PLSQL 使用时出现的问题及解决方法