Hadoop学习教程

Hadoop SecuertCRT 学习

[root@localhost ~]# su -  root
[root@localhost ~]# service iptables restart
[root@localhost ~]# chkconfig iptables off
[root@localhost ~]# hostname
[root@localhost ~]# vim /etc/sysconfig/selinux 


"/etc/sysconfig/selinux" 13L, 457C written                                                                           
[root@localhost ~]# vim /etc/sysconfig/selinux 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

[root@localhost ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=hadoop

[root@localhost ~]# vim /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.31 hadoop

[root@localhost ~]# reboot

[root@hadoop ~]#  ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
e3:54:6e:9b:fa:19:17:b2:9f:48:36:10:ca:76:e5:35 root@hadoop
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|                 |
|        . o E    |
|     . . * . .   |
|      + S = .    |
|     . + + = .   |
|        . O .    |
|         + B .   |
|        ..+ o    |
+-----------------+
[root@hadoop ~]#  ssh-copy-id 192.168.30.134
root@192.168.30.134's password: 
Now try logging into the machine, with "ssh '192.168.30.134'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@hadoop ~]# ssh 192.168.30.134
Last login: Wed May 18 16:18:09 2016 from 192.168.30.134
[root@hadoop ~]# cd /home/
[root@hadoop home]# ls
chesian
[root@hadoop home]# rm -rf chesian/

[root@hadoop yum.repos.d]# yum install -y lrzsz
[root@hadoop yum.repos.d]# rz

CentOS更改yum源与更新系统

[1] 首先备份/etc/yum.repos.d/CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
[2] 进入yum源配置文件所在文件夹

[root@localhost yum.repos.d]# cd /etc/yum.repos.d/
[3] 下载163的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)

[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
[4] 运行yum makecache生成缓存

[root@localhost yum.repos.d]# yum makecache
[5] 更新系统

[root@localhost yum.repos.d]# yum -y update
[6] 安装vim编辑器

[root@localhost ~]# yum -y install vim*

[root@hadoop protobuf-2.5.0]# yum -y install autoconf automake libtool cmake ncurses-devel openssl-devel lzo-devel zlib-devel gcc gcc-c++



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Mrchesian

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值