Webfs is a fantastic web server that helps users to host static content immediately. The web server when installed is capable of hosting static websites and media. It is a better alternative to heavy-duty web servers that are more CPU hungry.
Here at LinuxAPT, we shall look into how to install Webfs on Ubuntu 22.04 LTS.
To begin, run the system update command below to update the system packages:
$ sudo apt update
Now install Webfs Server with the below command:
$ sudo apt install webfs
To see if Webfs has been installed, run the following command to make sure that it is working:
$ webfsd
There is no GUI of course. Web servers do not have GUIs to control them. Particularly this is a tiny web server that only helps to host static content in no time.
Now we will see how Webfs works on a Linux system. We will look into its related functions and properties. To see properties, you will need to run the following command:
$ webfsd -h
The command will list further options and commands that will help you to run Webfs server.
The standard way to make use of them is the following command:
$ webfsd [option]
For example, if you want to change the port where Webfs is listening to incoming data then you will have to use the following command:
$ webfsd -p 9000
The default port is 8000.
This will change the port from 8000 to 9000.
You can run the below command to remove Webfs from your system repositories:
$ sudo apt remove webfs
To complete the removal process, confirm by typing "Y" and pressing the Enter button.
This article covers how to install webfs on Ubuntu system. In fact, webfs can host static contents without bloating the system resources.