Ambari 安装配置linux


网络配置: 将BOOTPROTO设置为动态的,即:BOOTPROTO=dhcp
将ONBOOT设置为yes 即:ONBOOT=yes

 


重启网路服务; service network start
ping www.baidu.com,能ping 通,则OK

配置主机名: vim /etc/hosts
例如:

 


配置ssh:

ssh-keygen 按提示一直回车,完成后,在/root/.ssh目录下会生成密钥文件
cd /root/.ssh
cat id_rsa.pub >> authorized_keys 将公钥文件导入主机的authorized_keys 文件
多机器ssh 免密登录,
ssh-copy-id hdp2
ssh-copy-id hdp1
验证是否免密成功:

 

配置ntp服务:
hdp中有服务需要集群的时间同步,需保证每台机器时间一致
yum install -y ntp
service enable ntpd
service start ntpd
关闭防火墙:
1. 永久性生效
开启:chkconfig iptables on
关闭:chkconfig iptables off
2. 即时生效,重启后失效
开启:service iptables start
关闭:service iptables stop

配置selinux:

vim /etc/selinux/config (在编辑器中修改selinux的配置文件 设置 selinux = disabled)

安装java jdk:
tar -zxvf jdk-8u171-linux-x64.tar.gz -C /usr/java/

vim /etc/profile 

 


source /etc/profile
,执行: java -version 查看java版本

 


安装httpd:
yum install -y httpd
启动 :service httpd start

http://ip 正常情况下会出现test page则OK

 

posted @ 2018-06-06 00:18  凯心宝牙  阅读(423)  评论(0编辑  收藏  举报