• 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
  • 相关阅读:
    webpack 配置别名,解决 import 时路径查找麻烦的问题
    Vue 中 diff 算法后更新 DOM 的方法
    React Native 开发环境搭建
    JavaScript 堆排序详解
    JavaScript 快速排序详解
    websocket 心跳重连
    AJAX 请求后使用 JS 打开新标签页被阻止的解决方法
    auto.js环境搭建
    Mac os 创建pppoe拨号
    mac os IntelliJ IDEA搭建环境
  • 原文地址:https://www.cnblogs.com/IvanChen/p/4489384.html
Copyright © 2020-2023  润新知