1、下载

使用yum方式即可,可以更换下yum源,这里使用的阿里云的

[root@salt-master ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum -y install epel-release
yum clean all
yum makecache
yum -y install salt-master salt-minion

2、设置开机自启动服务

systemctl enable salt-minion.service
systemctl enable salt-master.service

这里我在一台机器上安装了一个master和一个minion

3、启动服务

systemctl start  salt-master.service
systemctl start salt-minion.service

4、关闭防火墙

systemctl disable firewalld.service
setenforce

5、查看是否认证成功

修改master和minion端的配置文件,这里直接使用sed修改

sed -i 's/#interface: 0.0.0.0/interface: 192.168.235.133/g' /etc/salt/master
sed -i 's/#master/master: 192.168.235.133/g' /etc/salt/minion
sed -i 's/#id/id: m1/g' /etc/salt/minion

修改完成后需要重启下服务,然后再来验证是否认证成功

[root@localhost ~]# salt-key -L
Accepted Keys:
Denied Keys:
Unaccepted Keys:
m1
Rejected Keys:
[root@localhost ~]# salt-key -A
The following keys are going to be accepted:
Unaccepted Keys:
m1
Proceed? [n/Y] y
Key for minion m1 accepted.
[root@localhost ~]# salt-key
Accepted Keys:
m1
Denied Keys:
Unaccepted Keys:
Rejected Keys:
[root@localhost ~]# salt m1 test.ping
m1:
True

最新文章

  1. mysql乱码解决
  2. 基于C#语言利用Microsoft.office.introp.excel操作Excel总结
  3. aggregations 详解1(概述)
  4. [RxJS] Combination operator: withLatestFrom
  5. 异常:ERROR [org.hibernate.proxy.BasicLazyInitializer] - CGLIB Enhancement failed...
  6. HTML5 HybridApp开发上手指引
  7. JAVA的IO学习
  8. mysql 5.5中文乱码问题
  9. JSON详细总结
  10. 安全终端模拟工具Xshell 5使用密钥认证登录配置详细教程
  11. RT5350 OpenWrt 系统移植jsoncpp
  12. linux crontab yum安装
  13. directdraw显示rgb565
  14. 如何做一个项目.ppt
  15. 剑指Offer编程题3——从尾到头打印链表
  16. SQL server 生成数据字典
  17. flask简单登录注册
  18. nor flash与nand flash启动的简单比较--APPLE的ARM学习笔记一
  19. Android开发(十三)——全屏滚动与listview
  20. p1209 Barn Repair

热门文章

  1. Redis中的简单动态字符串
  2. [luoguU42591][小T的绝对值]
  3. Linux:从文件中搜索关键字并显示行数(cat,grep函数)
  4. myEclipse全局搜索时报错
  5. CRC-16的原理和实现
  6. P2569 [SCOI2010]股票交易
  7. MUI 自定义从底部弹出的弹出框
  8. java的排序类 Collections
  9. JAVA记录-Servlet介绍
  10. Ubuntu 下 Tomcat7 的安装和配置