LINUX随笔九 nohup失效和镜像源

智者不为愚者谋,勇者不为怯者死。这篇文章主要讲述LINUX随笔九 nohup失效和镜像源相关的知识,希望能为你提供帮助。
nohup命令无法使用,也无法查询

[root@wy-node106 tmp]# nohup
bash: nohup: 未找到命令...

[root@wy-node106 tmp]# which nohup
/usr/bin/which: no nohup in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/data/program/java/bin:
/data/program/java/jre/bin:/root/bin)

【LINUX随笔九 nohup失效和镜像源】但是查询安装包又能查到
[root@wy-node106 yum.repos.d]# rpm -qa|grep coreutils
policycoreutils-python-2.5-34.el7.x86_64
policycoreutils-2.5-34.el7.x86_64
coreutils-8.22-21.el7.x86_64
#########################直接卸载重新安装
[root@wy-node106 yum.repos.d]# rpm -e --nodeps coreutils-8.22-21.el7.x86_64
#########################配置本地yum源
[root@wy-node106 yum.repos.d]# cat local.repo
[local]
name=local
baseurl=file:///mnt/iso/
enabled=1
gpgcheck=0
[root@wy-node106 yum.repos.d]#
[root@wy-node106 yum.repos.d]# ls /data/CentOS-7-x86_64-DVD-1804-7.5.iso
/data/CentOS-7-x86_64-DVD-1804-7.5.iso
[root@wy-node106 yum.repos.d]# mount -o loop /data/CentOS-7-x86_64-DVD-1804-7.5.iso /mnt/iso
##########重新安装
yum install coreutils -y
###########检查是否已有
[root@wy-node106 yum.repos.d]# which nohup
/bin/nohup


    推荐阅读