您的位置:首页 > 运维架构 > Linux

centos 6.3x64 安装saltstack

2016-09-21 14:59 375 查看
参考文档:
http://docs.saltstack.cn/topics/installation/rhel.html http://docs.saltstack.cn/topics/development/hacking.html#installing-for-development http://docs.saltstack.cn/topics/installation/rhel.html#enabling-epel
注意:

1.不要使用pip安装,这样安装了salt, 还要自己配置服务

2.不要直接使用yum 安装,也就是文档中提到的第一种方式,这种方法有yum update, 会升级cetos 到6.8

一. 环境及准备工作

1. lsb_release -a
LSB Version:
:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID:CentOS
Description:
CentOS release 6.3 (Final)
Release:
6.3
Codename:
Final

2. uname -a
Linux test40 2.6.32-504.30.3.el6.x86_64 #1 SMP Wed Jul 15 10:13:09 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

3. python -V
Python 2.6.6

4. mkdir -p /data/soft/app/python2.6

mkdir -p /data/soft/app/python2.6/env

5.安装pip,setuptools, 参考 http://pip-cn.readthedocs.io/en/latest/installing.html, 下载地址: https://bootstrap.pypa.io/  a. 下载get-pip.py ,上传至/data/soft/app/python2.6
b. cd /data/soft/app/python2.6/,chmod a+rx get-pip.py,python get-pip.py
c. python get-pip.py
d. pip -V,显示 pip 8.1.2 from /usr/lib/python2.6/site-packages (python 2.6), 则安装成功

二. 安装

1.使用EPEL安装源
a. exit
b. 检查是否安装了epel, rpm -q epel-release
c. 手工下载http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm,上传至 /data/soft/app/python2.6
d. rpm -Uvh epel-release-6-8.noarch.rpm
e. vim /etc/yum.repos.d/epel.repo, 将baseurl前的注释去掉,并修改为sohu的epel, baseurl=http://mirrors.sohu.com/fedora-epel/6/$basearch, 注释掉mirrorlist, 
f. 使用yum repolist查看epel源是否正确添加,Extra Packages for Enterprise Linux 6 - x86_64 后面的数字大于0即为成功添加

2. 安装
yum install salt-master
yum install salt-minion

3. 启动
service salt-master start
service salt-minion start
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: