By accessing the website and accepting the Cookie Policy, you agree to use the cookies provided by the Site in accordance with to analyze traffic, remember your preferences, and optimize your experience.
nohup命令提示无法执行的解决方法 nohup: command not found
2020-07-04 16:01:57    2536    0    0
emengweb

-bash: nohup: command not found

 

查看本地是否有

 

which nohup

这里写图片描述

 

记录绝对位置

 

 

到当前用户的根目录(我的是root)

 

cd
vi .bash_profile

 

在原来后边加上:/usr/bin,保存,退出
这里写图片描述

 

使文件立刻生效

source ~/.bash_profile

 

试一下
这里写图片描述

 

nohup --version

这里写图片描述

 

ok

 

如果第一步就没有发现nohup,先安装,再配置

 

apt-get install coreutils​ -y

上一篇: Docker Compose on Windows 掛 Volume 路徑問題

下一篇: 最快的 google drive 拷贝工具 - 支持TG Bot机器人部署

2536 人读过
文档导航