Code Monkey home page Code Monkey logo

42-inception's Introduction

42-Inception

Version 0.5

NGNIX

  • sudo groupadd docker
  • sudo usermod -aG docker ${USER}

Run

  • docker build -t my-nginx .
  • docker run --name some-nginx -d -p 8080:80 my-nginx
  • docker run -it mariadb
  • docker stop my-nginx-container

img

  • sudo docker image ls
  • sudo docker image rm 2f9a77f899ea

docker-compose

  • docker compose up // run
  • docker compose down // Removed
  • docker compose build // Reconstruir las imágenes de los contenedores:

Docker

  • docker logs [CONTAINER_NAME_OR_ID]
  • docker rm -f my-nginx-container

mariadb

  • docker exec -it [CONTAINER_NAME_OR_ID] sh

  • docker exec -it [CONTAINER_NAME_OR_ID] bash

  • mysql -u [USERNAME] -p

  • SHOW DATABASES;

  • USE [DATABASE_NAME];

  • SHOW TABLES;

  • DESCRIBE [TABLE_NAME];

  • EXIT;

WordPress

  1. https://dluna-lo.42.fr/wordpress/wp-login.php

ip

  • sudo nano /etc/hosts
    • 127.0.0.1 dluna-lo.42.fr

users

  • Crear un nuevo usuario:

    • sudo adduser nombre_usuario
  • add user

    • sudo usermod -aG nombre_grupo nombre_usuario
  • Crear un nuevo grupo:

    • sudo addgroup nombre_grupo
  • Eliminar un usuario

    • sudo deluser nombre_usuario
  • Eliminar un usuario y su directorio de inicio:

    • sudo deluser --remove-home nombre_usuario
  • Eliminar un grupo:

    • sudo delgroup nombre_grupo
  • cut -d: -f1 /etc/group

42-inception's People

Contributors

diego-luna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.