Posts Tagged ‘OS X’

May 20, 2007 0

Start, Stop and Restart Apache on Mac OS X

By Levi Senft in Mac

The apachectl command can be found in /usr/sbin, so to start apache: sudo /usr/sbin/apachectl start   To Stop Apache:  sudo /usr/sbin/apachectl restart To Restart Apache: sudo /usr/sbin/apachectl restart

Tags: , , ,

May 20, 2007 0

Refreshing /etc/hosts on OS X

By Levi Senft in Web

On most UNIX/Linux systems I’ve used changes to /etc/hosts are real time. In OS X you most reload the hosts file. This can be done with a single command rather than rebooting your machine. sudo niload -v -m hosts . < /etc/hosts

Tags: , , , ,