Cómo instalar Foreman en Ubuntu 16.04 LTS
¿Usando un sistema diferente? Foreman es una herramienta gratuita y de código abierto que lo ayuda con la configuración y administración de servidores físicos y virtuales. Forema
Strider CD is an open source continuous deployment platform. The application is written in Node.js and uses MongoDB as a storage backend. Strider is backed by many plugins which add various features to the application.
Ensure that your system is up to date.
sudo apt-get update && sudo apt-get upgrade -y
Nodesource provides pre-built binaries for Node.js, which can be installed directly using the OS package manager. Configure the Nodesource repository.
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
Install Node.js.
sudo apt-get install -y nodejs
Node.js also installs NPM along with it. Ensure that Node.js and NPM have installed successfully.
strider@vultr:~$ node -v
v10.15.3
strider@vultr:~$ npm -v
6.4.1
Git comes pre-installed in most Vultr instances. However, you can make sure it's installed and updated.
sudo apt-get install -y git
Install node-gyp
, which is a Node.js native add-on build tool.
sudo npm install -g node-gyp
Import MongoDB public GPG key to ensure unaltered packages are being installed.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
Add MongoDB repository file.
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
Update the system repository cache and install the latest MongoDB.
sudo apt-get update
sudo apt-get install -y mongodb-org
Start MongoDB and enable it to automatically start at boot time.
sudo systemctl start mongod
sudo systemctl enable mongod
Open the MongoDB shell by running the mongo
command. You will see the following output.
strider@vultr:~/strider$ mongo
MongoDB shell version v4.0.8
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("a06b2797-6f58-43e1-8a41-c6401edb5083") }
MongoDB server version: 4.0.8
Welcome to the MongoDB shell.
...
Switch to the admin
database.
use admin
Create an admin user. Make sure to replace username admin
and password StrongPassword
with your preferred choice.
db.createUser(
{
user: "admin",
pwd: "StrongPassword",
roles: [ { role: "userAdminAnyDatabase", db: "admin" }, "readWriteAnyDatabase" ]
}
)
Quit the Mongo shell by pressing CTRL+C.
Open the configuration file.
sudo nano /etc/mongod.conf
Find the line with the commented word #security:
and replace it with the following text.
security:
authorization: "enabled"
Save the file and exit the editor. Restart the MongoDB server.
sudo systemctl restart mongod
Clone the Strider repository from Github.
cd ~
git clone https://github.com/Strider-CD/strider.git
Install Node.js dependencies.
cd ~/strider
npm install
Login to the Mongo shell once again to create a database for Strider.
mongo
Authenticate your Mongo session with the credentials you created earlier.
use admin
db.auth("admin", "StrongPassword" )
Create a new database user for Strider and assign it to database name strider
. Make sure to change the password striderpw
in the command below.
use strider
db.createUser({user: "strider", pwd: "striderpw", roles: [{role: "dbOwner", db: "strider"}]})
Quit the Mongo shell by pressing CTRL+C.
Create an administrator user for Strider by running the following command.
DB_URI="mongodb://strider:striderpw@localhost:27017/strider" node bin/strider addUser
Provide the requisite information asked by the script. You will be asked for your email address and a new password.
strider@vultr:~/strider$ DB_URI="mongodb://strider:striderpw@localhost:27017/strider" node bin/strider addUser
Connecting to MongoDB URL: mongodb://strider:striderpw@localhost:27017/strider
Enter email []: vultr@example.com
Enter password []: ****
Is admin? (y/n) [n]y
Email: vultr@example.com
Password: ****
isAdmin: y
OK? (y/n) [y]y
User created successfully! Enjoy.
Install PM2 using NPM.
sudo npm install pm2 -g
Create a PM2 configuration file for your Strider app.
cd ~/strider && nano ecosystem.config.js
Populate the file with the following configuration. Make sure to replace the example IP 203.0.113.1
with the actual IP address of your Vultr instance.
module.exports = {
apps : [{
name : "strider",
script : "npm",
args : "start",
env: {
"NODE_ENV": "production",
"DB_URI": "mongodb://strider:striderpw@localhost:27017/strider",
"SERVER_NAME": "http://203.0.113.1:3000",
"HOST": "0.0.0.0",
"PORT": "3000"
}
}]
}
Start your application.
pm2 start ecosystem.config.js
To make sure that your Strider instance automatically starts after rebooting, run the following command.
pm2 startup
Open your browser and navigate to http://203.0.113.1:3000
where 203.0.113.1
is your actual Vultr IP address. Login using the admin user you've created for Stride.
¿Usando un sistema diferente? Foreman es una herramienta gratuita y de código abierto que lo ayuda con la configuración y administración de servidores físicos y virtuales. Forema
What is Packer? Packer is a server imaging tool developed by HashiCorp. Server imaging; or alternatively, immutable infrastructure; is a popular alternativ
SaltStack es un programa de administración de configuración basado en Python que está optimizado para la automatización de archivos de configuración, implementaciones y cualquier otra cosa
SaltStack, o Salt, es una solución de gestión de configuración de código abierto popular que se puede utilizar para implementar ejecución remota, gestión de configuración, bacalao
Si bien SaltStack es una gran herramienta para ejecutar operaciones en muchos servidores simultáneamente, también admite configuraciones predeterminadas definidas por host almacenadas en un
What is a Load Balancer Load Balancers sit in front of your application and distribute incoming traffic across multiple instances of your application. Fo
Hay muchas formas de automatizar el proceso de configuración y configuración de una caja. Por alguna razón, si todo nuestro sistema en este punto comprende solo
Using a Different System? Ansible is an open source tool for automating tasks. It manages the configuration of your Linux and Windows servers. It work
¿Usando un sistema diferente? Introducción Continuous Integration es una práctica de desarrollo de software DevOps que permite a los desarrolladores fusionar frecuentemente
¿Usando un sistema diferente? GoCD es un sistema de automatización y entrega continua de código abierto. Le permite modelar flujos de trabajo complejos utilizando su paralelo
Using a Different System? Introduction Continuous Integration is a DevOps software development practice which enables the developers to frequently merge th
¿Usando un sistema diferente? Ansible es una herramienta de código abierto para automatizar tareas. Gestiona la configuración de sus servidores Linux y Windows. Funciona
Jenkins es una herramienta popular de CI de código abierto (integración continua) que se usa ampliamente para el desarrollo, implementación y automatización de proyectos. Este artículo será
Introduction Chocolatey brings package management that makes administering software and dependencies easy on Linux, to Windows. You can quickly and easil
¿Usando un sistema diferente? Foreman es una herramienta gratuita y de código abierto que lo ayuda con la configuración y administración de servidores físicos y virtuales. Forema
Introduction Drone is an automated, continuous testing and delivery platform which runs on your own infrastructure. Drone supports any language, service o
ZPanel, un panel de control de alojamiento web popular, se bifurcó en 2014 a un nuevo proyecto llamado Sentora. Aprende a instalar Sentora en tu servidor con este tutorial.
Aprende cómo instalar Vtiger CRM, una aplicación de gestión de relaciones con el cliente, en CentOS 7 para aumentar tus ventas y mejorar el servicio al cliente.
Esta guía completa le mostrará cómo configurar un servidor Counter-Strike 1.6 en Linux, optimizando el rendimiento y la seguridad para el mejor juego. Aprende los pasos más recientes aquí.
Los ataques de ransomware van en aumento, pero ¿puede la IA ayudar a lidiar con el último virus informático? ¿Es la IA la respuesta? Lea aquí, sepa que la IA es una bendición o una perdición
ReactOS, un sistema operativo de código abierto y gratuito, está aquí con la última versión. ¿Puede satisfacer las necesidades de los usuarios de Windows de hoy en día y acabar con Microsoft? Averigüemos más sobre este estilo antiguo, pero una experiencia de sistema operativo más nueva.
Whatsapp finalmente lanzó la aplicación de escritorio para usuarios de Mac y Windows. Ahora puede acceder a Whatsapp desde Windows o Mac fácilmente. Disponible para Windows 8+ y Mac OS 10.9+
Lea esto para saber cómo la Inteligencia Artificial se está volviendo popular entre las empresas de pequeña escala y cómo está aumentando las probabilidades de hacerlas crecer y dar ventaja a sus competidores.
Recientemente, Apple lanzó macOS Catalina 10.15.4, una actualización complementaria para solucionar problemas, pero parece que la actualización está causando más problemas que conducen al bloqueo de las máquinas Mac. Lee este artículo para obtener más información
13 Herramientas comerciales de extracción de datos de Big Data
Nuestra computadora almacena todos los datos de una manera organizada conocida como sistema de archivos de diario. Es un método eficiente que permite a la computadora buscar y mostrar archivos tan pronto como presiona buscar.