centos使用source命令提示notavalia identitier怎么办?
时间:2022-05-10 17:54:50
1、centos下配置jdk环境变量。切换至/etc下,使用命令:cd /etc
![centos使用source命令提示notavalia identitier怎么办?](https://img.aspxhome.com/file/2023/2/a290714_0.png)
2、Xshell配合Xftp打开该目录:
![centos使用source命令提示notavalia identitier怎么办?](https://img.aspxhome.com/file/2023/2/a290714_1.png)
3、查找到profile文件:
![centos使用source命令提示notavalia identitier怎么办?](https://img.aspxhome.com/file/2023/2/a290714_2.png)
4、使用记事本开始,在末尾添加:
export JAVA_HOME=/usr/local/java/jdk1.7.0_79
export JRE_HOME=/usr/local/java/jdk1.7.0_79/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin: $PATH
![centos使用source命令提示notavalia identitier怎么办?](https://img.aspxhome.com/file/2023/2/a290714_3.png)
5、使用source命令使其生效。命令:source /etc/profile
![centos使用source命令提示notavalia identitier怎么办?](https://img.aspxhome.com/file/2023/2/a290714_4.png)
6、错误原因:刚才编辑的有空格。认真检查:
![centos使用source命令提示notavalia identitier怎么办?](https://img.aspxhome.com/file/2023/2/a290714_5.png)
7、 去掉空格。再次使用source命令。就可以了。
标签:centos,source命令,notavalia,iden
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何使用Word 2013录制宏
2023-12-07 05:48:54
![](https://img.aspxhome.com/file/2023/4/19474_0s.png)
怎样使用wps演示魔法功能
2022-01-19 20:18:51
macOS Big Sur 11.2 公测版 beta 1怎么更新?
2023-01-04 04:43:01
![](https://img.aspxhome.com/file/2023/0/a214510_0s.jpg)
excel单元格为空值时显示红色
2023-12-02 06:50:17
![](https://img.aspxhome.com/file/2023/9/37319_0s.jpg)
excel单元格样式 比格式刷还方便的Excel技巧
2023-03-08 00:13:59
Windows 10X与Windows 10有什么区别 win10X和win10区别介绍
2023-05-19 17:49:24
![](https://img.aspxhome.com/file/2023/28/a241136_0s.jpg)
Win7系统安装软件或游戏程序提示“文件无法写入”的故障分析及解决方法
2023-12-07 21:28:44
![](https://img.aspxhome.com/file/2023/28/a245555_0s.jpg)
按W弹出工作区怎么办?Win10专业版按W弹出工作区解决方法
2023-07-05 04:08:45
![](https://img.aspxhome.com/file/2023/26/a224285_0s.jpg)
Win7打开软件无响应怎么办?Win7打开软件无响应的解决方法
2022-03-17 20:32:19
![](https://img.aspxhome.com/file/2023/26/a228367_0s.png)
word文档怎么微调表格的大小?
2023-05-01 22:59:15
![](https://img.aspxhome.com/file/2023/9/28969_0s.jpg)
Win7怎么设置兼容性 软件修改兼容性的操作方法
2023-11-07 06:28:20
![](https://img.aspxhome.com/file/2023/2/a288847_0s.jpg)
在Mac 上制作OS X 10.10 Yosemite U盘的图文教程
2023-02-01 09:14:22
![](https://img.aspxhome.com/file/2023/5/a215445_0s.jpg)
Win10系统如何取消启动延迟来优化系统的桌面启动速度
2022-06-22 06:01:17
![](https://img.aspxhome.com/file/2023/29/a252975_0s.png)
Win10浏览器打不开网页但能上网怎么办?
2023-11-24 19:42:16
![](https://img.aspxhome.com/file/2023/5/50975_0s.jpg)
iOS 15 Beta 后,苹果将发布 AirPods Pro 固件开发者预览版 Beta
2023-05-03 07:36:49
![](https://img.aspxhome.com/file/2023/5/a206225_0s.jpeg)
如何修复Win11查看许可条款错误?Win11查看许可条款错误解决方法
2022-10-17 21:06:04
![](https://img.aspxhome.com/file/2023/28/a240517_0s.jpg)
在excel中求平均数的方法
2023-03-21 17:34:47
Excel时间差为负值时显示错误的解决办法
2023-01-31 20:49:38
![](https://img.aspxhome.com/file/2023/1/a156771_0s.jpg)
Excel中进行设置背景颜色的操作技巧
2022-12-16 23:17:37
Windows8.1如何查看CPU与显卡的配置
2022-09-18 02:36:19
![](https://img.aspxhome.com/file/2023/29/a253990_0s.jpg)