随笔分类 -  脚本

摘要:1 #!/bin/bash 2 # coding: utf-8 3 # Copyright (c) 2018 4 set -e #返回值为0时,退出脚本 5 echo "1. 备份yum" 6 { 7 for i in /etc/yum.repos.d/*.repo;do cp $i ${i%.re 阅读全文
posted @ 2018-11-14 10:58 依然-Fanstic 阅读(360) 评论(0) 推荐(0)
摘要:1 #!/bin/bash 2 # coding: utf-8 3 # Copyright (c) 2018 4 5 set -e #返回值为非0时,退出脚本 6 7 echo "0. 系统的一些配置" 8 setenforce 0 || true 9 systemctl stop iptables.service || true >/dev... 阅读全文
posted @ 2018-11-14 09:51 依然-Fanstic 阅读(1932) 评论(0) 推荐(0)