User Tools

Site Tools


library:centos:commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
Last revision Both sides next revision
library:centos:commands [2019/11/06 23:37]
library:centos:commands [2022/07/15 17:47]
lhaosen [防火墙]
Line 1: Line 1:
 +====== Centos 常用命令 ======
 +
 +===== 防火墙 =====
 +
 +CentOS 7.0默认使用的是firewall作为防火墙
 +  
 +  查看防火墙状态
 +  firewall-cmd --state
 +  
 +  停止firewall
 +  systemctl stop firewalld.service
 +  
 +  禁止firewall开机启动
 +  systemctl disable firewalld.service
 +
 +  中文支持
 +  export LC_ALL=zh_CN.GB2312;export LANG=zh_CN.GB2312
 +  英文
 +  export LC_ALL=en_US.UTF-8;export LANG=en_US.UTF-8  
 +
 +  sudo fdisk -l
  
library/centos/commands.txt · Last modified: 2022/07/15 22:51 by lhaosen