Commit 68ba0a67 by ChongmingDu

Merge branch 'master' of http://code.mayi888.com/operation/QA

parents e50f79f2 b105819f
1. 请到http://code.mayi888.com/operation/Ant_doc.git查找elk所在位置 1. 请到http://code.mayi888.com/operation/Ant_doc.git查找elk所在位置
...@@ -2,4 +2,37 @@ ...@@ -2,4 +2,37 @@
2. ssh到机器上,找到elk.sh或docker-compose.yml这两个文件(一般在/root或/data下) 2. ssh到机器上,找到elk.sh或docker-compose.yml这两个文件(一般在/root或/data下)
3. docker stop $(docker ps -qa) 3. docker stop $(docker ps -qa)
4. docker rm $(docker ps -qa) 4. docker rm $(docker ps -qa)
5. 有elk.sh运行./elk.sh,然后关闭终端页面;如果有docker-compose.yml,运行docker-compose up,然后关闭终端。如果两者都有,随意选一运行。 5. 复制如下脚本到elknew.sh 运行docker-compose up,然后关闭终端。如果两者都有,随意选一运行。
\ No newline at end of file
```
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.1
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
networks:
- esnet
kibana:
image: docker.elastic.co/kibana/kibana:6.6.1
ports:
- 5601:5601
networks:
- esnet
volumes:
esdata1:
driver: local
networks:
esnet:
```
\ No newline at end of file
1. 找到nginx配置文件目录 1. 找到nginx配置文件目录
...@@ -2,16 +2,14 @@ ...@@ -2,16 +2,14 @@
2. 在配置文件目录下生成一个文件,写入如下内容: 2. 在配置文件目录下生成一个文件,写入如下内容:
``` ```
server { stream {
listen 80; server {
server_name 转发到哪个地址; listen 3000;
access_log 日志位置 main; proxy_pass 127.0.0.1:3306;
error_log 错误日志位置 ;
# 也支持socket
location / { # proxy_pass unix:/var/lib/mysql/mysql.socket;
proxy_pass http://代理到那个位置; }
}
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment