常用命令-OneLineCommand

下载JDK、Arthas并启动

  • 命令1: 下载JDK、Arthas并启动
1
2
curl -O https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz && tar -xzf openjdk-11.0.2_linux-x64_bin.tar.gz && curl -O https://arthas.aliyun.com/arthas-boot.jar && $(pwd)/jdk-11.0.2/bin/java -jar arthas-boot.jar

  • 命令2: 下载Arthas并启动
1
curl -O https://arthas.aliyun.com/arthas-boot.jar && $(pwd)/jdk-11.0.2/bin/java -jar arthas-boot.jar

K8S

  • K8S命令行自动提示(Red Hat)
1
2
3
4
yum install -y bash-completion ;
source /usr/share/bash-completion/bash_completion;
source <(kubectl completion bash);
echo "source <(kubectl completion bash)" >> ~/.bashrc;