ALearner

  • 首页
  • Python
  • Linux
  • Java
  • 工具
  • 前端
  • 算法
  • My World
HelloStranger
每个人都是初学者
  1. 首页
  2. Linux
  3. 正文

Linux常用技巧命令长期总结

2017年7月26日 7859点热度 0人点赞 0条评论

xshell下上传下载rz、sz的安装

yum install lrzsz -y

查看系统版本

内核版本:

  1. cat /proc/version
  2. uname -a

系统版本:

  1. cat /etc/redhat-release,这种方法只适合Redhat系的Linux

在Linux操作系统之上的MySQL数据库操作环境中使用清屏命令

  1. mysql> \! clear //注意clear命令之前要空格;
  2. mysql> ctrl+L //快捷组合键

安装wget

  1. yum install wget

防火墙相关firewalld

1、firewalld的基本使用

  • 启动: systemctl start firewalld
  • 查看状态: systemctl status firewalld
  • 停止: systemctl disable firewalld
  • 禁用: systemctl stop firewalld

2、端口相关

  • 添加 : firewall-cmd  --permanent  --zone=public --add-port=80/tcp     (--permanent永久生效,没有此参数重启后失效)
  • 重新载入 : firewall-cmd --reload
  • 查看 : firewall-cmd --zone= public --query-port=80/tcp
  • 删除 : firewall-cmd --zone= public --remove-port=80/tcp --permanent

相关

本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: cmd
最后更新:2017年12月21日

iquantumer

你现在的态度决定你十年后是人物还是废物。

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2022 alearner.top. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

鲁ICP备16024047号