zoukankan      html  css  js  c++  java
  • 防火墙命令

    本地连接上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
  • 相关阅读:
    操作系统简介
    正则表达式
    Python socket
    计算机网络基础
    计算机基础
    Python常用模块
    Python模块和包
    Python反射和内置方法(双下方法)
    Python类的成员
    更改命令行,完全显示hostname
  • 原文地址:https://www.cnblogs.com/JBLi/p/11403068.html
Copyright © 2011-2022 走看看