常德网站开发公司百度seo点击工具
在 Linux 系统上安装 Docker 的步骤如下(以 Ubuntu/Debian 和 CentOS/RHEL 为例):
请用./check-config config检查内核是否支持,necessarily 必须全部enable。
以下是脚本自行复制运行:
#!/usr/bin/env sh
set -eEXITCODE=0# bits of this were adapted from lxc-checkconfig
# see also https://github.com/lxc/lxc/blob/lxc-1.0.2/src/lxc/lxc-checkconfig.inpossibleConfigs="/proc/config.gz/boot/config-$(uname -r)/usr/src/linux-$(uname -r)/.config/usr/src/linux/.config
"if [ $# -gt 0 ]; thenCONFIG="$1"
else: "${CONFIG:=/proc/config.gz}"
fiif ! command -v zgrep > /dev/null 2>&1; thenzgrep() {zcat "$2" | grep "$1"}
fikernelVersion="$(uname -r)"
kernelMajor="${kernelVersion%%.*}"
kernelMinor="${kernelVersion#$kernelMajor.}"
kernelMinor="${kernelMinor%%.*}"is_set() {zgrep "CONFIG_$1=[y|m]" "$CONFIG" > /dev/null
}
is_set_in_kernel() {zgrep "CONFIG_$1=y" "$CONFIG" > /dev/null
}
is_set_as_module() {zgrep "CONFIG_$1=m" "$CONFIG" > /dev/null
}color() {codes=if [ "$1" = 'bold' ]; thencodes='1'shiftfiif [ "$#" -gt 0 ]; thencode=case "$1" in# see https://en.wikipedia.org/wiki/ANSI_escape_code#Colorsblack) code=30 ;;red) code=31 ;;green) code=32 ;;yellow) code=33 ;;blue) code=34 ;;magenta) code=35 ;;cyan) code=36 ;;white) code=37 ;;esacif [ "$code" ]; thencodes="${codes:+$codes;}$code"fifiprintf '\033[%sm' "$codes"
}
wrap_color() {text="$1"shiftcolor "$@"printf '%s' "$text"color resetecho
}wrap_good() {echo "$(wrap_color "$1" white): $(wrap_color "$2" green)"
}
wrap_bad() {echo "$(