zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    win10重装vscode后打不开
    GDB 调试
    分布式架构--概述一
    汇编语言答案(王爽)第三版
    matplotlib之热成像图
    matplotlib之等高线图
    matplotlib之饼状图
    matplotlib之条形图绘制
    360图片网站批量抓取
    数据转换
  • 原文地址:https://www.cnblogs.com/anjunact/p/7597549.html
Copyright © 2011-2022 走看看