zoukankan      html  css  js  c++  java
  • 2. Basic environment configuration

    网卡设置:
    Controller Node
    # The loopback network interface
    auto lo
    iface lo inet loopback
     
    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 192.168.0.5
    gateway 192.168.0.254
    netmask 255.255.255.0
    dns-nameservers 114.114.114.114
     
    # The external network interface
    auto eth1
    iface eth1 inet manual
    up ip link set dev $IFACE up
    down ip link set dev $IFACE down
     
    Compute Node
    # The loopback network interface
    auto lo
    iface lo inet loopback
     
     
    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 192.168.0.7
    gateway 192.168.0.254
    netmask 255.255.255.0
    dns-nameservers 114.114.114.114
     
     
    # The external network interface
    auto eth1
    iface eth1 inet manual
    up ip link set dev $IFACE up
    down ip link set dev $IFACE down
     
    # The bridge 
    # 没有br100是因为在后面的设置中系统会自动创建,Bridge中包含eth1,即flat_interface
     
    数据库设置:
    Controller Node:
    1. sudo apt-get install python-mysqldb mysql-server
     
    2. sudo vi /etc/mysql/my.cnf
    [mysqld]
    ...
    bind-address = 10.0.0.11
    [mysqld]
    ...
    default-storage-engine = innodb
    innodb_file_per_table
    collation-server = utf8_general_ci
    init-connect = 'SET NAMES utf8'
    character-set-server = utf8
     
    3. sudo service mysql restart
     
    4. mysql_secure_installation
     
    Other Node:
    1. sudo apt-get install python-mysqldb
     
    消息服务器设置:
    Controller Node:
    1. sudo apt-get install rabbitmq-server
     
    2. sudo rabbitmqctl change_password guest RABBIT_PASS
  • 相关阅读:
    Solution -「CF 1303G」Sum of Prefix Sums
    Solution -「SCOI 2016」萌萌哒
    赵栋 201771010137 《面向对象程序设计(java)》第一周学习总结
    PIC单片机的XC8
    10种软件滤波方法
    PIC单片机的定时器
    ASP.NET 缓存
    SqlServer索引的原理与应用
    SQL Server 游标
    SQL Server 开发指南
  • 原文地址:https://www.cnblogs.com/IvanChen/p/4489384.html
Copyright © 2011-2022 走看看