source /etc/profile 但貌似只对当前有效。打开别一个终端依然没用。最好logout一下就OK了。 (PS:~/.profile ;~/.bashrc 是对当前用户的配置项,/etc/profile则是系统级,针对所有用户)