加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_宿迁站长网 (https://www.0527zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Centos 5.6下安装Nagios监控平台

发布时间:2016-01-21 19:22:45 所属栏目:Linux 来源:网络整理
导读:最近需要对公司内的所有服务器进行监控,当然现在有很多软件可以进行这个功能的实现,比如说微软的SCOM,还有就是今天的Nagios软件了,但是前者还好说Windows

3)安装mysql,并设置mysql开机自启动,同时启动mysql

安装Mysql

[root@localhost ~]# yum install mysql

Total download size: 10 M

Is this ok [y/N]: Y

安装成功后,将显示下图所示内容

Centos 5.6下安装Nagios监控平台

[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!

(编辑:云计算网_宿迁站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!