Code Monkey home page Code Monkey logo

debian_server's Introduction

Instalar servidor DEBIAN (12)

Instalación de VM

Se instala una versión en una VM

En la etapa final de la instalación en programas:

[x] SSH Server

[x] Utilidades estándar del sistema

Post instalación

ingresar al sistema con el usuario root

Obtener la IP para conectarse remotamente

ip addres

y luego

apt update
apt -y upgrade

Instalar herramientas

apt install vim
#apt install wget 
apt install htop
apt install duf
apt install net-tools
apt install network-manager
apt install git
apt install ufw # firewall

Activar firewall

ufw enable

Habiliar puerto

ufw allow [PORT]/tcp

Ver los puertos abiertos de linux

netstat -tulpn

para abrir los puertos:

https://jmjinformatico.es/abrir-puertos-en-debian-11/

cambiar los datos de conexión

apt install network-manager

y luego ejecutar para cambiar la configuración de red local

nmtui

Conexión remota

Para conectarse remotamente

ssh root@IP

ingresar la contraseña y listo

IMPORTANTE En debian no existe el comando sudo, hay que ingresar con el root.

Instalar Apache

Utilizar esta guía.

https://laboratoriolinux.es/index.php/-noticias-mundo-linux-/software/34772-como-configurar-eficientemente-un-servidor-web-en-debian-gnu-linux.html

apt install apache2
systemctl start apache2
systemctl enable apache2
apt install ufw

Comandos de apache

systemctl [start|restart|stop] apache2
a2ensite mi-sitio.com
systemctl reload apache2

Instalar PHP

https://itslinuxfoss.com/install-php-debian-12/

apt install php libapache2-mod-php

Instalar extensiones de PHP

apt install -y php-cli php-common php-mbstring php-gd php-intl php-xml php-mysql php-zip php-curl php-xmlrpc
systemclt restart apache2a

Instalar MySQL / MARIA DB

https://hostingmasbarato.com/como/como-instalar-opencart-en-un-servidor-ubuntu-18-04-o-vps-con-apache-mariadb-y-php-7/

apt-get install mariadb-server mariadb-client
mysql_secure_installation

Crear la base de datos

mysql -u root -p
# Crear base de datos
CREATE DATABASE opencart;
# crear usuario
CREATE USER 'ocuser'@'localhost' IDENTIFIED BY 'password';
# darle permisos al usuario
GRANT ALL ON opencart.* TO 'ocuser'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

debian_server's People

Contributors

k23dev 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.