How to install LAMP on Cento 6 »

how to configure Centos 6,7 after a minimal installation

30.05.18

  08:06:00 by admin, Categories: Centos

## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 , it's name change with centos 7 into ep30s1 or another

DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
IPADDR=192.168.1.44
NETMASK=255.255.255.0

## Configure Default Gateway
#
# vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=centos6
GATEWAY=192.168.1.1

## Restart Network Interface
#

/etc/init.d/network restart

//ON CENTO 7
systemctl status network.service
systemctl restart network.service

## Configure DNS Server
#
# vi /etc/resolv.conf

nameserver 8.8.8.8 # Replace with your nameserver ip
nameserver 192.168.1.1 # Replace with your nameserver ip

yum -y update

yum install nano

nano /etc/selinux/configuration

The minimal install likely did not come with the bind-utils package, which I believe contains nslookup.

You can install bind-utils with:

sudo yum install bind-utils

In general, you can search for what package provides a command using the yum provides command:

sudo yum provides '*bin/nslookup'

therefore you may install net-tool command as "netstat" are present in there!

sudo yum install net-tools

No feedback yet

Aqui relato cada una de las experiencias con LINUX

Search

Categories

All LinuXnet

Random photo

Image post

  XML Feeds

powered by b2evolution