killobb.blogg.se

Install mongodb centos 7 minimal
Install mongodb centos 7 minimal






install mongodb centos 7 minimal

#Install mongodb centos 7 minimal install

This will not install any new packages other than updating and installing the latest version of installed packages and security updates. $ echo $HOSTNAMEĪlternatively you may use command ‘ hostname‘ command to view your current hotsname. # vi /etc/hostnameĪfter setting hostname, make sure to confirm hostname by logout and login again. To set new HOSTNAME we need to edit ‘ /etc/hostsname‘ and replace old hostname with the desired one.

install mongodb centos 7 minimal

The next thing to do is to change the HOSTNAME of the CentOS sever. Verify IP Address Check Network Status 3. If everything is ok, Ping to see network status… # service network restartĪfter restarting network, make sure to check the IP address and network status… # ip addr show Restart service network and check the IP is correct or not, that was assigned. Notice your IP, GATEWAY and DNS will vary, please confirm it with your ISP. IPADDR = “”Īfter making the changes ‘ ifcfg-enp0s3‘, looks something like the image below. Also leave double quotes as it is and enter your data in between. Note the below four fields and leave everything else untouched. Now we will be editing four fields in the file. Here, I’m using Vi editor and make sure you must be root user to make changes… # vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 Now open and edit file /etc/sysconfig/network-scripts/ifcfg-enp0s3 using your choice of editor. So, make sure you first check the current IP address. # yum install net-tools īut as I said we will be using ip command to configure static IP address. However, ifconfig command is still available for most of the Linux distributions and can be installed from default repository. We will be using ip command the replacement of ifconfig command. The first thing you need to do is to configure Static IP address, Route and DNS to your CentOS Server. If you are running a CentOS server immediately move to further steps. Note: This step is only for RedHat Enterprise Linux having a valid subscription.








Install mongodb centos 7 minimal