jackliu2013

最近在用linux系统的时候,有几次碰到这种问题,在网上找到答案,特别转载一下:

在用命令行执行一个后台监控的可执行文件时出现了如下提示:

[root@promote 桌面]# nohup /etc/nginx_check.sh
nohup: 忽略输入并把输出追加到"nohup.out"
nohup: 无法运行命令"/etc/nginx_check.sh": 权限不够

或:

[root@promote 桌面]# nohup /etc/nginx_check.sh
nohup: ignoring input and appending output to `nohup.out\'
nohup: failed to run command `/etc/nginx_check.sh\': Permission denied


此问题说明在执行可执行文件nginx_check.sh时没有权限,此时的解决方法是使用命令:chmod +x /etc/nginx_check.sh
次命令执行之后再执行 nohup /etc/nginx_check.sh & 此时执行结果如在下:
[root@ip-**-**-**-** tomcat6]# nohup: ignoring input and appending output to `nohup.out`

[1]+  Exit 2 nohup /etc/nginx_check.sh
[root@promote 桌面]# 
此时nginx_check.sh文件已被执行成功!

转自:https://blog.csdn.net/moqiang02/article/details/37902407

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案