मैं nginx संस्करण में इस त्रुटि 1.0.0विन्यास tornadoweb, अज्ञात निर्देश "उपयोगकर्ता"
nginx: [emerg] unknown directive "user" in /etc/nginx/sites-enabled/
tornado:1
यदि मुझे प्रयोक्ता www-डेटा निकालने के कार्यकर्ता प्रक्रियाओं मिला त्रुटि
nginx: [emerg] unknown directive "worker_processes" in /etc/nginx/
sites-enabled/tornado:1
मिल गया है के लिए nginx सेटिंग असफल
मैं गूगल पर खोज कर दिया है, लेकिन अभी भी कुछ नहीं मिला कृपया मदद
इस साइट से उपलब्ध
में मेरे बवंडर है 0user www-data www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
}
http {
# Enumerate all the Tornado servers here
upstream frontends {
server 127.0.0.1:8081;
server 127.0.0.1:8082;
server 127.0.0.1:8083;
server 127.0.0.1:8084;
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
keepalive_timeout 65;
proxy_read_timeout 200;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
gzip on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/html text/css text/xml
application/x-javascript application/xml
application/atom+xml text/javascript;
# Only retry if there was a communication error, not a timeout
# on the Tornado server (to avoid propagating "queries of death"
# to all frontends)
proxy_next_upstream error;
server {
listen 8080;
# Allow file uploads
client_max_body_size 50M;
location ^~ /static/ {
root /var/www;
if ($query_string) {
expires max;
}
}
location = /favicon.ico {
rewrite (.*) /static/favicon.ico;
}
location = /robots.txt {
rewrite (.*) /static/robots.txt;
}
location/{
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect false;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://frontends;
}
}
}
मैं गलती से /etc/nginx/*.conf को /etc/nginx/nginx.conf के अंदर शामिल कर रहा था जिसके कारण एक समावेश लूप हुआ। और जब मैंने आपकी सलाह का पालन किया तो मुझे रिकर्सन मिला। धन्यवाद! – Robert