[root@namenode ~]# vi /etc/sysconfig/network
[root@namenode ~]# ipconfig
bash: ipconfig: command not found
[root@namenode ~]# service network restart
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/2
[ OK ]
[root@namenode ~]# ipconfig
bash: ipconfig: command not found
[root@namenode ~]# ifconfig
eth3 Link encap:Ethernet HWaddr 08:00:27:EF:BB:99
inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:feef:bb99/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:590 (590.0 b) TX bytes:7312 (7.1 KiB)
eth4 Link encap:Ethernet HWaddr 08:00:27:01:32:99
inet addr:10.0.3.15 Bcast:10.0.3.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe01:3299/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10181 (9.9 KiB) TX bytes:4912 (4.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:960 (960.0 b) TX bytes:960 (960.0 b)
[root@namenode ~]# vi /etc/hosts
[root@namenode ~]# vi /etc/hosts
[root@namenode ~]# vi /etc/hosts
[root@namenode ~]# cd /
[root@namenode /]# ls /
bin cgroup etc lib media mnt opt root selinux srv tmp var
boot dev home lost+found misc net proc sbin shared sys usr
[root@namenode /]# cd ~
[root@namenode ~]# cd .ssh/
[root@namenode .ssh]# ls
authorized_keys id_dsa id_dsa.pub known_hosts
[root@namenode .ssh]# re -rf ~/ssh/*
bash: re: command not found
[root@namenode .ssh]# rm -rf ~/.ssh/*
[root@namenode .ssh]# ssh namenode
The authenticity of host 'namenode (::1)' can't be established.
RSA key fingerprint is 1b:03:a6:95:98:76:db:7a:16:86:d5:f6:7f:5b:e8:49.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'namenode' (RSA) to the list of known hosts.
root@namenode's password:
Permission denied, please try again.
root@namenode's password:
Last login: Wed Jan 2 13:49:33 2013 from 192.168.1.100
[root@namenode ~]# exit
logout
Connection to namenode closed.
[root@namenode .ssh]# ls
known_hosts
[root@namenode .ssh]# ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
Generating public/private dsa key pair.
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
17:e8:ca:f4:13:2c:b6:ba:84:a7:e6:ed:e8:88:2a:46 root@namenode
The key's randomart image is:
+--[ DSA 1024]----+
| |
| . |
| . . |
| o . |
| + S . |
| E . + = o |
|. . o + o |
|oo.* . . |
|B+=.=. |
+-----------------+
[root@namenode .ssh]# ssh namenode
root@namenode's password:
Last login: Sat Mar 7 16:32:41 2015 from namenode
[root@namenode ~]# logout
Connection to namenode closed.
[root@namenode .ssh]# cp ~/.ssh/id_dsa.pub ~/.ssh.quthorized_keys
[root@namenode .ssh]# cp ~/.ssh/id_dsa.pub ~/.ssh.authorized_keys
[root@namenode .ssh]# ls
id_dsa id_dsa.pub known_hosts
[root@namenode .ssh]# ssh namenode
root@namenode's password:
Permission denied, please try again.
root@namenode's password:
[root@namenode .ssh]# ssh namenode
root@namenode's password:
Last login: Sat Mar 7 16:35:39 2015 from namenode
[root@namenode ~]# ssh namenode
root@namenode's password:
Last login: Sat Mar 7 16:38:04 2015 from namenode
[root@namenode ~]# ssh namenode
root@namenode's password:
Last login: Sat Mar 7 16:38:38 2015 from namenode
[root@namenode ~]# logout
Connection to namenode closed.
[root@namenode ~]# cd .ssh
[root@namenode .ssh]# cp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
[root@namenode .ssh]# ls
authorized_keys id_dsa id_dsa.pub known_hosts
[root@namenode .ssh]# ssh namenode
Last login: Sat Mar 7 16:38:48 2015 from namenode
[root@namenode ~]#
'Study & Edu > BigData' 카테고리의 다른 글
빅데이터 2틀째 수업, 마지막 시간 필기 (0) | 2015.03.14 |
---|---|
수업 두번 째 날 - server1, server2, server3 설정 및 확인 (0) | 2015.03.14 |
vi /etc/profile 안의 내용 - 파란줄만 설정하면 의사분산모드에서 전역에 등록하는법 (0) | 2015.03.07 |
하둡 압축풀기 (0) | 2015.03.07 |
vi /etc/profile 내용 복붙 -파란색줄 추가 (0) | 2015.03.07 |