修改/etc/profile文件出錯(cuò),找不到命令

位置:首頁 / 新聞中心 / 知識(shí)教程

知識(shí)教程 Admin 2024-02-23 18:02:21 822

今天修改/etc/profile下的環(huán)境變量,執(zhí)行過source /etc/profile之后:

[root@node8 mongodb]# ls
-bash: ls: 未找到命令
[root@node8 mongodb]# cat
-bash: cat: 未找到命令

找不到命令了

解決方法:
[root@node8 mongodb]# export PATH=/usr/bin:/usr/sbin:/bin:/sbin
[root@node8 mongodb]# vim /etc/profile
[root@node8 mongodb]# source /etc/profile

以上就是“修改/etc/profile文件出錯(cuò),找不到命令”的詳細(xì)內(nèi)容,更多請(qǐng)關(guān)注木子天禾科技其它相關(guān)文章!


以上就是“修改/etc/profile文件出錯(cuò),找不到命令”的詳細(xì)內(nèi)容,更多請(qǐng)關(guān)注木子天禾科技其它相關(guān)文章!

15934152105 掃描微信