網絡配置: 將BOOTPROTO設置爲動態的,即:BOOTPROTO=dhcp
將ONBOOT設置爲yes 即:ONBOOT=yes
java
重啓網路服務; service network start
ping www.baidu.com,能ping 通,則OKlinux
配置主機名: vim /etc/hosts
例如:
vim
配置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
驗證是否免密成功:
ssh
配置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)
blog
安裝java jdk:
tar -zxvf jdk-8u171-linux-x64.tar.gz -C /usr/java/ip
vim /etc/profile 同步
source /etc/profile
,執行: java -version 查看java版本 io
安裝httpd:
yum install -y httpd
啓動 :service httpd start
http://ip 正常狀況下會出現test page則OK