Update README.md

This commit is contained in:
2024-06-10 13:16:25 +00:00
parent 238da55f2d
commit 79dc116c44

View File

@@ -6,6 +6,32 @@ chmod +x install_mailhog_as_service.sh
./install_mailhog_as_service.sh ./install_mailhog_as_service.sh
``` ```
## Workaround bij foutmelding in Ubuntu 22.04: "note: module requires Go 1.20"
```
- Download gewenste versie van Go:
wget -c https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
- Ga naar de map waar het bestand staat en pak het uit:
sudo tar -C /usr/local/ -xzf go1.22.0.linux-amd64.tar.gz
- Set PATH Environment Variable
export PATH=$PATH:/usr/local/go/bin
- Voeg onderstaande code toe aan .profile om het definitief te maken:
# set PATH so it includes /usr/local/go/bin if it exists
if [ -d "/usr/local/go/bin" ] ; then
PATH="/usr/local/go/bin:$PATH"
fi
- reload .profile (let op: mét punt!)
. ~/.profile
- Controleer welke versie van Go actief is:
go version
- Installeer nu Mailhog met het installatie script
```
## Na de installatie ## Na de installatie
``` ```
systemctl enable mailhog systemctl enable mailhog