Changego 运维坑十年,以下问题个人整理,不定期更新。
1. Nginx 1.6版本 4c 下列配置正确的是 ( )
A.
worker_processes auto;
worker_cpu_affinity auto;
B.
worker_processes auto;
worker_cpu_affinity 0001 0010 0100 1000;
C.
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
D.
worker_processes 4;
worker_cpu_affinity auto;
2.Nginx 1.9.10版本 4c 下列配置正确的是 ( )
A.
worker_processes auto;
worker_cpu_affinity auto;
B.
worker_processes auto;
worker_cpu_affinity 0001 0010 0100 1000;
C.
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
D.
worker_processes 4;
worker_cpu_affinity auto;
3.以下四种情况分别用http://127.0.0.1/proxy/test.html 进行访问。说法正确的是:()
A.
location /proxy/ {
proxy_pass http://127.0.0.1:8080/;
}
会被代理到http://127.0.0.1:8080/test.html 这个url
B.
location /proxy/ {
proxy_pass http://127.0.0.1:8080;
}
会被代理到http://127.0.0.1:8080/proxy/test.html 这个url
C.
location /proxy/ {
proxy_pass http://127.0.0.1:8080/changego/;
}
会被代理到http://127.0.0.1:8080/changego/test.html 这个url。
D.
location /proxy/ {
proxy_pass http://127.0.0.1:8080/changego;
}
会被代理到http://127.0.0.1:8080/changegotest.html 这个url