修改环境变量,结果不懂,搞错了。没有$php,然后全部命令command not found.
/bin/vi /etc/profile
我用xshell登陆,断开连接重新连就可以。
另外还有什么切换用户的方法,可能没有效果。
可以做好备份。
参考:https://blog.csdn.net/u010222318/article/details/79300523
https://blog.csdn.net/qq_30038111/article/details/79411963
https://blog.csdn.net/bi_hu_man_wu/article/details/66967809