How to restart web ui on freenas

Solution 1:

Current versions of FreeNAS use nginx and the Django framework. They can be restarted as follows:

service nginx restart
service django restart

or

/usr/local/etc/rc.d/nginx  restart
/usr/local/etc/rc.d/django restart

Solution 2:

For TrueNAS 12:

service middlewared restart
service nginx restart

Solution 3:

To restart lighthttpd, use:

/etc/rc.d/lighttpd restart