````
[ucmed@localhost ~]$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.3.148 elasticsearch skywalking-oap
````
docker run -d --name elasticsearch7 --net=host -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e ES_JAVA_OPTS="-Xms1g -Xmx1g" elasticsearch:7.12.0
docker run --name skywalking-oap --net=host -v /etc/hosts:/etc/hosts --restart always -d -e SW_STORAGE=elasticsearch7 -e SW_STORAGE_ES_CLUSTER_NODES=elasticsearch:9200 apache/skywalking-oap-server:8.3.0-es7
docker run --name skywalking-ui --restart always -d -e SW_OAP_ADDRESS=skywalking-oap:12800 -v /etc/hosts:/etc/hosts -p 8080:8080 apache/skywalking-ui
```
nohup /opt/jdk/jdk1.8.0_111/bin/java -jar -javaagent:/opt/skywalking-apm-6.6.0/apache-skywalking-apm-bin/agent/skywalking-agent.jar -Dskywalking.agent.service_name=alertTest -Dskywalking.collector.backend_service=192.168.1.92:11800 -Dspring.config.location=application.properties lma-alertmanager-api-3.6.0.jar &
参数说明:
-javaagent:/opt/skywalking-apm-6.6.0/apache-skywalking-apm-bin/agent/skywalking-agent.jar
设置agent启动包路径
-Dskywalking.agent.service_name=alertTest
设置agent服务名称
-Dskywalking.collector.backend_service=192.168.1.92:11800
设置agent探针指标搜集路径
```