Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7410308
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: 系统运维

2019-04-19 18:01:12



#安装jdk
#es安装
cd /opt
#7.0好像不行,要用6.x
#wget
wget
cat /opt/elasticsearch-6.5.0/config/elasticsearch.yml |grep -Ev '^#|^$'
cluster.name: skywalking
node.name: node-1
network.host: 127.0.0.1
http.port: 9200

#运行
bin/elasticsearch -d

cd /opt
wget http://mirrors.tuna.tsinghua.edu.cn/apache/incubator/skywalking/6.0.0-GA/apache-skywalking-apm-incubating-6.0.0-GA.tar.gz
tar xf apache-skywalking-apm-incubating-6.0.0-GA.tar.gz
cd apache-skywalking-apm-incubating/config

vi application.yml
修改core下
restHost: 127.0.0.1 #推荐本地IP
restPort: 12800 #${SW_CORE_REST_PORT:12800}
restContextPath: / #${SW_CORE_REST_CONTEXT_PATH:/}
gRPCHost:  127.0.0.1 #${SW_CORE_GRPC_HOST:0.0.0.0} 推荐本地IP
gRPCPort: 11800 #${SW_CORE_GRPC_PORT:11800}

//可以不用修改
core:
  default:
    restHost: ${SW_CORE_REST_HOST:0.0.0.0}
    restPort: ${SW_CORE_REST_PORT:12800}
    restContextPath: ${SW_CORE_REST_CONTEXT_PATH:/}
    gRPCHost: ${SW_CORE_GRPC_HOST:0.0.0.0}
    gRPCPort: ${SW_CORE_GRPC_PORT:11800}

去掉h2的,改成es为数据存储
namespace: es中的clustername
clusterNodes: esIP:9200

storage:
#  h2:
#    driver: ${SW_STORAGE_H2_DRIVER:org.h2.jdbcx.JdbcDataSource}
#    url: ${SW_STORAGE_H2_URL:jdbc:h2:mem:skywalking-oap-db}
#    user: ${SW_STORAGE_H2_USER:sa}
  elasticsearch:
    nameSpace: ${SW_NAMESPACE:"skywalking"}
    clusterNodes: ${SW_STORAGE_ES_CLUSTER_NODES:localhost:9200}
    indexShardsNumber: ${SW_STORAGE_ES_INDEX_SHARDS_NUMBER:2}
    indexReplicasNumber: ${SW_STORAGE_ES_INDEX_REPLICAS_NUMBER:0}
    # Batch process setting, refer to
    bulkActions: ${SW_STORAGE_ES_BULK_ACTIONS:2000} # Execute the bulk every 2000 requests
    bulkSize: ${SW_STORAGE_ES_BULK_SIZE:20} # flush the bulk every 20mb
    flushInterval: ${SW_STORAGE_ES_FLUSH_INTERVAL:10} # flush the bulk every 10 seconds whatever the number of requests
    concurrentRequests: ${SW_STORAGE_ES_CONCURRENT_REQUESTS:2} # the number of concurrent requests
#  mysql:

cd webapp/
vi webapp.yml
ReadTimeout: 60000 #默认是10000,修改为60000,解决启动超时
listOfServers: 127.0.0.1:12800  # 推荐使用本地IP

collector:
  path: /graphql
  ribbon:
    ReadTimeout: 60000
    # Point to all backend's restHost:restPort, split by ,
    listOfServers: 127.0.0.1:12800

#运行
bin/startup.sh

web:

admin
admin
阅读(1483) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~