Input the following command in Terminal: export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
编辑/private/etc/profile,用$sudo vi /private/etc/profile 编辑。 内容是在任意位置加入:export path=/usr/local:$path就可以了。 Save the file then "source /private/etc/profile"。 echo $PATH. You will see it works.
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号