欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

Centos6anfCentos7system_init

#!/bin/bash
# 此腳本主要針對系統(tǒng)剛完成安裝,對系統(tǒng)完成參數(shù)調(diào)優(yōu)

##### check id root #####
if [ $(id -u) != "0" ]; then
    echo "You must be root to run this script ..."
    exit 1
fi

##### set function #####
CentOS6 ()
{
    yum install -y wget
    /usr/bin/wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
    /usr/bin/wget -qO /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
    yum install -y tree screen make cmake vim ntpdate telnet nc lrzsz gcc gcc-c++
    /etc/init.d/iptables stop && chkconfig iptables off
}

CentOS7 ()
{
    yum install -y wget
    /usr/bin/wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo  
    /usr/bin/wget -qO /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
    yum install -y tree screen make cmake vim ntpdate telnet nc lrzsz gcc gcc-c++
    systemctl stop firewalld.service && systemctl disable firewalld.service    
}

##### get system Edition #####
Edition=`grep -o '[[:digit:]]' /etc/redhat-release |head -1`
if [ $Edition == '6' ];then
    echo -e "\n\033[34mStart CentOS6 installation……\033[0m\n"
    CentOS6
elif [ $Edition == '7' ]; then
    echo -e "\n\033[34mStart CentOS7 installation……\033[0m\n"
    CentOS7    
else
    echo "This system is not CentOS 6, script execution failed ..."
    exit 2    
fi

####################華麗的分割線 6 與7 命令不同的寫在上面函數(shù)中  命令相同的寫在下面####################################

##### disable selinux && iptables #####
sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config
setenforce 0

##### set vim #####
sed -i "7a alias vi='vim'" /root/.bashrc
sed -i "8a alias grep='grep --color'" /root/.bashrc

##### set ssh #####
ssh_cf="/etc/ssh/sshd_config"
sed -i 's/#GSSAPIAuthentication no/GSSAPIAuthentication no/g' $ssh_cf
sed -i 's/GSSAPIAuthentication yes/#GSSAPIAuthentication yes/g' $ssh_cf
sed -i "s/#UseDNS yes/UseDNS no/" $ssh_cf

##### set ntpdate #####
echo '*/4 * * * * /usr/sbin/ntpdate time.windows.com >/dev/null 2>&1' >> /var/spool/cron/root
\cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# \cp /usr/share/zoneinfo/America/New_York /etc/localtime  紐約(西5區(qū))
# \cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime     中國(東8區(qū))
# \cp /usr/share/zoneinfo/Asia/Bangkok /etc/localtime      泰國(東7區(qū))
# \cp /usr/share/zoneinfo/Asia/Korea /etc/localtime        韓國(東9區(qū))
# \cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime        日本(東9區(qū))

##### set limits #####
echo -e "* soft nofile 65535\n* hard nofile 65535" >>/etc/security/limits.conf

##### set kernel #####
>/etc/sysctl.conf
cat >>/etc/sysctl.conf <<EOF
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.ip_local_port_range = 1024 65535

net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.eth0.rp_filter = 0
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.default.arp_announce = 2
net.ipv4.conf.eth0.arp_announce = 2
#Add

net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_tw_reuse = 0
net.core.wmem_max = 327679
net.core.rmem_max = 327679
net.core.wmem_default = 327679
net.core.rmem_default = 327679
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_syn_retries = 3
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_max_syn_backlog = 65536
net.core.netdev_max_backlog = 65536
net.core.somaxconn = 65536
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
EOF
/sbin/sysctl -p

echo -e "\n\033[32mSystem initialization completed, you must restart the system\033[0m\n"

成都創(chuàng)新互聯(lián)是一家專業(yè)提供襄汾企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站設(shè)計制作、成都網(wǎng)站設(shè)計、H5技術(shù)、小程序制作等業(yè)務(wù)。10年已為襄汾眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站設(shè)計公司優(yōu)惠進(jìn)行中。

本文名稱:Centos6anfCentos7system_init
標(biāo)題鏈接:http://aaarwkj.com/article10/pcccdo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設(shè)、外貿(mào)建站服務(wù)器托管、外貿(mào)網(wǎng)站建設(shè)定制開發(fā)、自適應(yīng)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護(hù)公司
中文字幕免费不卡一区| 日韩精品在线观看不卡| 国内午夜福利精品视频| 黑人精品一区二区三区| 国产成人精品一区二区国产乱码| 国产精品日本欧美一区二区| 日本一二不卡高清在线视频| 亚洲中文字幕一区乱码| 亚洲ve中文字幕久久一区二区 | 国产精品大片一区二区三区四区| 91中文在线视频播放| 日韩版色视频在线观看| 一区二区三区特黄色片| 欧美精品一区二区三区黄片| 午夜激情毛片在线观看| 一区二区三区在线观看淫| 成人av久久一区二区三区| 大胸妇女引诱老师在线观看| 色综合色综合蘑菇在线| 综合激情网激情五月天| 欧美国产日韩一区二区三区视频| 蜜桃久久国产精品一区二区| 欧美日韩专区一区二区三区| 欧美中文字幕精在线不卡| 日日夜夜久久一二三区| 日韩不卡在线免费播放| 国产美女精品一区二区三区| 亚洲女人下体毛茸茸视频| 女同一区二区三区在线| 日韩女同一区二区三区在线观看 | 女同亚洲一区二区三区| 国产免费一级av剧情| 男人天堂av东京热伊人| av在线免费观看不卡| 欧美日韩一区二区不卡视频| 欧美在线观看日韩精品| 蜜臀av免费在线观看| 国产剧情av一区在线观看| 国产精品黄色片在线观看 | 午夜视频在线观看91| 午夜精品久久久免费视频|