zoukankan      html  css  js  c++  java
  • 写了个shell脚本(刚装完linux可以执行一下)

    #!/bin/bash
    
    ssh-keygen
    cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
    chmod 700 ~/.ssh
    chmod 600 ~/.ssh/authorized_keys
    
    ulimit -n 10000
    yum install -y ntpdate
    ntpdate -u ntp2.aliyun.com
    echo "server ntp2.aliyun.com iburst" >> /etc/ntp.conf
    echo "server ntp3.aliyun.com iburst" >> /etc/ntp.conf
    echo "server ntp4.aliyun.com iburst" >> /etc/ntp.conf
    service ntpdate start
    chkconfig ntpdate on
    
    service iptables stop
    chkconfig iptables off
    service ip6tables stop
    chkconfig ip6tables off
    setenforce 0
    
    sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
    
  • 相关阅读:
    简易计算机
    作业-继承
    exception
    作业-窗口
    作业-数字
    作业8
    作业9-1
    作业9-2
    book
    成绩录入
  • 原文地址:https://www.cnblogs.com/littlepage/p/13182013.html
Copyright © 2011-2022 走看看