update
This commit is contained in:
		
							
								
								
									
										19
									
								
								nginx/Demo/TwoNodes/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								nginx/Demo/TwoNodes/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
# 部署 nginx 双节点+高可用
 | 
			
		||||
 | 
			
		||||
- 在两台服务器上都执行下面操作
 | 
			
		||||
- 根据实际环境修改
 | 
			
		||||
    - docker-compose.yml
 | 
			
		||||
    - keepalived/conf/keepalived.conf
 | 
			
		||||
    - nginx/http.d/80.conf
 | 
			
		||||
 | 
			
		||||
- 创建目录
 | 
			
		||||
    ```
 | 
			
		||||
    grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
- 上传可能需要的前端文件到 nginx/html/ 下
 | 
			
		||||
- 启动
 | 
			
		||||
    ```
 | 
			
		||||
    docker-compose up -d
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user