Warning: session_start(): open(/tmp//sess_f22f89e737e1843b15f18c8d623c20ad, O_RDWR) failed: No space left on device (28) in /usr/local/www/apache24/data/inc/init.php on line 247

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/local/www/apache24/data/inc/init.php:247) in /usr/local/www/apache24/data/inc/init.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/apache24/data/inc/init.php:247) in /usr/local/www/apache24/data/inc/auth.php on line 424
Writing /usr/local/www/apache24/data/data/cache/1/10117cd6d0656b66c97a18f1a8dd6e69.metadata failed

Warning: session_write_close(): open(/tmp//sess_f22f89e737e1843b15f18c8d623c20ad, O_RDWR) failed: No space left on device (28) in /usr/local/www/apache24/data/doku.php on line 121

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in /usr/local/www/apache24/data/doku.php on line 121

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/apache24/data/inc/init.php:247) in /usr/local/www/apache24/data/inc/actions.php on line 210

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/apache24/data/inc/init.php:247) in /usr/local/www/apache24/data/lib/tpl/dokuwiki/main.php on line 12
Nginx [Вузлики на пам'ять]

Користувальницькькі налаштування

Налаштування сайту


networks:nginx

Nginx

FreeBSD: Start / Stop / Restart Nginx Web Server

Q. How do I start / stop / restart Nginx webserver under FreeBSD operating systems? How do I test Nginx web server config file syntax before restarting my server?

A. FreeBSD comes with Nginx startup script located at /usr/local/etc/rc.d directory. Update /etc/rc.conf

All you have to do is add following line to your /etc/rc.conf file:

nginx_enable="YES"

Once added use the following command to control nginx web server. You must be root user to control nginx.

Start Nginx Web Server Command

# /usr/local/etc/rc.d/nginx start

Stop Nginx Web Server Command

# /usr/local/etc/rc.d/nginx stop

Restart Nginx Web Server Command

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

Test Nginx config file for errors

The -t option will just test the configuration file. nginx checks configuration for correct syntax and then try to open files referred in configuration.

# nginx -c /usr/local/etc/nginx/nginx.conf -t

Sample output:

2008/10/09 19:24:26 [info] 52494#0: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
2008/10/09 19:24:26 [info] 52494#0: the configuration file /usr/local/etc/nginx/nginx.conf was tested successfully

Once statisfied, restart / start Nginx:

# /usr/local/etc/rc.d/nginx start

The -c /path/to/config/file specifies which configuration file Nginx should use instead of the default.

Shaping

networks/nginx.txt · В останнє змінено: 2014/06/28 17:26 by olexande bilovol