#!/bin/bash ######the system first start configuretion #####for install ####copy right by donglei############## #1.配置sysctl mv /etc/sysctl.conf /etc/sysctl.bak echo "############################the new config for sysctl ########### net.ipv4.ip_forw
#!/bin/bash #检测是否为root用户 ];then echo "Must be root can do this." exit fi #检测网络 echo "检测网络中......" /bin/ping www.baidu.com -c &>/dev/null ];then echo "现在网络无法通信,准备设置网络" read -p 'pls enter your ip: ' IP read -p 'pls enter
#!/bin/bash #zhangsen #lovexlzs@qq.com if [[ "$(whoami)" != "root" ]]; then exit fi echo -e "\033[31m 这个是centos7系统初始化脚本,请慎重运行!Please continue to enter or ctrl+C to cancel \033[0m" #configure yum source yum_config(){ yum insta