Linux虛擬機器安裝(CentOS 6.5,圖文詳解,需要自查),linuxcentos

來源:互聯網
上載者:User

Linux虛擬機器安裝(CentOS 6.5,圖文詳解,需要自查),linuxcentos

Linux虛擬機器的安裝(圖文詳解)

下篇會接續Hadoop叢集安裝(以此為基礎)

一、安裝準備

VMWorkstation、linux系統鏡像(以下以CentOS6.5為例)

二、安裝過程詳解

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

關閉防火牆:

service iptables stop

chkconfig iptables off

 

添加固定ip:

 

vi /etc/sysconfig/network-scripts/ifcfg-eth0

在其中修改添加:

HWADDR=00:0C:29:60:77:3D(本機相對應的HWaddr)

ONBOOT=yes

BOOTPROTO=none

IPADDR=192.168.83.133(本機IP)

(可使用ifconfig進行查看)

GATEWAY=192.168.83.2

DNS1=8.8.4.4

DNS2=222.85.85.85

儲存之後重啟network

 service network restart

 注意:(安裝過後如何同步系統時間)

時間的同步對以後hadoop叢集和MapReduce使用等等也許會有一定的影響

安裝後,如果發現系統時間不對,可以使用如下命令同步系統時間

ntpdate cn.pool.ntp.org

出現the NTP socket is in use, exiting解決方案:

cd /etc/rc.d/init.d

./ntpd stop

 

本機ssh配置

進入到.ssh目錄/root/.ssh

刪除原有的檔案

rm -f *

ssh-keygen -t rsa

斷行符號到執行結束

cat id_rsa.pub >>authorized_keys

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.