rpm -Uvh
yum -y install patch make gcc gcc-c++ libtool libtool-libs autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
master:
wget ~alikins/files/certmaster/certmaster-0.25.tar.gz
wget ~alikins/files/func/func-0.25.tar.gz
wget
tar -zxvf pyOpenSSL-0.9.tar.gz
cd pyOpenSSL-0.9
python setup.py install
结果出错,少库文件
src/crypto/crypto.c:12:20: error: Python.h: No such file or directory
In file included from src/crypto/crypto.h:17,
from src/crypto/crypto.c:14:
yum install -y python-devel
python setup.py install
这样就OK了,
tar -zxvf certmaster-0.25.tar.gz
cd certmaster-0.25
python setup.py install
tar -zxvf func-0.25.tar.gz
cd func-0.25
python setup.py install
配置默认
slave:
安装如上,
[root@vps func]# cat /etc/func/minion.conf
# configuration for minions
[main]
log_level = DEBUG
acl_dir = /etc/func/minion-acl.d
listen_addr =
listen_port = 51234
minion_name = pc-1
//红色字为服务器名!
[root@vps func]# cat /etc/certmaster/minion.conf
# configuration for minions
[main]
certmaster = 17.212.212.xx //为master地址
certmaster_port = 51235
log_level = DEBUG
cert_dir = /etc/pki/certmaster
service certmaster start
service funcd start
在master可以执行:
[root@linglingshang2009 certmaster]# certmaster-ca --list
pc-1
到些安装就完成了,
参考:http://blog.liuts.com/post/186/
阅读(1286) | 评论(0) | 转发(0) |