THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
On macOS, the Apache HTTP Service should be installed but disabled by default. You can start the webserver with the command:
Code Block | ||||
---|---|---|---|---|
| ||||
$ 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 | ||||
---|---|---|---|---|
| ||||
$ 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 | ||||
---|---|---|---|---|
| ||||
# 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 | ||||
---|---|---|---|---|
| ||||
$ 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 | ||||
---|---|---|---|---|
| ||||
$ sudo apachectl stop # If the command above does not work (and the webserver is still running), try the following variant. $ sudo apachectl -k stop |
...