如何用命令行解决可执行文件的权限…

来源:互联网 发布:朋友的电脑装mac os 编辑:程序博客网 时间:2024/06/14 09:22
在用命令行执行一个后台监控的可执行文件时出现了如下提示:

[root@ip-**-**-**-** tomcat6]# nohup: ignoring input and appending output to `n                             ohup.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 `n                             ohup.out'

[1]+  Exit 2                  nohup ./errorShell
[root@ip-**-**-**-** tomcat6]#
此时errorShell文件已被执行成功!
0 0
原创粉丝点击