Apple's OS X/macOS operating system (OS) comes with the Apache webserver software, which I decided to enable on my MacBook Pro laptop running OS X El Capitan, version 10.11.6 on the laptop.
The Apache web server software isn't running by default and you can no longer
enable it through the Sharing option under System Preferences as
in some earlier versions of OS X, but you can start it from a
command line interface (CLI) by opening a
Terminal window
(Terminal is found in the Applications/Utilities folder),
with the command sudo apachectl start
. Once you start the software,
you will see the system is listening on the
well-known port for
Hypertext Transfer Protocol (HTTP) connections, port 80, by using the
netstat
command.
$ sudo apachectl start Password: $ netstat -a | grep http | grep LISTEN tcp46 0 0 *.http *.* LISTEN $
[ More Info ]