centos export问题

来源:互联网 发布:蕾丝内裤淘宝买家秀 编辑:程序博客网 时间:2024/05/24 15:37

在/etc/profile里面export时出现错误

-bash: export: `=': not a valid identifier
-bash: export: `/opt/mahout-distribution-0.9': not a valid identifier

原因: export MAHOUT_HOME = /opt/mahout-distribution-0.9

写这个的中间不应该加空格,应为

export MAHOUT_HOME= /opt/mahout-distribution-0.9

0 0