美文网首页
常用命令

常用命令

作者: CGWL丶大王 | 来源:发表于2020-04-07 14:12 被阅读0次

    Linux添加防火墙放行端口

    在/etc/sysconfig/iptables文件里面添加  

    eg:-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT

    /etc/rc.d/init.d/iptables restart   |  /etc/init.d/iptables reload

    #find

    find /data/nginx/conf/conf.d/ -type f|xargs grep -i "192.168.xx.xx"

    #grep

    grep -r "test" /data/reports

    cat daily.log | grep "context"

    cat test.log | tail -n 5

    cat test.log | head -n 5

    #ln  软链

    ln -s   【目标目录】 【软链接地址】

    mv chengang chengang_bak

    rm -rf webapps

    ln -s /data/www/项目包  /data/www/webapps

    相关文章

      网友评论

          本文标题:常用命令

          本文链接:https://www.haomeiwen.com/subject/wqxnphtx.html