After we install our virtual machine,the first thing we should do is to set up a network connection on it.After searching in the browser,I found that the settings of network are placed in a file named ifcfg-eth,so we use the vi editor to edit it like this.

  There are something we should set for it--ONBOOT to yes,BOOTPROTO to static,IPADDR to your id,NETMASK to your netmask and GATEWAY to your gateway.You may ask that where can I find them or get them.Just Look at your VM and there will be a edit option in its tool bar.You click it and you will find an option with "editor of virtural network" just like this:

Click into and choose your virtual machine, then you will find your IP and your Netmask. 

Then your gateway is in the button which called "settings of NAT"

Remember,The ip you find in the editor is x.x.x.0,when you set it,you should change 0 to other address.

  Next, press esc and insert :wq to save your written.Then you shuold restart the network service by insert the instruction:service network restartAfter that ,insert :ping 192.168.109.151(This is your ip address which is divided by yourself) to see if the local connection is connectedIf your local connection is connected,the next step is to add the nameserver.You can choose varies of servers,insert:vi /etc/resolv.conf to edit the file.I used the server which is established by Microsoft and Ali Cloud:

 

The press esc and insert :wq to save as the same.Then you should check if your network connection is connected,so you insert:ping www.baidu.com(It can be a random website) to see  if your network is connected.

 

 

  Tips:There are some steps  easy to mistake,the first time I tried to set the IP address I just set 0 for the last address.Definitely,the network was'n connected.So,be careful to these settings,once you make a mistake on it,you will spend hours and even more to check for it!

Learning Experience of Big Data:The First Day-Try to set up a network connection on my virtural machine的更多相关文章

  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: Connect CentOs to Xshell and set Java environment on CentOS

    1.set up connections between vitural machine and Xshell: After we connect the virtural machine to ne ...

  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. data mining,machine learning,AI,data science,data science,business analytics

    数据挖掘(data mining),机器学习(machine learning),和人工智能(AI)的区别是什么? 数据科学(data science)和商业分析(business analytics ...

  7. Vue learning experience

    一.内置指令[v-ref] Official-document-expression: 父组件在子组件上注册的索引,便于直接访问.不需要表达式,必须提供参数ID,可以通过父组件的$ref对象访问子组件 ...

  8. Bayesian machine learning

    from: http://www.metacademy.org/roadmaps/rgrosse/bayesian_machine_learning Created by: Roger Grosse( ...

  9. Saving structured data with json

    Strings can easily be written to and read from a file. Numbers take a bit more effort, since the rea ...

随机推荐

  1. Mirco F-measure and Macro F-measure

  2. 再学UML-UML用例建模解析(一)

    UML(统一建模语言)是当前软件开发中使用最为广泛的建模技术之一,通过使用UML可以构造软件系统的需求模型(用例模型).静态模型.动态模型和架构模型.UML通过图形和文字符号来描述一个系统,它是绘制软 ...

  3. P2PSearcher云点播设置和使用技巧

    P2PSearcher是一款基于ED2K网络的资源搜索工具,资源丰富,小巧轻便.资源搜索结果最丰富.智能排序定位精准,立即找到想要的资源.新版可突破服务器封杀限制,一个能用的P2PSearcher.整 ...

  4. HDU2054:A == B ?

    A == B ? Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Su ...

  5. SSH免密钥互信及企业案例

    SSH远程免密码:  原理简述:客户端 创建公钥和私钥,公钥是锁,私钥是自己留在客户端的钥匙. 客户端将公钥(锁)发出到服务端,以后自己就能用客户端本地的私钥进行登陆,不用输入密码! 1.客户端,和服 ...

  6. SQL server 2008 安装报错 reporting services catalog database file existence

    SQL server 2008 安装时报错 提示 reporting services catalog database file existence 查了一下,是因为原来装过Sql server 2 ...

  7. IOS 录音(AVAudioRecorder)

    #import "HMViewController.h" #import <AVFoundation/AVFoundation.h> @interface HMView ...

  8. Ubuntu环境安装Gradle

    AndroidStudio使用全新的构建系列—–Gradle. 这是官方为什么使用gradle 的理由: Domain Specific Language (DSL) to describe and ...

  9. Python语言程序设计基础(3)—— 基本数据类型

    天天向上 dayup,dayfactor = 1.0,0.01 for i in range(365): if i % 7 in [6,0]: dayup = dayup*(1-dayfactor) ...

  10. 【转】一个Android项目搞定所有主流架构-1.项目介绍和基本MVC架构示例

    http://www.jianshu.com/p/798536fb91c5 项目启发来自谷歌的同类框架项目https://github.com/googlesamples/android-archit ...