![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
绿色草鞋
空杯心态,减法人生
展开
-
linux新增用户并使用密钥登录
1、修改配置执行 vi /etc/ssh/sshd_config 对应修改以下项使用密钥登录RSAAuthentication yesPubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keys去掉密码登录PasswordAuthentication no禁止root用户登录PermitRootLogin no重启服务(只有root有权限)service sshd restart2、生成密钥(一原创 2021-11-17 17:41:53 · 1212 阅读 · 0 评论 -
防火墙常见命令
#查看防火墙开放的端口信息firewall-cmd --list-ports#查看防火墙状态systemctl status firewalld#启动防火墙状态systemctl start firewalld#关闭防火墙状态systemctl stop firewalld#添加防火墙端口firewall-cmd --zone=public --add-port=8000/tcp --permanentfirewall-cmd --reload#删除防火墙端口原创 2021-11-16 11:49:44 · 508 阅读 · 0 评论 -
Linux常用命令
#文件是可执行权限chmod +x kill.sh(文件)#显示当前所有java进程pid的命令jps -l#检查java 进程是否存在ps -ef | grep java --#查看文件系统磁盘空间使用情况df -l / df -h --#查看(计算)文件大小du -sh#查看网络连接netstat -tnlp#查看内存情况free -h#IO性能分析 iostat [ 选项 ] [ <时间间隔> [ <次数> ]] ios.原创 2021-11-15 11:58:44 · 216 阅读 · 0 评论