Skip to content

Instantly share code, notes, and snippets.

View merolhack's full-sized avatar

Lenin Jose Meza Zarco merolhack

View GitHub Profile
@merolhack
merolhack / 3.1.- Instalación de MySQL
Last active October 1, 2015 20:07
REHL(Centos & Oracle Linux): Instalación y configuración de MySQL
# Instalar MySQL de los repositorios de REMI
yum --enablerepo=remi install mysql mysql-server -y
# Iniciar servicio
service mysqld start
# Iniciar servicio al iniciar el sistema
chkconfig mysqld on
@merolhack
merolhack / 9.1.- Instalar JAVA
Last active October 2, 2015 14:41
REHL(CentOs & Oracle Linux): Instalación de ElasticSearch
# Descargar JAVA de la página oficial de Oracle
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http://www.oracle.com/; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jre-8u51-linux-x64.rpm"
# Instalar paquete RPM
rpm -Uvh jre-8u51-linux-x64.rpm
# Revisar la versión de JAVA
java -version
@merolhack
merolhack / 5.1.- Instalar PECL
Created October 2, 2015 16:41
REHL(CentOs & Oracle Linux): Instalación de PECL y APC
# versiones de desarrollo de PHP, Apache y PCRE, también GCC y Make para compilar
yum --enablerepo=remi install php-pear php-devel httpd-devel pcre-devel gcc make -y
@merolhack
merolhack / 10.1.- Instalar Memcached
Created October 2, 2015 16:56
REHL(CentOs & Oracle Linux): Instalación de Memcached
# Instalar Memcached del repositorio de REMI
yum --enablerepo=remi install memcached -y
# Iniciar servicio
service memcached start
# Iniciar servicio al iniciar el sistema
chkconfig memcached on
@merolhack
merolhack / 11.1.- Instalar GIT
Last active October 2, 2015 17:30
REHL(CentOs & Oracle Linux): Instalar GIT y GitList
# Instalar con YUM
yum install git -y
# Verificar la instalación
git --version
@merolhack
merolhack / 2.1.- Instalación de Apache
Last active October 2, 2015 18:20
REHL(CentOs & Oracle Linux): Instalación y configuración de Apache
# Instalar Apache de los repositorios de REMI
yum --enablerepo=remi install httpd -y
# Iniciar servicio
service httpd start
# Iniciar servicio al iniciar el sistema
chkconfig httpd on
@merolhack
merolhack / 1.1.- Instalación de repositorios
Last active October 5, 2015 15:46
REHL(CentOs & Oracle Linux) 6: EPEL & Remi
# Actualizar en base a los repositorios actuales:
yum update
# Mostrar la lista de repositorios:
yum repolist
# Descargar el paquete RPM del repositorio EPEL:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Instalar el RPM
@merolhack
merolhack / 8.1.- Webmin repo & webmin install
Last active October 15, 2015 18:47
REHL(Centos & Oracle Linux) 6: Instalar Webmin
# Crear archivo del repositorio:
nano /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
# Descargar e instalar la llave GPG:
wget http://www.webmin.com/jcameron-key.asc
@merolhack
merolhack / 4.1.- Instalación de PHP
Last active October 19, 2015 22:28
REHL(CentOs & Oracle Linux): Instalación y configuración de PHP
# Instalar PHP de los repositorios de REMI
yum --enablerepo=remi install php php-common php-cli -y
# Reiniciar Apache
service httpd restart
# Comprobar módulos instalados
php -m
# Revisar configuración
@merolhack
merolhack / CakePHP: Instalación
Created October 19, 2015 22:35
Instalación y configuración de CakePHP
# Instalar mediante composer
composer require cakephp/cakephp:"~3.1"