profile文件时出错?
修改 / etc/profile 下的环境变量, 执行过 source /etc/profile 之后:
[[email protected] MongoDB]# ls
-bash: ls: 未找到命令
[[email protected] MongoDB]# cat
-bash: cat: 未找到命令
找不到命令了
解决方法:
[[email protected] MongoDB]# export PATH=/usr/bin:/usr/sbin:/bin:/sbin
[[email protected] MongoDB