Você está na página 1de 4

INSTALACION DE COMPONENTES PARA CENTOS 6.

5
----Poner en modo puente en virtual box
----Una vez ya instalado centos 6.5 en maquina real o virtual siguen los
componentes siguientes:
----Cuando arranque meterse como usuario root y su pass respectivo
1.- la tarjeta de red funciona? Funcione o no empezar con este comando:
Introducir:
Cd /etc/sysconfig/network-scripts
Introducir:
service network restart.
Deben aparecer 3 (ok) verdes o de lo contrario la maquina no tiene acceso a
internet.
2.- Cuando termine introducir: vi ifcfg-eth0
3.- Presionar la letra i (esto para modificar el archivo)
4.- Buscar el rengln donde diga
onboot:no------------cambiar--------------onboot:yes
5.- Presionar escape (ESC)
6.- Escribir
: wq (esto para guardar los cambios)
7.- introducir: yum install gcc (actualiza repositorios actualmente
instalados)
8.- reiniciar maquina OPCIONAL, introducir: reboot
9.- introducir: yum install perl
10.- introducir: yum install bind
11.-instalar openLDAP
I.- instalar nano:
yum install y nano
II.- deshabilitar selinux : nano /etc/sysconfig/selinux
SELINUX=disabled
III.- reiniciar servidor:
reboot
IV.- instalar OpenLDAP:
yum install y openldap-servers openldapclients nss-pam-ldapd
V.- activar login (opcional): mkdir /var/log/slapd
Chmod 755 /var/log/slapd/
12.- instalar SNMP
Introducir: yum install net-snmp net-snmp-utils
13.- instalar DNS
Introducir: yum y install bind (no hay problema si marca ya instalado)
Introducir: yum y install caching-nameserver*
14.- instalar DHCP
Introducir:
Yum install y dhcp
Comprobar el archivo (opcional): cat /etc/dhcp/dhcpd.conf
15.- Instalar postgres : (32 bits)
Rpm Uvh http:// yum.postgresql.org/9.3/redhat/rhel-6-i386/pgdgcentos93-9.3-1.noarch.rpm
Actualizar repositorios, introducir: yum update
Instalar postgres, introducir:
yum install postgresql93-server
postgresql93-contrib
Iniciar postgresql base de datos, introducir: service postgresql-9.3 initdb
16.- ACTUALIZAR REPOSITORIOS:
YUM UPDATE
17.-Instalar fail2ban

Descargar:
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-68.noarch.rpm
instalar: yum install fail2ban
18.- Instalar dkms
Sudo yum install dkms
19.- instalar mysql
Para instalar MySQL, hacemos esto:
yum -y install mysql mysql-server

3 Instalacin de Apache2
Apache2 est disponible como un paquete de CentOS, por lo tanto podemos
instalarlo as:
yum -y install httpd
4 Instalacin de PHP5
Podemos instalar PHP5 y el mdulo de Apache PHP5 de la siguiente manera:
yum -y install php

yum -y install php-mysql


yum -y install php-pecl-apc
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
yum -y install phpmyadmin
yum -y install dhcp

Você também pode gostar