Install Node.js
$ wget -qO- https://deb.nodesource.com/setup_24.x | sudo bash
$ sudo apt install nodejs
$ sudo npm install -g npm@11.5.2
Install n8n globally.
$ sudo npm install n8n -g
$ chmod 600 .n8n/config
Create service file
$ mkdir -p ~/.config/systemd/user
$ cat ~/.config/systemd/user/n8n.service
[Unit]
Description=n8n service
After=network-online.target
[Service]
ExecStart=/usr/bin/n8n
Restart=on-failure
Environment="DB_SQLITE_POOL_SIZE=15"
Environment="N8N_RUNNERS_ENABLED=true"
Environment="N8N_SECURE_COOKIE=false" # allow access over http
[Install]
WantedBy=default.target
Reload the configuration
systemctl --user daemon-reload
Enable the Service
systemctl --user enable n8n
Start the Service
systemctl --user start n8n
Check status:
systemctl --user status n8n
Editor is now accessible via:
http://IP_Address:5678
Display IP Addresses
$ ip addr
List the process using the port.
$ lsof -i :5678