centos 7 install

1. wget -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

2  yum update kernel*
3  rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
4   yum install gcc kernel-devel kernel-headers dkms make bzip2 perl
5 

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm  epel-release yum-uitls 

yum-config-manager --enable remi-php72 

yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo php-fpm php-mbstring php-xml

enable php
    location ~ \.php$ {
        root /usr/share/nginx/html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        include        fastcgi_params;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    }
 

Vagrant.configure("2") do |config|
   config.vbguest.auto_update = false
   ANSIBLE_RAW_SSH_ARGS = []
   VAGRANT_VM_PROVIDER = "virtualbox"
   machine_box = "c7"

  config.vm.define "c1" do |machine|
     machine.vm.box = machine_box
     machine.vm.hostname = "c1"
     machine.vm.network "private_network", ip: "192.168.11.11"
     # machine.vm.synced_folder ".", "/vagrant", disabled: true
     machine.vm.synced_folder ".", "/vagrant",type: "nfs"
     machine.vm.network "public_network",
     use_dhcp_assigned_default_route: true
     machine.vm.provider "virtualbox" do |node|
         node.name = "c1"
         node.memory = 2048
         node.cpus = 4
     end
    end

end

https://www.vagrantup.com/docs/synced-folders/nfs.html

centos7 nat and only private not aceess internet to resolve:

vi /etc/resolv.conf

nameserver 8.8.8.8

nameserver 8.8.4.4

/etc/pip.conf

[global]

trusted-host=mirrors.aliyun.com

index-url=http://mirrors.aliyun.com/pypi/simple

cm install

https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/cloudera-manager.repo

reposync -r cloudera-manage  //下载文件

https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.12.1/

手动下载,sudo yum install *.rpm

sudo yum install bind-utils

sudo yum install cloudera-manager-daemons cloudera-manager-server
sudo service cloudera-scm-agent start

systemctl disable firewalld
setenforce 0
#mysql 
mysql_secure_installation
grant all privileges on *.* to'root'@'%' identified by '123456' with grant option;
NTP SERVER
http://www.pool.ntp.org/zone/cn

restrict 192.168.1.0 netmask 255.255.255.0 nomodify notrap

logfile /var/log/ntp.log
posted @ 2017-09-26 16:40  anjunact  阅读(254)  评论(0编辑  收藏  举报