Install n8n - Open Source Workflow Automation - On Linux
Install n8n - Open Source Workflow Automation - On Linux
▲A A▼
What is n8n?
n8n is an extendable workflow automation tool. With a fair-code distribution model, n8n will always have visible source code, be
available to self-host, and allow you to add your own custom functions, logic and apps. n8n's node-based approach makes it highly
versatile, enabling you to connect anything to everything. -https://github.com/n8n-io/n8n
Installing n8n
1. ✓ Log into the Linux device
2. Run the following commands in a terminal window
# update software repositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# add nodejs software repository
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
# install nodejs
sudo apt install nodejs -y
# install mariadb
sudo apt install mariadb-server mariadb-client -y
# configure the MySQL database
sudo su
mysql_secure_installation
[Service]
User=root
Group=root
Environment=DB_TYPE=mysqldb
Environment=DB_MYSQLDB_DATABASE=n8n
Environment=DB_MYSQLDB_HOST=localhost
Environment=DB_MYSQLDB_USER=n8n_rw
Environment=DB_MYSQLDB_PASSWORD=n8n_N8N!
Environment=GENERIC_TIMEZONE=America/New_York
ExecStart=n8n
WorkingDirectory=/usr/bin
[Install]
WantedBy=multi-user.target
https://i12bretro.github.io/tutorials/0784.html 3/4
22/02/2024 20:01 Install n8n - Open Source Workflow Automation - on Linux
6. Back in the web browser, refresh n8n to verify it is now running a service
7. Log in using the email address and password setup earlier
Source: https://docs.n8n.io/hosting/installation/npm/
https://i12bretro.github.io/tutorials/0784.html 4/4