摘要: centos下使用该命令:sudo alternatives --display hadoop-0.20-conf ,提示:sudo: alternatives:command not found 问题原因:找不到alternatives命令,因为/etc/profile/下的path 不包括该命令所在位置的路径/usr/sbin。解决方法:sudo nano /etc/profile ,在文件中path后面加上:/usr/sbin(注意前面有个冒号,以与前面的文件路径分割)。然后source /etc/profile ,再执行最初的alternatives命令就成功了。 阅读全文
posted @ 2011-07-01 22:26 午后的猫 阅读(5116) 评论(0) 推荐(0) 编辑