
Haste, also known as Hastebin, is an open-source server like Pastebin. This tutorial explains how to install Hastebin on Ubuntu 20.04 LTS.
SSH to your server as root.
Clone the haste-server repository from GitHub.
Change to the haste-server directory.
Install the required packages with npm.
Hastebin defaults to port 7777. Please change it to HTTP port 80.
Edit config.js.
Change this line from 7777 to 80:
When finished, it should look like this:
Save and exit the file.
PM2 is a process manager for Node.JS applications. PM2 monitors and restarts your application if it goes offline.
Install PM2.
Start your Hastebin server.
Save your PM2 configuration, and ask it to run at startup.
Navigate to your server's IP address in a browser to load an empty page, ready for you to paste code.
0 Comments
Be the first to comment and share your perspective with the community.