This is the exmaple of Cloud Computiong by OpenStack Yoga. Install some services that some components of OpenStack needs for system requirements on here. This example is based on the emvironment like follows. eth0|10.0.0.30 +-----------+-----------+ | [ Control Node ] | | | | MariaDB RabbitMQ | | Memcached | +-----------------------+ |
[1] | ||
[2] | apt -y install mariadb-server vi /etc/mysql/mariadb.conf.d/50-server.cnf systemctl restart mariadb mysql_secure_installation # set root password Set root password? [Y/n] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB 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 Remove anonymous users? [Y/n] y ... Success! 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 Disallow root login remotely? [Y/n] y ... Success! By default, MariaDB 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 Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. # reload privilege tables Reload privilege tables now? [Y/n] y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB! root@nghialt-server:~# apt -y install software-properties-common root@nghialt-server:~# add-apt-repository cloud-archive:yoga root@nghialt-server:~# apt update root@nghialt-server:~# apt -y upgrade
apt -y install rabbitmq-server memcached python3-pymysql # add a user to RabbitMQ # set any password for [password] root@nghialt-server:~# rabbitmqctl add_user openstack password Creating user "openstack" ... root@nghialt-server:~# rabbitmqctl set_permissions openstack ".*" ".*" ".*" Setting permissions for user "openstack" in vhost "/" ... root@nghialt-server:~# vi /etc/mysql/mariadb.conf.d/50-server.cnf # line 28 : change bind-address = 0.0.0.0 # line 40 : uncomment and change # default value 151 is not enough on Openstack Env max_connections = 500 |
0 nhận xét:
Đăng nhận xét