1. Scene
Two servers are deployed with XXL job respectively to build a high availability cluster
Provide easy request URL
2. Nginx configuration
upstream xxl-jobs {
server 192.168.30.01:9500 max_fails=3 fail_timeout=30s;
server 192.168.30.02:9500 max_fails=3 fail_timeout=30s;
}
server {
listen 8888;
server_name localhost;
location/{
proxy_pass http://xxl-jobs;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
Read More:
- Nginx front end and back end separation + service cluster reverse proxy
- Nginx reverse proxy MySQL
- Nginx reverse proxy report 400 error solution!
- Nginx start error: job for nginx.service failed because the control process exited with error code
- nginx: [emerg] unknown directive “proxy_pass“
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- Nginx proxy appears Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- When setting up etcd cluster, an error is reported. Etcd: request cluster ID mismatch error resolution is only applicable to new etcd cluster or no data cluster
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- Proxy error:could not proxy request
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- Google set proxy, ERR_PROXY_CONNECTION_FAILED
- Nginx error: nginx: [error] invalid PID number “” in “/run/nginx.pid”
- nginx: [error] invalid PID number ““ in “/data/nginx/logs/nginx.pid“
- Exception in thread “main“ java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to XXX
- When configuring the proxy with Vue, the front-end requests the server-side error 504; the Vue console reports the error occurred while trying to proxy request
- /var/run/nginx/nginx.pid” failed (2: No such file or directory)
- Solve the problem that the local flow of the nifi node is inconsistent with the cluster flow, resulting in the failure to join the cluster
- nginx: [error] invalid PID number in /var/run/nginx.pid
- nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)