7. Remove Avahi.
After you stop the service you can remove it to clear up some space on the device.
$ sudo apt-get purge avahi-daemon
8. Stop nginx.
As a apart of the Avahi service, nginx was also installed and setup, again we don’t need this so lets stop it.
$ sudo systemctl stop nginx
9. Remove nginx.
Since we will be installing Apache2 we don’t need nginx, remove it as well to free up some space.
$ sudo apt-get purge nginx nginx-common
10. Install Apache2.
Now we can begin to install Apache2 with the command below.
$ sudo apt-get install apache2 apache2-utils
11. Test Apache2 Server.
After Apache2 is installed we can check to make sure its running with this command.
$ sudo systemctl status apache2
12. Open Browser.
Now you can open your browser and type in the IP address of your BeagleBone Black into the address bar to see it in action.