-
Notifications
You must be signed in to change notification settings - Fork 10
NGINX
Micky Hulse edited this page Jan 26, 2015
·
1 revision
$ cd /your/log/location
... tail
the error log:
tail -f foo.error.log
tail foo.error.log
... or tail
the access logs:
tail -f foo.access.log
tail foo.access.log
You sometimes might want to instead use explicit paths:
tail -f /your/log/location/foo.access.log
etc.
They'll stay in your history for next time, and it lets you cd navigate anywhere you wish in that terminal session and simply up-arrow to tail again.
Nginx:
sudo service nginx restart
Varnish:
sudo service varnish restart
If ya got Varnish running, you'll probably want to restart both if you're gonna restart one.