1.set up connections between vitural machine and Xshell:

  After we connect the virtural machine to network,we can used an application named "Xshell" to operate the machine instead of the inconvenient way to operate it.Definitely,we should connect our machine to Xshell in order to operate it .

  After we press the option called "new",a view will be shown like this:

  We choose the ssh protocol and insert our ip in the host blank.You will be asked to choose accept for this time or accept and save.Definitely we choose accept and save if we don't want to enter our password over and over again.

Then you'll be asked to enter username and password to enter CentOS you have just installed.(Don't forget to press remember if you don't want to enter again)

Only if you are into the interface which is same as the following pictures are you succees.

2.set Java runtime environment:

  It can be seen that Java runs based on JDK,so if we want to set environment,we must download JDK to our machine.As you can see--I have already downloaded it to my machine(Remember to download the file which is prepared for Linux---whose Suffix name is .tar.gz).

  Then I insert the instruction to decompression it:

  As you can see,I succeed to decompression it.And then it will be setting Java environment variable.First,we should use vi editor to open a file named profile,which is under the folder named etc:

  The you should insert three settings into the file:JAVA_HOME,PATH, and CLASSPATH.JAVA_PATH is the location of your jdk ,PATH and CLASSPATH are based on your JAVA_PATH,so be careful with your JAVA_PATH:

And then save it with the instuction :wq .After that,we should insert a instruction to make sense of this file:

 

Then we will insert the instruction to test if the Java runtime environment is setted success:

It shows that the java version which I use is "1.8.0_161",which means that I have succeed in setting the environment.

 

Learning Experience of Big Data: Connect CentOs to Xshell and set Java environment on CentOS的更多相关文章

  1. Learning Experience of Big Data: Learn to install CentOs 6.5 on my laptop

    I have learnt some experience about Big Data during my summer vocation,I was told that The first thi ...

  2. Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password

    This mission seems to be easier--we can just decompression Tomcat to our virtural machine and deploy ...

  3. Learning Experience of Big Data:The First Day-Try to set up a network connection on my virtural machine

    After we install our virtual machine,the first thing we should do is to set up a network connection ...

  4. Learning Spark: Lightning-Fast Big Data Analysis 中文翻译

    Learning Spark: Lightning-Fast Big Data Analysis 中文翻译行为纯属个人对于Spark的兴趣,仅供学习. 如果我的翻译行为侵犯您的版权,请您告知,我将停止 ...

  5. 少标签数据学习:宾夕法尼亚大学Learning with Few Labeled Data

    目录 Few-shot image classification Three regimes of image classification Problem formulation A flavor ...

  6. [转]Installing python 2.7 on centos 6.3. Follow this sequence exactly for centos machine only

    Okay for centos 6.4 also On apu.0xdata.loc, after this install was done $ which python /usr/local/bi ...

  7. CentOS 使用yum命令安装Java SDK(openjdk)

    CentOS 6.X 和 5.X 自带有OpenJDK runtime environment  (openjdk).它是一个在linux上实现开源的java 平台.CentOS  yum 命令 安装 ...

  8. yum命令安装软件时,出现--centos 7 安装apache 出现 Could not resolve host: mirrorlist.centos.org; 未知的错误"--CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决

    CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决 今天在虚拟机上安装完CentOS6.5之后,首次使用时yum命令安装软件时,出现 ...

  9. CentOS安装tomcat并且部署Java Web项目具有一定的参考价值

    本篇文章主要介绍了CentOS安装tomcat并且部署Java Web项目,具有一定的参考价值,有需要的可以了解一下.(http://m.8682222.com) 1.准备工作 b.因为tomcat的 ...

随机推荐

  1. python str、int、dict

    一.str print(dir(int))#['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', ...

  2. PowerBuilder与嵌入浏览器交互

    准备工作1. 新增一个Application应用,新增一个窗口.2. 在窗口中新增一个OLE控件:Microsoft Web Browser,命名为old_1.3. 新增一个TextBox网址输入控件 ...

  3. JS 排序:冒泡、 二分搜索 /折半搜索 half-interval search

    冒泡排序:  重复地走访过要排序的数列,一次比较两个元素,如果他们的顺序错误就把他们交换过来. var arr = [5,0,-56,900,12]; //大的排序次数 for(var i=0; i& ...

  4. 数据结构学习-数组A[m+n]中依次存放两个线性表(a1,a2···am),(b1,b2···bn),将两个顺序表位置互换

    将数组中的两个顺序表位置互换,即将(b1,b2···bn)放到(a1,a2···am)前边. 解法一: 将数组中的全部元素(a1,a2,···am,b1,b2,···bn)原地逆置为(bn,bn-1, ...

  5. html css:背景图片链接css写法

    图片作为背景,并且是链接的写法.例如网站的logo图片.例如:土豆的logo图片 <a title="土豆网 tudou.com 每个人都是生活的导演" href=" ...

  6. swift语言的特点(相对于oc)

    1.泛型.泛型约束与扩展: 2.函数式编程: 3.值类型.引用类型: 4.枚举.关联值.元组等其他 上述为swift最大的特点 Another safety feature is that by de ...

  7. OpenCV人脸识别

    import cv2 filename = 'pic.jpg' def detect(filename): face_cascade = cv2.CascadeClassifier('./haarca ...

  8. JavaScript数组实战小练习

    1.找出元素在数组中的位置. function indexOf(arr, item) { if(Array.prototype.indexOf){ //判断浏览器是否支持indexOf方法 retur ...

  9. mybatis学习记录二——mybatis开发dao的方法

    4.1     SqlSession使用范围 4.1.1     SqlSessionFactoryBuilder 通过SqlSessionFactoryBuilder创建会话工厂SqlSession ...

  10. spring异常+自定义以及使用

    1.首先自定义异常 DataException: package com.wbg.maven1128.exception; public class DataException extends Exc ...