docs: Add Linux MailHog install commands (#16366)

This commit is contained in:
Kristofer Koishigawa
2017-12-29 20:37:41 +09:00
committed by mrugesh mohapatra
parent 46010c6923
commit b911a5d724

View File

@ -165,7 +165,7 @@ You should have [ESLint running in your editor](http://eslint.org/docs/user-guid
### Set Up MailHog
To be able to log in, you need to set up MailHog. MailHod is a local SMTP mail server that will catch the emails your freeCodeCamp instance is sending. How you install MailHog is dependent upon your OS.
To be able to log in, you need to set up MailHog. MailHog is a local SMTP mail server that will catch the emails your freeCodeCamp instance is sending. How you install MailHog is dependent upon your OS.
#### macOS
@ -184,6 +184,35 @@ Once it finishes downloading, click on the file. You will probably get a Windows
To close MailHog, close the command prompt. To run it again, click on the same .exe file. You don't need to download a new one.
#### Linux
First install Go.
For Debian-based systems like Ubuntu and Linux Mint, run:
```bash
sudo apt-get install golang
```
For CentOS, Fedora, Red Hat Linux, and other RPM-based systems, run:
```bash
sudo dnf install golang
```
Or:
```bash
sudo yum install golang
```
Then install and run MailHog:
```bash
go get github.com/mailhog/MailHog
MailHog
```
To access your MailHog inbox, open your browser and navigate to [http://localhost:8025](http://localhost:8025). For any other questions related to MailHog or for instructions on custom configurations, check out the [MailHog](https://github.com/mailhog/MailHog) repository.
### Set Up freeCodeCamp