美文网首页
Linux 命令20200415

Linux 命令20200415

作者: 洛可可11 | 来源:发表于2020-04-17 09:19 被阅读0次

LINUX 命令

linux - cat 和 tail 区别

cat 命令 和tail命令都是显示数据的命令
cat 显示的是文件夹的全部的数据
cat 静态查看文件夹数据
tail 显示尾部的文件夹数据
tail -n num 显示num条数据
tail -f 可动态监控数据的变化

防火墙

1:查看防火状态
systemctl status firewalld
service iptables status
2:暂时关闭防火墙
systemctl stop firewalld
service iptables stop
3:永久关闭防火墙
systemctl disable firewalld
chkconfig iptables off
4:重启防火墙
systemctl enable firewalld
service iptables restart
5:永久关闭后重启
chkconfig iptables on

net: 未找到命令 yum install -y net
wget: 未找到命令 yum install -y wget
netdate: 未找到命令 yum install -y netdate

reboot 重启linux系统
uname -r 查看系统版本

检查mysql服务是否启动 ps -ef | grep mysqld

相关文章

网友评论

      本文标题:Linux 命令20200415

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