centos 命令

防火墙

  • systemctl start firewalld 开启防火墙,没有任何提示即开启成功
  • systemctl stop firewalld 这条指令来关闭该功能。
  • systemctl status firewalld 查看firewalld状态 显示running即已开启了。
    centos_logo.png

常用命令:

  • rm 1.txt # 删除1.txt文件
  • rm -rf a.d # 删除a.d文件夹
  • mkdir test # 新建test文件夹

磁盘:

  • df -hl # 查看磁盘使用情况
  • yum -y install gcc # 安装gcc

解决make未找到解决方法:

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
tar zxvf ncurses-5.6.tar.gz
./configure -prefix=/usr/local -with-shared-without-debug
make
make install
Last modification:January 8th, 2019 at 05:15 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment