Ubuntu Server Deploy
¿Qué es un servidor Ubuntu?
Ubuntu es un sistema operativo basado en Linux que se utiliza en computadoras, servidores y dispositivos móviles. Es una distribución de Linux popular y libre que se caracteriza por su facilidad de uso y su soporte para una amplia gama de hardware y aplicaciones.
Un servidor Ubuntu es un equipo informático que se ejecuta con Ubuntu como sistema operativo. Es un tipo de servidor que se utiliza para alojar y administrar aplicaciones y servicios en una red, como un sitio web, una base de datos, un servidor de correo, o un servidor de archivos.
Un servidor Ubuntu ofrece una amplia gama de características y herramientas para administrar y aprovechar al máximo el servidor. Incluye una interfaz gráfica de usuario y un conjunto de aplicaciones y utilidades que facilitan la administración del servidor, la configuración de seguridad, y la monitorización de los servicios y recursos.
En general, un servidor Ubuntu es una plataforma poderosa y versátil para alojar y administrar aplicaciones y servicios en una red. Es una opción popular y fiable para una amplia gama de usos, y se caracteriza por su facilidad de uso y su soporte para una amplia gama de hardware y aplicaciones.
Acceder a servidor mediante SSH en VSCode
Yes, it is possible to access a server using SSH in Visual Studio Code (VS Code). VS Code is a popular and powerful code editor that includes support for a wide range of languages and technologies, including SSH.
To access a server using SSH in VS Code, you need to have an SSH client installed on your local computer, and you need to have an SSH server running on the remote server that you want to access. Once you have these, you can use VS Code to connect to the server using SSH and manage the server and its files using the built-in terminal and file explorer.
To connect to a server using SSH in VS Code, you can use the built-in command palette and search for "SSH" to access the available SSH commands. You can then use the "Add SSH Host" command to add the details of the server that you want to connect to, and the "Connect to Host" command to connect to the server using SSH.
Once you are connected to the server using SSH, you can use the terminal and file explorer in VS Code to manage the server and its files, as well as run commands and scripts on the server. You can also use VS Code's debugging and other tools to work with the files and code on the server, just as you would on your local computer.
Overall, using SSH in VS Code is a convenient and powerful way to access and manage a remote server. It provides a seamless and integrated experience that allows you to work with the server and its files using the same tools and features that you use for local development.
ACCEDER SERVER DESDE SSH https://vitux.com/how-to-remotely-manage-a-ubuntu-server-with-ssh/ How to Install Ubuntu Server on a Raspberry Pi (itsfoss.com)
sudo ufw allow ssh
sudo ufw enable;
sudo ufw allow 22
**Si el portforwading te redirige a otros puertos similares tienes que permitirlos aquí ?**
sudo ufw allow 8080 / sudo ufw allow 60443
sudo ufw status
sudo apt-get install net-tools
sudo apt install net-tools
sudo apt install openssh-server
Cargar en VSCode: Remote SSH plugin; si no carga eliminar known_hosts ("C:\Users\casas.ssh")
INSTALL SERVER: How To Install the Apache Web Server on Ubuntu 20.04 - Tuts Make
sudo apt-get install apache2
sudo /etc/init.d/apache2 status
sudo service apache2 start
sudo ufw allow ‘Apache Full’
PORT FORWADING IN ROUTER
CONF FILE hostname -I sudo nano /etc/apache2/sites-available/ctaz.conf
<VirtualHost \*:80>
ServerName [20.73.45.21](http://20.73.45.21/)
ServerAdmin youremail@email.com
WSGIScriptAlias / /var/www/ctaz/ctaz.wsgi
<Directory /var/www ctaz/ctaz/>
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/ctaz-error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/ctaz-access.log combined
</VirtualHost>
sudo a2ensite ctaz
sudo a2dissite 000-default
sudo systemctl reload apache2
ADD APP FILES /var/www mediante WinSCP sudo mkdir -p /var/www/ctaz/ctaz sudo chown appsetsa_user:appsetsa_user /var/www/ctaz
ADD WSGI FILE sudo nano /var/www/ctaz/ctaz.wsgi
#!/usr/bin/python3.6
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/ctaz/ctaz/")
from index import app
application = app.server
ADD HTTS CERTIFICATE Setup Apache2 HTTP with Self-Signed SSL/TLS Certificates on Ubuntu 16.04 LTS Servers • Website for Students sudo nano /etc/apache2/sites-available/default-ssl.conf Let's Encrypt (letsencrypt.org) (RECOMENDACIÓN JPUENTE)
Github-hosted runners
Virtual machines to run workflows. The virtual machine contains an environment of tools, packages, and settings available for GitHub Actions to use. Viewing deployment activity for your repository. Using environments for deployment.
name: Deployment
on:
push:
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- name: deploy
# ...deployment-specific steps
Using the visualization graph.
Última actualización
¿Te fue útil?