2012年11月14日 星期三

opnesteck buildup

2. Getting Ready

2.1. Preparing Ubuntu 12.10

  • After you install Ubuntu 12.10 Server 64bits, Go to the sudo mode and don't leave it until the end of this guide:
    sudo su
    
  • Update your system:
    apt-get update
    apt-get upgrade
    apt-get dist-upgrade
    

2.2.Networking

  • Two NICs on the controller should be internet connected:
    auto eth0
    iface eth0 inet static
    address 192.168.100.51
    netmask 255.255.255.0
    gateway 192.168.100.1
    dns-nameservers 8.8.8.8
    
    auto eth1
    iface eth1 inet static
    address 100.10.10.51
    netmask 255.255.255.0
    
    auto eth2
    iface eth2 inet manual
    up ifconfig $IFACE 0.0.0.0 up
    up ip link set $IFACE promisc on
    down ip link set $IFACE promisc off
    down ifconfig $IFACE down
    
  • Restart your networking services:
    service networking restart
    

2.3. MySQL & RabbitMQ

  • Install MySQL:
    apt-get install mysql-server python-mysqldb
    
  • Configure mysql to accept all incoming requests:
    sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf
    service mysql restart
    
  • Install RabbitMQ:
    apt-get install rabbitmq-server
    

沒有留言:

張貼留言