在基于 RPM 的 Linux(CentOS、Fedora、OpenSuse、Red Hat)上安装
参考:
1、安装包模式
从下面提供的链接从Apache SkyWalking镜像下载。
只有源码包属于Apache官方发布包,其他Linux和Windows平台二进制发布包只是为了方便用户使用。
1.1、下载安装包
下载最新安装包:https://skywalking.apache.org/downloads/
Linux 具体下载地址:
https://www.apache.org/dyn/closer.cgi/skywalking/9.3.0/apache-skywalking-apm-9.3.0.tar.gz
1.2、解压并安装
$ cd /usr/local/src && tar -xzvf apache-skywalking-apm-9.3.0.tar.gz -C /usr/local
$ cd .. && mv /usr/local/apache-skywalking-apm-bin/ apache-skywalking
$ echo 'export SKYWALLKING_HOME=/usr/local/apache-skywalking/' >>/etc/profile
$ echo 'export PATH="$PATH:$SKYWALLKING_HOME/bin"' >>/etc/profile
$ source /etc/profile
使用默认配置端口,默认存储方式 h2, 直接启动服务:
cd /usr/local/apache-skywalking
./bin/startup.sh
现在服务端就启起来了,可以打开后台地址查看(默认是8080端口): http://localhost:8080 界面如下:
2、开机自启动
[root@local ~]# vi /lib/systemd/system/skywalking-oap.service
脚本内容:
[Unit]
Description=Application performance monitor tool for distributed systems, especially designed for microservices, cloud native and container-based (Kubernetes) architectures.
Documentation=https://skywalking.apache.org/
After=network.target
[Service]
User=root
ExecStart=/usr/local/apache-skywalking/bin/oapService.sh
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
LimitNOFILE=65536
TimeoutStopSec=20
Restart=on-failure
StartLimitInterval=60
StartLimitBurst=3000
[Install]
WantedBy=multi-user.target
设置随机启动:
[root@local ~]# systemctl daemon-reload
[root@local ~]# systemctl disable skywalking-oap.service
[root@local ~]# systemctl enable skywalking-oap.service
[root@local ~]# systemctl start skywalking-oap.service
[root@local ~]# systemctl status skywalking-oap.service
[root@local ~]# systemctl stop skywalking-oap.service
[root@local ~]# systemctl restart skywalking-oap.service
[root@local ~]# vi /lib/systemd/system/skywalking-ui.service
脚本内容:
[Unit]
Description=Application performance monitor tool for distributed systems, especially designed for microservices, cloud native and container-based (Kubernetes) architectures.
Documentation=https://skywalking.apache.org/
After=network.target remote-fs.target nss-lookup.target skywalking-oap.service
[Service]
User=root
ExecStart=/usr/local/apache-skywalking/bin/webappService.sh
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
LimitNOFILE=65536
TimeoutStopSec=20
Restart=on-failure
StartLimitInterval=60
StartLimitBurst=3000
[Install]
WantedBy=multi-user.target
设置随机启动:
[root@local ~]# systemctl daemon-reload
[root@local ~]# systemctl disable skywalking.service
[root@local ~]# systemctl enable skywalking.service
[root@local ~]# systemctl start skywalking.service
[root@local ~]# systemctl status skywalking.service
[root@local ~]# systemctl stop skywalking.service
[root@local ~]# systemctl restart skywalking.service
浏览器访问 Grafana:
http://[IP]:3000/
默认密码:admin/admin
https://blog.csdn.net/AliEnCheng/article/details/126529335
作者:Jeebiz 创建时间:2023-01-04 13:59
最后编辑:Jeebiz 更新时间:2023-04-12 12:19
最后编辑:Jeebiz 更新时间:2023-04-12 12:19