2014년 12월 27일 토요일

['나는 한다 Openstack 설치를' 시리즈 2편]매뉴얼대로 Centos에 openstack icehouse 설치하기, 기본 설정하기 2편

['나는 한다 Openstack 설치를' 시리즈 2편]매뉴얼대로 Centos에 openstack icehouse 설치하기, 기본 설정하기 2편

mysql 설치


# yum install -y mysql mysql-server MySQL-python

설치 후 /etc/my.cnf 파일 수정해주세요.

[mysqld]
...
bind-address = 192.168.137.201 // contorller IP 입력
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8

mysql 시작하기


#/etc/init.d/mysqld start
#chkconfig mysqld on
#mysqladmin -u root password <비밀번호>

mysql db 설치하기


#mysql_install_db
#mysql_secure_installation  // 이후 나오는 항목 중에 노란색만 입력하세요.

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):비밀번호 입력
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

You already have a root password set, so you can safely answer 'n'.

Change the root password? [Y/n] n
 ... skipping.

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] n
 ... skipping.

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] n
 ... skipping.

By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] n
 ... skipping.

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...



All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

controller node 빼고 모든 node에 python 설치하기

# yum install -y MySQL-python

openstack package 설치하기

 모든 node에서 설치해주세요.

# yum install -y yum-plugin-priorities

# yum install -y http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-3.noarch.rpm

# yum install -y http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

# yum install -y openstack-utils

# yum install -y openstack-selinux

# yum upgrade -y

# shutdown -r 0


messaging server 설치하기

여기서부터는 다시 controller node에서만 설치합니다.

messaging server에서 사용하는 message broker는 세가지가 있는데 redhat계열에서는 Qpid를 이용합니다.

  • RabbitMQ
  • Qpid
  • ZeroMQ
# yum install -y qpid-cpp-server

# vi /etc/qpidd.conf  // qpidd.conf 파일 맨 밑에 auth=yes를 밑의 사진처럼 변경합니다.


# service qpidd start

# chkconfig qpidd on

여기까지 하면 이제 openstack 설치의 기초 공사가 끝난겁니다.


댓글 1개: