新建系统配置

自建脚本,全局可执行

创建脚本:vi /bin/a.sh

#!/bin/bash
git pull
git pull
git add --all
git commit -m "手动更新"
git push -u origin master
git push -u origin master
echo '执行成功'

修改环境变量配置文件: vi /root/.bashrc
alias a='source a.sh'  #脚本名称改为a
#alias ls='ls --color=auto'

解决ssh连接缓慢的问题

修改/etc/ssh/sshd_config

1)UseDNS注释去掉并改为no UseDNS no

2)GSSAPIAuthentication yes

改为 GSSAPIAuthentication no

保存并重启服务

关闭防火墙
systemctl stop firewalld.service
关闭开机启动
systemctl disable firewalld.service

修改时区

ln -s /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime



原文地址:https://www.cnblogs.com/zhiqiao/p/12190389.html