#安装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
阅读(1583) | 评论(0) | 转发(0) |