Error in modifying / etc / profile file, command not found
Modify the environment variables under / etc / profile, after executing source / etc / profile:
[root @ node8 mongodb] # ls
-bash: ls: command not found
[root @ node8 mongodb] # cat
-bash: cat: command not found
Command not found
解决方法:
[root@node8 mongodb]# export PATH=/usr/bin:/usr/sbin:/bin:/sbin
[root@node8 mongodb]# vim /etc/profile
[root@node8 mongodb]# source /etc/profile