Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

On macOS, the Apache HTTP Service should be installed but disabled by default. You can start the webserver with the command:

Code Block
languagebash
titleStart the webserver
$ sudo apachectl start

(If Apache HTTP Service is not installed, follow this page to download and install it.)

...

For example, after these steps your local repo should look similar to:

Code Block
languagebash
titleVerify your local fork
$ pwd
/Users/guozhang/git/kafka-site 

$ git remote -v
apache	https://github.com/apache/kafka-site.git (fetch)
apache	https://github.com/apache/kafka-site.git (push)
origin	https://github.com/guozhangwang/kafka-site.git (fetch)
origin	https://github.com/guozhangwang/kafka-site.git (push)

$ git checkout asf-site
 
$ git branch
* asf-site

...

Now you need to edit the HTTPD config file.

Code Block
languagebash
titleEdit the webserver configuration
# The location of the configuration file may vary depending on the OS.
$ sudo vim /etc/apache2/httpd.conf

...

Restart the webserver to make the config changes take effect:

Code Block
languagebash
titleRestart the webserver
$ sudo apachectl restart

# If the command above does not work (and you still see the default "It works!" page), try the following variant.
$ sudo apachectl -k restart

...

If you want to shutdown the web server, run the command:

Code Block
languagebash
titleStop the webserver
$ sudo apachectl stop

# If the command above does not work (and the webserver is still running), try the following variant.
$ sudo apachectl -k stop

...