1、 Elasticsearch8.2部署
请看我博客里面有详细部署
2、skywalking 9.1部署
1、官网下载:https://skywalking.apache.org/downloads/
2、解压:
tar xf apache-skywalking-apm-9.1.0.tar.gz -C /usr/local
3、查看http.p12密码
/home/es/elasticsearch/bin/elasticsearch-keystore show xpack.security.http.ssl.keystore.secure_password
DFcPENLRTz256ZVN79cRiQ
4、p12证书生成jks 这一步很重要
/home/es/elasticsearch/jdk/bin/keytool -importkeystore -srckeystore /mnt/http.p12 -srcstoretype PKCS12 -destkeystore /mnt/1.jks -deststoretype JKS
Importing keystore /mnt/http.p12 to /mnt/1.jks...
Enter destination keystore password:
Re-enter new password:
Enter source keystore password:
Entry for alias http_ca successfully imported.
Entry for alias http successfully imported.
Import command completed: 2 entries successfully imported, 0 entries failed or cancelled
5、配置skywalking
vim /usr/local/apache-skywalking-apm-bin/config/application.yml
storage:
selector: ${SW_STORAGE:elasticsearch}
elasticsearch:
namespace: ${SW_NAMESPACE:"skywalking-index"}
clusterNodes: ${SW_STORAGE_ES_CLUSTER_NODES:10.0.0.184:9200,10.0.0.106:9200,10.0.0.30:9200}
protocol: ${SW_STORAGE_ES_HTTP_PROTOCOL:"https"}
connectTimeout: ${SW_STORAGE_ES_CONNECT_TIMEOUT:3000}
socketTimeout: ${SW_STORAGE_ES_SOCKET_TIMEOUT:30000}
responseTimeout: ${SW_STORAGE_ES_RESPONSE_TIMEOUT:15000}
numHttpClientThread: ${SW_STORAGE_ES_NUM_HTTP_CLIENT_THREAD:0}
user: ${SW_ES_USER:"elastic"}
password: ${SW_ES_PASSWORD:"*ZLIOL9a6Sd+Kyer5P0o"}
trustStorePath: ${SW_STORAGE_ES_SSL_JKS_PATH:"/home/es/elasticsearch/config/certs/1.jks"}
trustStorePass: ${SW_STORAGE_ES_SSL_JKS_PASS:"p834vTZPROy539POT788UugA"}#这里填转换的秘钥
secretsManagementFile: ${SW_ES_SECRETS_MANAGEMENT_FILE:""} # Secrets management file in the properties format includes the username, password, which are managed by 3rd party tool.
6、运行skywalking
./startup.sh
7、检查es数据
8、访问web端