Java Expert....Java/Open Source Addict

Redes Sociales

twitterlinkedinrss feedemail youtube

miércoles, 27 de julio de 2022

Instalar Docker en Ubuntu 20.0.4


Hola amig@s como están... En esta oportunidad les mostraré como instalar Docker  en Ubuntu 20.04., para lo cual se debe realizar lo siguiente:


1. Logearse como root y configurar APT para que puede instalar paquetes a través de HTTPS, para lo cual se debe ejecutar el siguiente comando apt install apt-transport-https ca-certificates curl software-properties-common.

 


 2. Añadir la  GPG key para el repositorio oficial de Docker a nuestro sistema, para lo cual se debe ejecutar el siguiente comando curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

 3. Añadir el repositorio de Docker a las fuentes de APT, para lo cual se debe ejecutar el siguiente comando echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null


 4. Actualizar la lista de paquetes, para lo cual se debe ejecutar el siguiente comando  apt update

 5. Posterior a esto se necesita asegurar que se instalará del repositorio que se ha configurado más no del que viene por defecto en Ubuntu, para lo cual se utiliza el comando apt-cache policy docker-ce


 5. Una vez verificado esto se debe proceder a instalar docker utilizando el siguiente comando  sudo apt install docker-ce


 6. Finalmente verificaremos que el servicio este levantado y la versión de Docker, para lo cual se utiliza los comandos   systemctl status docker y docker -v




viernes, 8 de julio de 2022

Redirect from one URL to another in Apache on Linux


Hello friends, In this opportunity, I will show how to redirect from one URL to another in Apache Web Server on Linux, Let me begin

1. Configure the Server Name in the file /etc/httpd/conf/httpd.conf with the domain name.

2. Configure the VirtualHost directive, where we redirect from one base URL  to another URL. To do this, you must use the Redirect with 3 params: the first the code 301 specifies that the redirect is permanent, the second /  mean the URL base and finally the third param, https://www.matoosfe.com:8080/aprende is the url to redirect


3. Later,  you must restart the service and verify the status, with the commands systemctl restart httpd.service and systemctl status httpd.service respectively.

 


4. Finally, test the redirect.