摘要: 设置永久生效主机名: 方式一: hostnamectl set-hostname master hostname master vim /etc/hostname >> 有则编辑更改, 没有则可以新增主机名 查看防火墙默认设置: firewall-cmd --get-default-zone 查看当 阅读全文
posted @ 2019-04-12 17:23 修一 阅读(302) 评论(0) 推荐(0) 编辑
摘要: #! /bin/bash if [ $# -eq 0 -o $# -gt 2 ];then # 判断是否输入参数及参数输入是否上限 echo '/root/foo.sh redhat fedora' >&2 修改为错误输出 exit 3 elif [ $1 == redhat ];then echo 阅读全文
posted @ 2019-04-12 16:30 修一 阅读(698) 评论(0) 推荐(0) 编辑