Docker(Redhat7)
接手工作时看到虚拟机里有一个Redhat系统,我想拿来直接用;记一笔忘记密码情况下怎么进入Redhat 1、重启,在引导界面按e,进入grub; 2、在倒数第二行,带'linux'那一行的末尾加上'rd.break',注意空格隔开 3、按<Ctrl>+<x>进入单用户模式 4、重新挂载文件系统,并设为读写:mount -o …
Linux目录
/bin:存放超级用户和普通用户都能使用的基本系统命令程序。它包含了一些最基本的命令,如ls、cp、mv等。/bin是一个目录,其中的命令程序可以被所有用户执行。 /sbin:存放只有超级用户能使用的命令程序。它包含了一些系统管理和维护的命令,如ifconfig、fdisk等。/sbin也是一个目录,其中的命令程序只能被超级用户执行。 /usr/b…
实用网站
PDF合并,转换:https://www.ilovepdf.com/ 语音转文字:https://github.com/HaujetZhao/CapsWriter-Offline
KVM搭建(ubuntu)
一、Ubuntu安装,跳过 二、配置网络 1、编辑配置文件;方便后续访问虚拟机,需要建一个bridge vi /etc/netplan/00-installer-config.yaml #网桥配置 network: ethernets: ens160: dhcp4: false dhcp6: false # 添加网桥 bridges: br0: i…
centos优化
1、修改进程数限制 yum install wget unzip net-tools yum-utils vim bash-completion -y #安装常用工具包 yum update -y #更新yum源 ulimit -n #查看当前进程数
基础设施监控:Prometheus+Grafana
环境:centos7 一、安装Prometheus 1、下载Prometheus,未使用最新版本,本文使用最新版的上一版本 wget https://github.com/prometheus/prometheus/releases/download/v2.47.0/prometheus-2.47.0.linux-amd64.tar.gz 2、解压…
centos自带防火墙常用命令
查看状态:systemctl status firewalld 停止防火墙:systemctl stop firewalld 启动防火墙:systemctl start firewalld 防火墙服务开机自启:systemctl enable firewalld 关闭防火墙开机自启:systemctl disable firewalld 查看防火墙…
Ubuntu挂载硬盘
进入dev目录下,查看添加的设备名,本文以sdb为例(一般情况下硬盘顺序为sda,sdb,sdc;其他设备也是相应名称) 使用fdisk进入磁盘 root@test:/dev# fdisk /dev/sdb #用fdisk管理sdb这块硬盘 Welcome to fdisk (util-linux 2.37.2). Changes will rem…
Ubuntu
启用SSH,并启用远程root登录 设置root密码:sudo passwd root 启用root的ssh登录:vi /etc/ssh/sshd_config; 添加PermitRootLogin yes; 重启SSD服务systemctl restart sshd 如果ssh服务未开启,则要开启ssh服务:sudo systemctl enab…