On Thu, 9 Jan 2025, Rich Shepard wrote:
On Thu, 9 Jan 2025, Russell Senior wrote:
Try:
netstat -tan | grep LISTEN
$ netstat -tan | grep LISTEN
tcp 0 0 127.0.0.1:8118 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2812 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:14982 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN
tcp6 0 0 :::631 :::* LISTEN
tcp6 0 0 :::14982 :::* LISTEN
tcp6 0 0 ::1:783 :::* LISTEN
If you see the ports you expect, then start to consider whether
localhost is resolving. The usual place for that to happen is in
/etc/hosts. On my system, I see something like this in /etc/hosts:
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost.localdomain localhost
How do I add 127.0.0.1:1313? That's where Hugo lets me see my local website.
hugo only answers on port 1313 when it's running in local-server mode:
cd /path/to/web/topdir
hugo server -D
At that point, you should see a message like this:
Web Server is available at https://u35970666.ct.sendgrid.net/ls/click?upn=u001.o9-2BETvBXaG-2FBrnqJJIj6KYIWKghR49rNJsEXoRCz658-3DuXBp_iXqIkgBxBxb26PG-2Fm1NQLP1zi48-2FfNafwEuvhX2aMn5WlNhJOLlKsO9NFndMWm80Owt2RQyNvUtzGkVZ0xEVBG5KSKPzMiqEd4mgfXr1Derl6eDMzB1ttI-2FIqez-2FBL53Zpu8ZQF8qCzv2NkIM8JS4zl1JolHLK1Lp9vM6SU8Fxb-2Bu-2FBZpBPEpDZdp1-2FlO9Sg9XHqYBcTMHlehTe0HAp8Rg-3D-3D (bind address
127.0.0.1)
Press Ctrl+C to stop
That web service will only run until you exit (usually via Ctrl+c)
hugo.
--
Paul Heinlein
[email protected]
45°22'48" N, 122°35'36" W