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
  • 相关阅读:
    iis 7.5应用程序池自动停止
    百度云推送
    两点经纬度之间距离计算
    集合已修改;可能无法执行枚举操作。
    【百度地图】- 学习.1
    阿里云服务器下安装LAMP环境(CentOS Linux 6.3)
    微信相关内容
    阿里云服务器下安装LAMP环境(CentOS Linux 6.3)
    php面试相关
    MySQL权限管理
  • 原文地址:https://www.cnblogs.com/IvanChen/p/4489384.html
Copyright © 2011-2022 走看看