如题所述
é常设置ç¯å¢åéæä¸ç§æ¹æ³ï¼
ä¸ã临æ¶è®¾ç½®
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export PATH=$JAVA_HOME/:$PATH
äºãå½åç¨æ·çå ¨å±è®¾ç½®
æå¼~/.bashrcï¼æ·»å è¡ï¼
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export PATH=$JAVA_HOME/:$PATH
使çæ
source .bashrc
ä¸ãææç¨æ·çå ¨å±è®¾ç½®
$ sudo gedit /etc/profile
å¨éé¢å å ¥ï¼
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export PATH=$JAVA_HOME/:$PATH
使çæ
source profile
æµè¯ echo $PATH
ç¯å¢åéçæ¢å¤ï¼
ææ¶åå 为ä¸äºæå¤ï¼è¾å ¥äºé误çç¯å¢åéï¼å¯¼è´ç³»ç»æ æ³å¯å¨ï¼å¯ä»¥éç¨å¦ä¸æ¹æ³æ¢å¤ï¼
å¨å¯å¨ç³»ç»æ¶ï¼æä¸ESCï¼è¿å ¥grubç®å½ã
éæ©recovery modeãè¿ä¸ªæ¶åçç®å½æ¯read-onlyã
éæ©remountï¼è¿ä¸åºæ¥çç®å½å°±æ¯å¯åçäºã
ç¨nano æå¼ä½ çä¿®æ¹çé£ä¸ªé ç½®æ件ï¼ç¶åéå¯ï¼æå®ãnanoè¿ä¸ªä¸è¥¿æ¯vi好ç¨å¤äº
ä¸ã临æ¶è®¾ç½®
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export PATH=$JAVA_HOME/:$PATH
äºãå½åç¨æ·çå ¨å±è®¾ç½®
æå¼~/.bashrcï¼æ·»å è¡ï¼
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export PATH=$JAVA_HOME/:$PATH
使çæ
source .bashrc
ä¸ãææç¨æ·çå ¨å±è®¾ç½®
$ sudo gedit /etc/profile
å¨éé¢å å ¥ï¼
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export PATH=$JAVA_HOME/:$PATH
使çæ
source profile
æµè¯ echo $PATH
ç¯å¢åéçæ¢å¤ï¼
ææ¶åå 为ä¸äºæå¤ï¼è¾å ¥äºé误çç¯å¢åéï¼å¯¼è´ç³»ç»æ æ³å¯å¨ï¼å¯ä»¥éç¨å¦ä¸æ¹æ³æ¢å¤ï¼
å¨å¯å¨ç³»ç»æ¶ï¼æä¸ESCï¼è¿å ¥grubç®å½ã
éæ©recovery modeãè¿ä¸ªæ¶åçç®å½æ¯read-onlyã
éæ©remountï¼è¿ä¸åºæ¥çç®å½å°±æ¯å¯åçäºã
ç¨nano æå¼ä½ çä¿®æ¹çé£ä¸ªé ç½®æ件ï¼ç¶åéå¯ï¼æå®ãnanoè¿ä¸ªä¸è¥¿æ¯vi好ç¨å¤äº
温馨提示:答案为网友推荐,仅供参考