Hi Community!
I am new to DHIS 2, but Iam eager to know a a lot of things about dhis2 lxc
containers.
I have installed DHIS2 on my laptop following these steps through dhis2-server-tools
Step 1 — Grab the deployment tools from github
- Access the server and clone the deployment tools in your prefered directory by invoking below command
git clone https://github.com/dhis2/dhis2-server-tools
Step 2 — Create hosts file
- Create the
hosts
file using the already existing template,hosts.template
.
Use the command below if you are in the directory you cloned the tools in.
cp dhis2-server-tools/deploy/inventory/{hosts.template,hosts}
Step 3 — Set fqdn, email, and timezone
- Edit
dhis2-server-tools/deploy/inventory/hosts
file and setfqdn
, andemail
if you have any (you can leave them empty if you do not have). - Set your preferred
timezone
, you can leave other settings to their set defaults.
vim dhis2-server-tools/deploy/inventory/hosts
Below is an example screenshot NOTE: When the installation is on a single host with LXD, ensure your lxd_network is unique and not overlapping with any of your host network.
Step 4 — The Install
- Run
deploy.sh
script from withindhis2-server-tools/deploy/
directory.
cd dhis2-server-tools/deploy/
sudo ./deploy.sh
But I am facing these problems:
I cannot access DHIS 2 via Browser using on my laptop: http://172.19.2.11:8080/dhis
Apart form point 1, How can access the database psql cli to rum some queries?
I would be grateful if any help was provided. I think Iam doing things incorrectly
Thanks