Home >Backend Development >PHP Tutorial >solr master-slave cluster 2

solr master-slave cluster 2

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-28 08:28:381086browse

I want to use nginx 1.4.4 for load balancing. I have never been exposed to it before and many problems occurred. I will record them bit by bit.

1. root /html; and root html; the former refers to the path under the drive letter, and the latter is the path under the nginx root directory, such as E:/html/index.html and E:/nginx-1.4.4/ html/index.html

2. Start nginx has been executed multiple times, and there are many nginx processes in the process. Modifying nginx.conf later will be invalid

3. The two ports of proxy_set_header Host $host:port; and listen port are consistent

4. You can only set ip and port in upstream, but you need to use the project address/aaa when accessing.

There are several methods: 1. Manually add the project address http://server_name/aaa

2. Change aaa to ROOT

3. Use proxy_pass http://backend/aaa/; but there will be problems accessing other addresses in the project

4. proxy_pass http://backend; rewrite ^/$ /aaa last; this will Automatically add /aaa to the address

If you have a better way, please leave a message.

The above introduces the Solr master-slave cluster 2, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn