
Install Apache2:
Install from here: http://httpd.apache.org/docs/current/install.html
Copy the dist/ folder in /var/www/ folder.
Create Apache configuration file for angular app:
- vim /etc/apache/sites-available/angular.conf
<VirtualHost *:80>ServerAdmin support@example.comServerName myangularapp.comServerAlias www.myangularapp.comDocumentRoot /var/www/dist<Directory “/var/www/dist”>AllowOverride AllRequire all granted</Directory></VirtualHost>
Enable angular.conf file using the following command:
- a2ensite angular.conf
Restart the apache service:
- sudo systemctl restart apache2
Hit the domain http://myangularapp.com in your browser.

Create a user, group, and directories for Prometheus:
- sudo useradd -M -r -s /bin/false prometheus
- sudo mkdir /etc/prometheus /var/lib/prometheus
Download and extract the pre-compiled binaries:
- wget https://github.com/prometheus/prometheus/releases/download/v2.16.0/prometheus-2.16.0.linux-amd64.tar.gz
- tar xzf prometheus-2.16.0.linux-amd64.tar.gz prometheus-2.16.0.linux-amd64/
Move the files from the downloaded archive to the appropriate locations and set ownership:
- sudo cp prometheus-2.16.0.linux-amd64/{prometheus,promtool} /usr/local/bin/
- sudo chown prometheus:prometheus /usr/local/bin/{prometheus,promtool}
- sudo cp -r prometheus-2.16.0.linux-amd64/{consoles,console_libraries} …