2018-02-02 15:28:50 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
###################################################################################
|
|
|
|
# Linux Centos 环境初始化脚本(设置环境配置、安装基本的命令工具)
|
|
|
|
# Author: Zhang Peng
|
|
|
|
###################################################################################
|
|
|
|
|
|
|
|
cat << EOF
|
|
|
|
***********************************************************************************
|
|
|
|
* The initialization of linux environment is begin.
|
|
|
|
***********************************************************************************
|
|
|
|
EOF
|
|
|
|
|
|
|
|
filepath=$(cd "$(dirname "$0")"; pwd)
|
|
|
|
|
2018-09-30 10:04:45 +08:00
|
|
|
# 替换 yum 镜像(使用国内镜像,加速下载)
|
2018-02-23 13:30:59 +08:00
|
|
|
${filepath}/yum/change-yum-repo.sh
|
2018-02-02 15:28:50 +08:00
|
|
|
|
2018-09-30 10:04:45 +08:00
|
|
|
# 设置环境配置,不了解具体修改内容的情况下,请勿执行
|
|
|
|
${filepath}/config-env.sh
|
|
|
|
|
2018-02-02 15:28:50 +08:00
|
|
|
# 安装命令行工具
|
|
|
|
${filepath}/install-cmd-tool.sh
|
|
|
|
|
|
|
|
cat << EOF
|
|
|
|
***********************************************************************************
|
|
|
|
* The initialization of linux environment is over.
|
|
|
|
***********************************************************************************
|
|
|
|
EOF
|