防火墙命令

前端之家收集整理的这篇文章主要介绍了防火墙命令前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
本地连接上centos7-1  进行操作
***************************************
防火墙操作
1. 停止防火墙:  
    [[email protected]-1 ~]# service iptables stop

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

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

配置密钥 

1.生成密钥文件和私钥文件   
     [[email protected]-1 ~]# ssh-keygen -t rsa

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

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


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

猜你在找的CentOS相关文章