Linux常用命令

84 阅读1分钟

启动/关闭防火墙

systemctl start firewalld
systemctl stop firewalld
systemctl status firewalld

编辑配置文件

vim /etc/profile
 
# 进行编辑状态,修改编辑
i
 
# 退出编辑状态
Esc
 
# 保存并退出
:wq

# 
:q!不保存文件并强制退出

服务器运行内存情况

`` free -m