zoukankan      html  css  js  c++  java
  • 常用命令

    列出所有端口 netstat -a  # netstat -a | more

    列出所有 udp 端口 netstat -a   # netstat -au

    列出所有 tcp 端口 netstat -at  # netstat -at

    查看所有进程里 CMD 是 ssdb 的进程信息

    ps -aux | grep ssdb

    kill 命令用于终止进程:kill -9 [PID]    -9 表示强迫进程立即停止

    防火墙:

    1) 重启后生效 
    开启: chkconfig iptables on
    关闭: chkconfig iptables off

    2) 即时生效,重启后失效
    开启: service iptables start
    关闭: service iptables stop

    CenterOs7:

    systemctl stop firewalld.service #停止firewall

    systemctl disable firewalld.service #禁止firewall开机启动

    获取Linux安全机制状态

    1、/usr/sbin/sestatus -v      ##如果SELinux status参数为enabled即为开启状态

    SELinux status:                 enabled

    2、getenforce                 ##也可以用这个命令检查

    关闭SELinux:

    1、临时关闭(不用重启机器):

    setenforce 0                  ##设置SELinux 成为permissive模式

                                  ##setenforce 1 设置SELinux 成为enforcing模式

    2、修改配置文件需要重启机器:

    修改/etc/selinux/config 文件

    将SELINUX=enforcing改为SELINUX=disabled

    重启机器即可



  • 相关阅读:
    bzoj1066 [SCOI2007]蜥蜴
    bzoj2957 楼房重建
    bzoj2243 [SDOI2011]染色
    bzoj1858 [Scoi2010]序列操作
    bzoj1051 [HAOI2006]受欢迎的牛
    二分图最大匹配模板(pascal)
    gulp-file-include 合并 html 文件
    vue-cli项目结构分析
    svn汉化包安装无效的解决办法
    vue-cli npm install 失败
  • 原文地址:https://www.cnblogs.com/tianboblog/p/6185620.html
Copyright © 2011-2022 走看看