【转载】Linux配置端口转发
摘要:1、ssh 端口转发 ssh 提供了一个非常有意思的功能,就是端口转发,它能够将其他 TCP 端口的网络数据通过 SSH 链接来转发,并且自动提供了相应的加密及解密服务。 # 本地端口转发 ssh -fgN -L 2222:localhost:22 localhost # 远程端口转发 ssh -f
阅读全文
posted @
2022-09-07 10:58
LeoZhanggg
阅读(2880)
推荐(0) 编辑
【转载】Linux系统磁盘扩容
摘要:一、基本概念: 逻辑卷管理(Logical Volume Manager):LVM将一个或多个硬盘的分区在逻辑上集合,相当于一个大硬盘来使用, 当硬盘的空间不够使用的时候,可以继续将其它的硬盘的分区加入其中,这样可以实现磁盘空间的动态管理。 物理存储介质(The Physical Media):这里
阅读全文
posted @
2022-09-07 10:36
LeoZhanggg
阅读(1035)
推荐(0) 编辑
Linux离线安装插件包
摘要:1)下载离线包(Windows): http://www.rpmfind.net/linux/rpm2html/search.php?query=&submit=Search+ 2)下载离线包(Linux): yum install --downloadonly --downloaddir=/tmp
阅读全文
posted @
2022-09-07 10:35
LeoZhanggg
阅读(951)
推荐(0) 编辑
Centos修改固定IP
摘要:1)界面设置 a. 首先打开设置:Applications ->System Tools ->Settings b. 再打开网络,并设置IP:Network -> Wired -> IPv4 -> Manual ->Addresses ->Apply c. 重启一下网络,即可生效!!! 2)命令行设
阅读全文
posted @
2022-09-07 10:33
LeoZhanggg
阅读(1495)
推荐(0) 编辑
Centos更改镜像源和root权限设置
摘要:1) 备份原有镜像源文件 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 2) 下载阿里云镜像源文件 curl -o /etc/yum.repos.d/CentOS-Base.repo http:/
阅读全文
posted @
2022-09-07 10:30
LeoZhanggg
阅读(412)
推荐(0) 编辑
Centos系统安装
摘要:准备工作 从国内镜像下载CentOS-7-x86_64-DVD-1810.iso,约4.27GB。 下载_Universal USB Installer_,用于制作USB安装盘,约1.7MB。打开连接单击如下按键下载。 准备一个至少8GB空间的U盘。建议使用USB3.0接口的U盘,读写速度更快。 G
阅读全文
posted @
2022-09-07 10:28
LeoZhanggg
阅读(834)
推荐(0) 编辑
Linux修改时区/时间
摘要:常用操作 (1) 通过timedatectl管理时间 # 查看时间 timedatectl //等同于 timedatectl status # 设置时间 timedatectl set-time "YYYY-MM-DD HH:MM:SS" # 列出时区 timedatectl list-timez
阅读全文
posted @
2022-09-07 10:19
LeoZhanggg
阅读(427)
推荐(0) 编辑
Linux安装软件
摘要:打开命令行 切换root用户 下载安装包(rpm) wget 暂时无法在文档外展示此内容 地址可以从浏览器获取 安装软件 yum -y install teamviewer.x86_64.rpm 或者:rpm -ivh teamviewer.x86_64.rpm 或者: yum -y -e 0 lo
阅读全文
posted @
2022-09-07 10:16
LeoZhanggg
阅读(51)
推荐(0) 编辑
aarch安装docker
摘要:操作系统:麒麟V10-server 1、下载Docker aarch版本docker下载地址:https://download.docker.com/linux/static/stable/aarch64/, 根据需要下载对应的版本。 2、安装Docker 1.解压安装包 tar -zxvf doc
阅读全文
posted @
2022-09-06 10:22
LeoZhanggg
阅读(1078)
推荐(1) 编辑
Ingress常见配置
摘要:apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/server-snippet: | location ~ ^/(admin|internal) { deny
阅读全文
posted @
2022-09-06 10:13
LeoZhanggg
阅读(1869)
推荐(0) 编辑
【转载】测试端口通不通(四种方法)
摘要:准备环境 启动一个web服务器,提供端口. [wyq@localhost ~]$ python -m SimpleHTTPServer 8080 Serving HTTP on 0.0.0.0 port 8080 ... 用其它web服务器提供端口也一样,由于python比较方便,这里就用它 1、使
阅读全文
posted @
2022-09-06 10:02
LeoZhanggg
阅读(485)
推荐(0) 编辑
Kubernetes - 常用命令
摘要:# 创建/删除/修改配置 # 通过文件创建cm资源 kubectl create configmap appservice --from-file=application.properties # 以json形式修改资源 kubectl edit configmaps/appservice -o j
阅读全文
posted @
2022-09-06 09:58
LeoZhanggg
阅读(90)
推荐(0) 编辑
Docker - 常用命令
摘要:# 查看容器 # 查看活跃容器 docker ps # 查看所有容器(包括已关闭) docker ps -a # 筛选指定名称和状态的容器 docker ps -q --filter name=.*bingohuang.* --filter status=exited # 设置容器自启动 docke
阅读全文
posted @
2022-09-06 09:54
LeoZhanggg
阅读(163)
推荐(0) 编辑
Linux - 常用命令
摘要:# 查看系统版本 uname -a cat /etc/os-release # 查看当前目录文件大小 du --max-depth=1 -h du -sh # 更新时区 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime # 查看端口信息 fuse
阅读全文
posted @
2022-09-06 09:53
LeoZhanggg
阅读(40)
推荐(0) 编辑
Iptables - 基础应用
摘要:iptables命令是Linux上常用的防火墙软件,是netfilter项目的一部分。 -t<表>:指定要操纵的表; -A:向规则链中添加条目; -D:从规则链中删除条目; -I:向规则链中插入条目; -R:替换规则链中的条目; -L:显示规则链中已有的条目; -F:清楚规则链中已有的条目; -Z:
阅读全文
posted @
2022-09-06 09:51
LeoZhanggg
阅读(138)
推荐(0) 编辑