OpenShift Container Platform 4.8 CLI 工具1. 启用 tab 自动完成功能 您可以为 Bash 或 Zsh shell 启用 tab 自动完成功能。 2.2.1.1. 为 为 Bash 启 启用 用 tab 自 自动 动完成 完成 安装 OpenShift CLI (oc)后,您可以启用 tab 自动完成功能,以便在按 Tab 键时自动完成 oc 命令或建议 选项。以下流程为 Bash shell 启用 tab 自动完成功能。 先决条件 先决条件 先决条件 已安装 OpenShift CLI (oc)。 已安装软件包 bash-completion。 流程 流程 1. 将 Bash 完成代码保存到一个文件中: 2. 将文件复制到 /etc/bash_completion.d/: 您也可以将文件保存到一个本地目录,并从您的.bashrc文件中 source 这个文件。 开新终端时 tab 自动完成功能将被启用。 2.2 Logged "user1" out on "https://openshift.example.com" $ oc completion bash > oc_bash_completion $ sudo cp oc_bash_completion /etc/bash_completion.d/ OpenShift Container Platform 4.8 CLI 工具 工具 14 安装 OpenShift0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具1. 启用 tab 自动完成功能 您可以为 Bash 或 Zsh shell 启用 tab 自动完成功能。 2.2.1.1. 为 为 Bash 启 启用 用 tab 自 自动 动完成 完成 安装 OpenShift CLI (oc)后,您可以启用 tab 自动完成功能,以便在按 Tab 键时自动完成 oc 命令或建议 选项。以下流程为 Bash shell 启用 tab 自动完成功能。 先决条件 先决条件 先决条件 已安装 OpenShift CLI (oc)。 已安装软件包 bash-completion。 流程 流程 1. 将 Bash 完成代码保存到一个文件中: 2. 将文件复制到 /etc/bash_completion.d/: 您也可以将文件保存到一个本地目录,并从您的.bashrc文件中 source 这个文件。 开新终端时 tab 自动完成功能将被启用。 2.2 Logged "user1" out on "https://openshift.example.com" $ oc completion bash > oc_bash_completion $ sudo cp oc_bash_completion /etc/bash_completion.d/ OpenShift Container Platform 4.10 CLI 工具 工具 14 安装 OpenShift0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.13 CLI 工具1. 启用 tab 自动完成功能 您可以为 Bash 或 Zsh shell 启用 tab 自动完成功能。 2.2.1.1. 为 为 Bash 启 启用 用 tab 自 自动 动完成 完成 安装 OpenShift CLI (oc)后,您可以启用 tab 自动完成功能,以便在按 Tab 键时自动完成 oc 命令或建议 选项。以下流程为 Bash shell 启用 tab 自动完成功能。 先决条件 先决条件 先决条件 已安装 OpenShift CLI (oc)。 已安装软件包 bash-completion。 流程 流程 1. 将 Bash 完成代码保存到一个文件中: 2. 将文件复制到 /etc/bash_completion.d/: 您也可以将文件保存到一个本地目录,并从您的.bashrc文件中 source 这个文件。 开新终端时 tab 自动完成功能将被启用。 2.2 文件中为 oc 添加 tab 自动完成功能,请运行以下命令: 开新终端时 tab 自动完成功能将被启用。 $ oc completion bash > oc_bash_completion $ sudo cp oc_bash_completion /etc/bash_completion.d/ $ cat >>~/.zshrc<0 码力 | 128 页 | 1.11 MB | 1 年前3
Docker 从入门到实践 0.4ln -sf /usr/bin/docker.io /usr/local/bin/docker $ sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io 如果使用操作系统自带包安装 Docker,目前安装的版本是比较旧的 0.9.1。 要安装更新的版本,可以通过 使用 Docker 源的方式。 要安装最新的 --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 $ sudo bash -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" $ sudo complete d047ae21eeaf: Download complete 完成后,即可随时使用该镜像了,例如创建一个容器,让其中运行 bash 应用。 $ sudo docker run -t -i ubuntu:12.04 /bin/bash root@fe7fc4bd8fc9:/# 获取镜像 Docker —— 从入门到实践 19 获取镜像 使用 docker images0 码力 | 179 页 | 2.27 MB | 1 年前3
Docker 从入门到实践 0.9.0(2017-12-31)To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://cloud.docker.com/ For To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://cloud.docker.com/ For To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://cloud.docker.com/ For0 码力 | 370 页 | 6.73 MB | 1 年前3
CIS Benchmark Rancher Self-Assessment Guide - v2.4data directory found above). For example, chmod 700 /var/lib/etcd Audit Script: 1.1.11.sh #!/bin/bash -e etcd_bin=${1} test_dir=$(ps -ef | grep ${etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[= directory found above). For example, chown etcd:etcd /var/lib/etcd Audit Script: 1.1.12.sh #!/bin/bash -e etcd_bin=${1} test_dir=$(ps -ef | grep ${etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[= example, chmod -R 644 /etc/kubernetes/ssl Audit Script: check_files_permissions.sh #!/usr/bin/env bash # This script is used to ensure the file permissions are set CIS Benchmark Rancher Self-Assessment0 码力 | 54 页 | 447.77 KB | 1 年前3
CIS 1.5 Benchmark - Self-Assessment Guide - Rancher v2.5data directory found above). For example, chmod 700 /var/lib/etcd Audit Script: 1.1.11.sh #!/bin/bash -e etcd_bin=${1} test_dir=$(ps -ef | grep ${etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[= directory found above). For example, chown etcd:etcd /var/lib/etcd Audit Script: 1.1.12.sh #!/bin/bash -e etcd_bin=${1} test_dir=$(ps -ef | grep ${etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[= example, chmod -R 644 /etc/kubernetes/ssl Audit Script: check_files_permissions.sh #!/usr/bin/env bash # This script is used to ensure the file permissions are set CIS 1.5 Benchmark - Self-Assessment0 码力 | 54 页 | 447.97 KB | 1 年前3
通过Oracle 并行处理集成 Hadoop 数据着处理角色。 在第 2 步中,该表函数调用 (QC) 使用 dbms_scheduler(图 3 中的作业控制器)启动一个异步 作业,该作业接着在 Hadoop 集群上运行同步 bash 脚本。这个 bash 脚本就是图 3 中的启动程 序 (launcher),它在 Hadoop 集群上启动 mapper 进程(第 3 步)。 5 Oracle 白皮书 — 通过 Oracle 并行处理集成 图 4. 监控进程 Hadoop的进程 (mapper) 启动之后,作业监控器进程将监视启动程序脚本。一旦mapper 完成 Hadoop 集群中数据的处理之后,bash 脚本即完成,如图 4 所示。 作业监控器将监视数据库调度程序队列,并在 shell 脚本完成时发出通知(第 7 步)。作业监 控器检查数据队列中的剩余数据元素(第 8 步)。只要队列中存在数据,表函数调用就会继 / as sysdba -- system job to launch external script -- this job is used to eventually run the bash script -- described in Figure 3 step 3 CREATE OR REPLACE PROCEDURE launch_hadoop_job_async(in_directory0 码力 | 21 页 | 1.03 MB | 1 年前3
OpenShift Container Platform 4.14 镜像的 test/test-app 目录。 脚本 脚本 描述 描述 S2I 脚本示例 脚本示例 以下示例 S2I 脚本采用 Bash 编写。每个示例都假定其 tar 内容解包到 /tmp/s2i 目录中。 assemble 脚本: 脚本: #!/bin/bash # restore build artifacts if [ "$(ls /tmp/s2i/artifacts/ 2>/dev/null)" Platform S2I 镜像构建程序调用,可以 是简单的 Bash 脚本,也可以是静态的 Go 二进制文件。 test/run 脚本会执行 S2I 构建,因此您的 $PATH 中必须有 S2I 二进制文件。必要情况下,请遵循 S2I # install the artifacts make install popd #!/bin/bash # run the application /opt/application/run /opt/application/run.sh #!/bin/bash pushd ${HOME} if [ -d deps ]; then # all deps contents to tar stream tar cf - deps fi popd #!/bin/bash # inform the user how to use the image cat <0 码力 | 118 页 | 1.13 MB | 1 年前3
CIS 1.6 Benchmark - Self-Assessment Guide - Rancher v2.5.4/node/etc/kubernetes/ssl Expected Result: 'true' is equal to 'true' Audit Script: #!/usr/bin/env bash # This script is used to ensure the owner is set to root:root for # the given directory and all /node/etc/kubernetes/ssl/!(*key).pe m Expected Result: 'true' is equal to 'true' Audit Script: #!/usr/bin/env bash # This script is used to ensure the file permissions are set to 644 or # more restrictive for /node/etc/kubernetes/ssl/*key.pem 600 Expected Result: 'true' is equal to 'true' Audit Script: #!/usr/bin/env bash # This script is used to ensure the file permissions are set to 644 or # more restrictive for0 码力 | 132 页 | 1.12 MB | 1 年前3共 121 条- 1
- 2
- 3
- 4
- 5
- 6
- 13













