curl -L https://alibaba.github.io/arthas/install.sh | sh
出现
curl: (35) SSL connect error
或者
curl: (35) Peer reports incompatible or unsupported protocol version.
执行
yum update nss curl
执行./as.sh [pid]出现
./as.sh: 第 423 行:type: telnet: 未找到
执行
yum -y install telnet.x86_64
配置环境变量在新打开的窗口中每次执行还会提示以下信息
[root@localhost arthas]# ./as.sh
Arthas script version: 3.0.4
illegal ENV, please set $JAVA_HOME to JDK6+
必须每次都要
source /etc/profile
(彻底解决)在bashrc中添加环境变量
[root@localhost arthas]# vi /etc/bashrc
[root@localhost arthas]# source /etc/bashrc