CentOS7 安装Saltstack

 时间:2024-11-03 09:40:24

1、安装Saltstack[root@linuxprobe ~]# yum -y install salt-master[root@linuxprobe ~]# systemctl start salt-master[root@linuxprobe ~]# systemctl enable salt-master# 配置防火墙规则[root@linuxprobe ~]# firewall-cmd --add-port={4505/tcp,4506/tcp} --permanentsuccess[root@linuxprobe ~]# firewall-cmd --reloadsucces

CentOS7 安装SaltstackCentOS7 安装Saltstack

2、# 安装salt-minion,在同一台服务器[root@linuxprobe ~]# yum --enablerepo=epel -y install salt-minion[root@linuxprobe ~]# sed -i 's/\#master\: salt/master\: www\.linuxprobe\.com/g' /etc/salt/minion或者[root@linuxprobe ~]# vi /etc/salt/minion# 设置salt-master服务master: www.linuxprobe.com# master 使用域名的话需要设置本机host解析echo "10.1.1.87 www.linuxprobe.com" >>/etc/hosts[root@linuxprobe ~]# systemctl start salt-minion[root@linuxprobe ~]# systemctl enable salt-minion# salt-master 与salt-minion连接[root@linuxprobe ~]# salt-key -y -A[root@linuxprobe ~]# salt-key -LAccepted Keys:www.linuxprobe.comDenied Keys:Unaccepted Keys:Rejected Keys:[root@linuxprobe ~]# salt "*" test.pingwww.linuxprobe.com: True

CentOS7 安装Saltstack
  • CentOS7 mini系统安装
  • CentOS7 安装GUI界面
  • Centos7 yum安装redis方法
  • Linux(CentOS7)上部署Telnet
  • 热门搜索
    如何制表格基础教程 履约保函怎么办理 罪恶都市怎么赚钱 宝宝怎么添加辅食 鄂a是哪里的车牌号码 怎么安装无线路由器 如何快速睡眠 桂花泡水喝的9大禁忌 信用卡怎么提高额度 路由器管理软件