#更新yum源httpd yum -y install httpd #查看httpd状态 systemctl status httpd.service #启动httpd service httpd start #配置httpd永久?效(重启依然?效) chkconfig httpd on
#更新yum源yum-utils createrepo yum -y install yum-utils createrepo #进?yum源路径 cd /var/www/html/ #创建cm?件夹 mkdir cm
#将下载好的资源rpm包添加进/var/www/html/cm/
createrepo /var/www/html/cm/
vim /etc/yum.repos.d/cloudera-manager.repo ---->添加如下内容(注意IP改成本地yum主机IP,只能是ip) [cloudera-manager] name=Cloudera Manager, Version yum baseurl=http://${本机ip}/cm gpgcheck=0 enabled=1 ----<
yum clean all yum makecache
6.验证
yum list | grep rpm_name