1 Star 0 Fork 0

licheng / bash

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
basic.sh 1009 Bytes
一键复制 编辑 原始数据 按行查看 历史
licheng 提交于 2021-01-31 09:46 . update basic.sh.
#!/bin/bash
#:set ff=unix 修改编码
yum -y install wget
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
cat /etc/redhat-release | grep 8.
if [ $? -eq 0 ]; then
echo "server ntp.aliyun.com iburst">>/etc/chrony.conf && systemctl restart chronyd.service && chronyc sources -v #时区设置同步
rm -rf /etc/yum.repos.d/
mkdir /etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
yum clean all #清理缓存
yum makecache #生成缓存
fi
yum -y install epel-release
yum -y install bash-c*
yum -y install bash-completion
# 上传下载文件 rz 上传 sz 文件名 下载到本地
yum install -y lrzsz
yum install openssh* -y #安装
systemctl enable sshd #启动 通过xshill连接即可
systemctl start sshd
yum -y install net-tools
yum -y install vim
systemctl stop firewalld.service #关闭防火墙
systemctl disable firewalld.service #开机禁用防火墙
1
https://gitee.com/licheng1013/bash.git
git@gitee.com:licheng1013/bash.git
licheng1013
bash
bash
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891