在用命令行执行一个后台监控的可执行文件时出现了如下提示:
[root@ip-**-**-**-** tomcat6]# nohup: ignoring input and appending output to `nohup.out'
nohup: failed to run command `./errorShell': Permission denied
此问题说明在执行可执行文件errorShell时没有权限,此时的解决方法是使用命令:chmod +x errorShell
次命令执行之后再执行 nohup ./errorShell & 此时执行结果如在下:
[root@ip-**-**-**-** tomcat6]# nohup: ignoring input and appending output to `nohup.out'
[1]+Exit 2 nohup ./errorShell
[root@ip-**-**-**-** tomcat6]#
此时errorShell文件已被执行成功!