CentOS7最小化安装后初始化脚本 #!/bin/bash ################################################# # --Info # Initialization CentOS 7.x script ################################################# # Auther: shaonbean@qq.com # Changelog: # 20180710 wanghui initial create ################################################# # Check if user is root # if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to initialization OS." exit 1 fi echo "+------------------------------------------------------------------------+" echo "| To initialization the system for security and performance