防火墙命令

本地连接上centos7-1  进行操作
***************************************
防火墙操作
1. 停止防火墙:  
    [root@centos7-1 ~]# service iptables stop

2.关闭防火墙  和查看状态 : //注:查看状态还没有关闭
    [root@centos7-1 ~]# systemctl stop firewalld
    [root@centos7-1 ~]# systemctl status firewalld
    //继续关闭
    [root@centos7-1 ~]# chkconfig firewalld off   //会报错  ,没有禁用
    [root@centos7-1 ~]# systemctl disable firewalld   开启禁用
    [root@centos7-1 ~]# systemctl status firewalld  //查看状态

**********************

配置密钥 

1.生成密钥文件和私钥文件   
     [root@centos7-1 ~]# ssh-keygen -t rsa

2.将你的公共密钥填充到一个远程机器上的authorized_keys文件中
    [root@centos7-1 ~]# ssh-copy-id 192.168.217.10
*********************************************************

配置slasticsearch插件   没有插件不能安装slasticsearch


注:检查一下是否有网  才能下载
    先重启网卡  service network restart

猜你喜欢

转载自www.cnblogs.com/JBLi/p/11403068.html