admin管理员组

文章数量:1794759

PyKMIP

PyKMIP

Pykmip client: 使用pykmip客户端PyKMIP-master脚本验证 kmipserver 是否正常工作:

$cd /root/PyKMIP-master/kmip/demos/pie

$python3 create.py -a AES -l 128

出现下方错误:

An error occurred while connecting to appliance 10.1.1.124: [Errno 113] No route to host

could not open client connection: [Errno 113] No route to host

 排查原因:

连接不到服务器ip:10.1.1.124,可能是防火墙原因

查看服务端的防火墙是否开着

解决方法:

查看防火墙:

$ systemctl status firewalld

#关闭防火墙

$service firewalld stop

#关闭防火墙开机自启动

$systemctl disable firewalld

#开启防火墙开机自启动

$systemctl enable firewalld

参考:firewalld的基本使用

启动: systemctl start firewalld

关闭: systemctl stop firewalld

查看状态: systemctl status firewalld

开机禁用  : systemctl disable firewalld

开机启用  : systemctl enable firewalld

本文标签: pykmip