centos7常用运维命令

  • 立即关机 shutdown -h now
  • 立即重启 shutdown -r now
  • 查看剩余磁盘空间 df -lh
  • 安装jdk 草考文章 https://www.cnblogs.com/Dylansuns/p/6974272.html
  • 查看端口被哪个进程占用 netstat -tunlp|grep 8080
  • systemctl start firewalld # 启动,
  • systemctl enable firewalld # 开机启动
  • systemctl stop firewalld # 关闭
  • systemctl disable firewalld # 取消开机启动
  • firewall-cmd –state 查看状态(此处两条’-‘)

你可能感兴趣的:(linux)