1、yum源配置
https://repo.saltstack.com/yum/redhat/7.3/x86_64/2019.2/
2
2、master端
yum install -y salt-master #安装master端
systemctl enable salt-master #设置master自启动(不需要配置,直接开启即可)
systemctl start salt-master #启动master服务
3、minion端
yum install -y salt-minion #安装minion端
vim /etc/salt/minion
master: server1 #设置master主机的ip
systemctl enable salt-minion
systemctl start salt-minion
4、master和minion建立连接
salt-key -L #列出所有公钥
salt-key -A #接受所有挂起的密钥
测试:
salt '*' test.ping
yum install lsof
lsof -i :4505
安装python-setproctitle,ps -ax查看到详细信息
##安装:python-setproctitle
yum install python-setproctitle
systemctl restart salt-master.service
ps -ax