美文网首页
linux 命令

linux 命令

作者: webllw | 来源:发表于2017-08-17 08:56 被阅读7次

    关闭端口
    iptables -A INPUT -p tcp --dport 111 -j DROP
    打开端口
    iptables -A INPUT -p tcp --dport 111 -j ACCEPT
    查看端口
    netstat -apn
    netstat -apn | grep java
    netstat -apn | grep 8080
    启动服务
    systemctl start [服务]
    重新加载服务
    systemctl reload [服务]
    停止服务
    systemctl stop [服务]
    查看服务
    systemctl status [服务]
    CSR 生成
    openssl req -newkey rsa:2048 -keyout yourname.key -out yourname.csr
    免密码 生成一个解密的key文件,替代原来key文件
    openssl rsa -in server.key -out server.key.unsecure

    相关文章

      网友评论

          本文标题:linux 命令

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