nohup: ignoring input and appending output to 'nohup.out' nohup: failed to run command 'bin/grafana-server': Permission denied
时间: 2023-11-21 11:55:06 浏览: 40
hup是一个Linux命令,用于在后台运行命令,即使用户注销或终端关闭也不会停止该命令的执行。当你在运行一个长时间运行的命令时,你可以使用hup命令,这样即使你关闭了终端,该命令也会继续运行。hup命令的输出默认会追加到当前目录下的hup.ou文件中。\n\当你在运行hup命令时,如果出现“Permissi deni”错误,这通常是由于你没有足够的权限来运行该命令。你可以尝试使用su命令来提升你的权限,或者检查该命令所在的目录和文件的权限是否正确。\n\对于你提供的问题,hup命令提示“igring inpu appending outpu 'hup.ou'”是因为它正在忽略输入并将输出追加到hup.ou文件中。而“fai ru comm”则是因为该命令无法运行,可能是由于权限不足或文件不存在等原因。\n\如果你想运行bi/grf-server命令并使用hup命令将其放在后台运行,你可以尝试以下命令:\```\hup /path//bi/grf-server &\```\这将在后台运行graf-server命令,并将输出追加到hup.ou文件中。如果你仍然遇到权限问题,你可以尝试使用su命令来提升你的权限。\n\
相关问题
nohup: ignoring input and appending output to ‘nohup.out’ nohup: failed to run command ‘./frps’: No such file or directory
nohup是一个在Unix和类Unix系统上运行命令时使用的命令。它的作用是在命令执行过程中忽略输入,并将输出追加到指定的文件中。当你在使用nohup命令时,可能会遇到以下错误信息:"nohup: ignoring input and appending output to ‘nohup.out’"和"nohup: failed to run command ‘./frps’: No such file or directory"。
这个错误信息的意思是,nohup命令无法找到要执行的命令或文件。可能有以下几个原因导致这个错误:
1. 文件路径错误:请确保你输入的文件路径是正确的。"./frps"表示当前目录下的frps文件,如果该文件不存在或路径错误,就会出现"No such file or directory"的错误。
2. 权限问题:请确保你对要执行的命令或文件具有足够的权限。如果没有执行权限,也会导致类似的错误。
3. 文件不存在:如果要执行的命令或文件确实不存在,就会出现"No such file or directory"的错误。请检查文件是否存在,并确保路径正确。
如果你想使用nohup命令来运行一个命令或脚本,并将输出追加到指定文件中,可以按照以下格式使用nohup命令:
nohup 命令 > 输出文件路径 &
例如,要将命令"./frps"的输出追加到文件"output.txt"中,可以使用以下命令:
nohup ./frps > output.txt &
nohup: appending output to ‘nohup.out’ nohup: ignoring input and appending output to ‘nohup.out’
nohup命令是在Linux中用于在后台执行命令,并将输出信息重定向到nohup.out文件中的命令。当你在终端中使用nohup命令时,会出现"nohup: ignoring input and appending output to ‘nohup.out’"的错误信息,表示命令会忽略输入并将输出信息添加到nohup.out文件中。此外,你还提到了另一个错误信息"nohup: ignoring input and redirecting stderr to stdout",这表示命令会忽略输入并将标准错误输出重定向到标准输出。
所以,当你在终端看到"nohup: appending output to ‘nohup.out’ nohup: ignoring input and appending output to ‘nohup.out’"的输出时,说明nohup命令执行成功,命令将输出信息追加到nohup.out文件中并忽略输入。