摘要: systemctl status firewalld.service #查看firewall状态 systemctl stop firewalld #关闭 systemctl start firewalld #开启 systemctl disable firewalld #开机自动关闭 system 阅读全文
posted @ 2020-04-28 21:54 wuds 阅读(1235) 评论(0) 推荐(0)
摘要: ps aux | grep sshd 管道符 达到了既输出又存储的作用 管道命令 在做运维的时候,经常会遇到这个命令 ps -aux | grep xxx ps -aux 表示显示所有进程的消息。 | 是管道命令,通常要借助管道命令 实现多个命令的组合,形式如下: command 1 | comma 阅读全文
posted @ 2020-04-28 21:36 wuds 阅读(1717) 评论(0) 推荐(0)
摘要: 一、文件描述符的定义 cat >a.txt << EOF aaaa bbb ccc d EOF cat > b.txt << EOF #!/bin/bash cat << eof 1.linux 2.apache 3.mysql 4.php eof 明白追加、覆盖、重定向的 概念 重要 阅读全文
posted @ 2020-04-28 21:33 wuds 阅读(128) 评论(0) 推荐(0)
摘要: 1、使用tree命令查看目录结构,tree命令默认没有安装,需要手工安装,安装前需要挂载安装光盘镜像,挂载光盘镜像:mount /dev/sr0 /media/ 安装tree命令:rpm - ivh /mnt/Packages/tree-1.6.0 du命令,查看文件大小:du -sh /etc/ 阅读全文
posted @ 2020-04-28 18:53 wuds 阅读(167) 评论(0) 推荐(0)