Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
QA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayi-operation
QA
Commits
68ba0a67
Commit
68ba0a67
authored
Mar 12, 2019
by
ChongmingDu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://code.mayi888.com/operation/QA
parents
e50f79f2
b105819f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
12 deletions
+43
-12
elk出现问题.md
+36
-3
服务端口转发.md
+7
-9
No files found.
elk出现问题.md
View file @
68ba0a67
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.
ssh到机器上,找到elk.sh或docker-compose.yml这两个文件(一般在/root或/data下)
3.
docker stop $(docker ps -qa)
4.
docker rm $(docker ps -qa)
5.
有elk.sh运行./elk.sh,然后关闭终端页面;如果有docker-compose.yml,运行docker-compose up,然后关闭终端。如果两者都有,随意选一运行。
\ No newline at end of file
5.
复制如下脚本到elknew.sh 运行docker-compose up,然后关闭终端。如果两者都有,随意选一运行。
```
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
服务端口转发.md
View file @
68ba0a67
1.
找到
nginx配置文件目录
1.
找到
nginx配置文件目录
...
...
@@ -2,15 +2,13 @@
2.
在配置文件目录下生成一个文件,写入如下内容:
```
server {
listen 80;
server_name 转发到哪个地址;
access_log 日志位置 main;
error_log 错误日志位置 ;
stream {
server {
listen 3000;
proxy_pass 127.0.0.1:3306;
location / {
proxy_pass http://代理到那个位置;
# 也支持socket
# proxy_pass unix:/var/lib/mysql/mysql.socket;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment