View posts for » July, 2009

Install nginx in Leopard

sudo port install nginx
sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist
sudo mkdir /var/log/nginx
sudo /opt/local/sbin/nginx

To stop it:

sudo launchctl unload /opt/local/etc/LaunchDaemons/org.macports.nginx/org.macports.nginx.plist

Comments (0)

Show hidden files in Finder command

Hide:
defaults write com.apple.finder AppleShowAllFiles true
killall Finder

Show:
defaults write com.apple.finder AppleShowAllFiles false
killall Finder

Comments (0)