Pergunta

The following is a guide, step-by-step, to install a YAWS (Yet Another Web Server) on your Mac OSX machine. It has been tested on 10.6.8 SL and worked flawlessly, although the server needs to be restarted if you start spamming F5.

Foi útil?

Solução

Here are the steps for properly installing and testing a YAWS (Yet Another Web Server) on your Mac OSX machine:

Installation:

  1. Go to http://yaws.hyber.org/download/
  2. Get Latest source - e.g. 'yaws-X.XX.tar.gz'.
  3. Unpack it (for this tutorial let's say /Users/Name/Desktop/yaws/ ).
  4. Open Terminal (it can be found in Applications/Utilities).
  5. Type: 'cd /Users/Name/Desktop/yaws/yaws-X.XX/' (without quotes).
  6. Type: './configure' (without quotes) and wait.
  7. Type: 'make' (without quotes) and wait.
  8. Type: 'sudo make install' (without quotes).
  9. Now you need to type your administrator password, the terminal will not display anything you are typing, so don't worry if it seems it is not working properly, and press Enter.
  10. Now YAWS is installing, after it has finish type 'sudo yaws' (without quotes) to run the webserver (it might ask again for the password).

Testing:

  1. Open your browser.
  2. Go to 0.0.0.0.
  3. You should see the yaws homepage: Congratulations! You have installed YAWS.

To start testing your pages just put them in '/tmp' and the just type in your browser 'localhost/pagename.yaws'.

Check this for more information and tutorials: http://yaws.hyber.org/

Outras dicas

You can use brew: http://brew.sh/

brew install yaws
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top