首页 > 系统服务 > 详细

写了个shell脚本(刚装完linux可以执行一下)

时间:2020-06-23 15:23:35      阅读:78      评论:0      收藏:0      [点我收藏+]
#!/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

写了个shell脚本(刚装完linux可以执行一下)

原文:https://www.cnblogs.com/littlepage/p/13182013.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!