Centos 5.6下安装Nagios监控平台
3)安装mysql,并设置mysql开机自启动,同时启动mysql 安装Mysql [root@localhost ~]# yum install mysql Total download size: 10 M Is this ok [y/N]: Y 安装成功后,将显示下图所示内容 [root@localhost ~]# yum install mysql-server Total download size: 10 M Is this ok [y/N]:Y [root@localhost ~]# chkconfig --levels 35 mysqld on [root@localhost ~]# service mysqld start 配置MySql的root密码 [root@localhost ~]# mysql_secure_installation 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. Set root password? [Y/n] :Y New password: (这里输入密码,注意输入内容是不会显示出来的哦) Re-enter new password: (这里再次输入密码,注意输入内容是不会显示出来的哦) Password updated successfully! Reloading privilege tables.. ... Success! 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]:Y 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(是否禁止root的远程登录)? [Y/n]:Y 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]: Y Reload privilege tables now? [Y/n] :Y Cleaning up... All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL! (编辑:应用网_丽江站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |