NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDEDFOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASEREAD EACH STEP CAREFULLY!
In order to log into MariaDB to secure it,we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, thepassword will be blank,
so you should just press enter here.
Enter current password for root (enter fornone):
OK, successfully used password, moving on...
Setting the root password ensures thatnobody can log into the MariaDB
root user without the proper authorisation.
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 ananonymous user, allowing anyone
to log into MariaDB without having to have auser 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] y
...Success!
Normally, root should only be allowed toconnect from 'localhost'. This
ensures that someone cannot guess at theroot password from the network.
Disallow root login remotely? [Y/n] y
...Success!
By default, MariaDB comes with a databasenamed '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]y
-Dropping test database...
...Success!
-Removing privileges on test database...
...Success!
Reloading the privilege tables will ensurethat 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 MariaDB
installation should now be secure.
Thanks for using MariaDB! 2.2配置rabbitMQ消息队列
[root@linux-node1 ~]# systemctl enablerabbitmq-server.service
[root@linux-node1 ~]# systemctl startrabbitmq-server.service <- 启动 ->
[root@linux-node1 ~]# rabbitmqctl add_useropenstack openstack <- 添加用户 ->
Creating user "openstack" ...
[root@linux-node1 ~]# rabbitmqctlset_permissions openstack ".*" ".*" ".*"
Setting permissions for user"openstack" in vhost "/" ... <- 设置权限->
[root@linux-node1 ~]# rabbitmq-pluginsenable rabbitmq_management <- 重启 ->
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Applying plugin configuration torabbit@linux-node1... started 6 plugins.
页面访问:192.168.56.11:15672打开rabbitmq页面