CentOS 7
Revisión del 20:53 16 oct 2018 de Francisco (discusión | contribuciones)
Luego de la instalación base configurar la red utilizando
nmtui
Actualizar
yum -y update
Configurar firewall con los servicios comunes
firewall-cmd --zone=public --permanent --add-service=ssh firewall-cmd --zone=public --permanent --add-service=http firewall-cmd --zone=public --permanent --add-service=https
Agregar repositorios utiles
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum -y update yum install yum-utils
yum-config-manager --enable remi-php70 [Install PHP 7.0] yum-config-manager --enable remi-php71 [Install PHP 7.1] yum-config-manager --enable remi-php72 [Install PHP 7.2]
yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo
Databases
MariaDB
# vi /etc/yum.repos.d/MariaDB.repo
Now add the following lines to your respective Linux distribution version as shown.
[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
yum install MariaDB-server MariaDB-client -y
sudo systemctl start mariadb sudo systemctl enable mariadb sudo mysql_secure_installation
postgreSQL
yum install postgresql-server postgresql-devel postgresql-contrib sudo postgresql-setup initdb sudo systemctl start postgresql
editar
vi /var/lib/pgsql/data/pg_hba.conf
Cambiar para que autentique con md5
#host all all 127.0.0.1/32 ident host all all 127.0.0.1/32 md5
systemctl restart postgresql systemctl enable postgresql
Python + Django
yum install python-pip python-devel yum install gcc nginx