[root@mongoserver ~]# hostname -f mongoserver.example.com [root@mongoserver ~]# hostname -I 192.168.183.128 [root@mongoserver ~]# cat >> /etc/yum.repos.d/mongodb.repo [mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ gpgcheck=0 enabled=1 [root@mongoserver ~]# yum repolist |grep mongo mongodb MongoDB Repository 279 [root@mongoserver ~]# yum -y install mongodb-org mongodb-org-server [root@mongoserver ~]# mongostat 2017-04-12T19:24:07.205+0530 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused couldn't connect to … Continue reading Mongo db
Day: April 12, 2017
MySQL master slave replication in CentOS 6
[root@localhost ~]# yum install mysql mysql-server mysql-devel -y [root@localhost ~]# hostname -I 192.168.183.135 [root@localhost ~]# /etc/init.d/mysqld status mysqld is stopped [root@localhost ~]# service mysqld status mysqld is stopped [root@localhost ~]# service mysqld start Initializing MySQL database: Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy … Continue reading MySQL master slave replication in CentOS 6
