当前位置:网站首页>系统重装以及查询系统性能
系统重装以及查询系统性能
2022-06-10 20:44:00 【贪睡的蜗牛】
重装系统找不到镜像
在centos7初始安装界面 按下tab键,
进行下列修改
原先内容为:vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS 7 x86_64 rd.live.check quiet
将上面内容修改为以下内容
vmlinuz initrd=initrd.img dd linux quiet 然后按下回车,等一会后会显示所有硬盘信息。
看一下U盘是属于哪个磁盘比如最前一列是sdb4
然后重启重新进入 再tab修改
vmlinuz initrd=initrd.img inst.stage2=hd:/dev/sdb4 quiet
回车安装
配置网络
BOOTPROTO="static"
DNS1=8.8.8.
DNS2=202.118.176.2
ONBOOT="yes"
IPADDR=192.168.101.(11-20) 第一行
PREFIX=16
GATEWAY=192.168.101.1
IPV6_PEERDNS=yes
IPV6_PEEROUTES=yes配置密钥
密钥配置
ssh-keygen 全部回车
cd .ssh 进入.shh目录
cat id_rsa.pub >> authorized_keys 安装公钥
chmod 600 authorized_keys
chmod 700 ~/.ssh
vi /etc/ssh/sshd_config 编辑配置文件
修改下面四行,如果第一行没有可以不加
RSAAuthentication yes
PubkeyAuthentication yes
PermitRootLogin yes
PasswordAuthentication no #禁止密码登录
重启ssh
systemctl restart sshd.service
查看状态
systemctl status sshd.service
复制密钥
cp id_rsa /root/Downloads/ip数
查询性能
cpu个数
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
cpu核数
cat /proc/cpuinfo | grep "cpu cores" | uniq
cpu型号
cat /proc/cpuinfo | grep 'model name' |uniq
查看硬盘大小
fdisk -l | grep Disk
查看内存
free -h防火墙配置
systemctl status firewalld
firewall-cmd --zone=public --add-port=22/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-ports查看允许端口边栏推荐
- C language -- 10 first knowledge of structure
- Summary of common mysql8 commands in centos7 environment
- 【无标题】破目
- Leetcode advanced path - reverse string
- Rotate navigation bar
- Redis cache avalanche
- What should be paid attention to when designing Multilayer PCB?
- Which city should I go to after I graduate from it? Which position has a high salary? Which companies have good treatment?
- LeetCode 进阶之路 - 167.两数之和 II - 输入有序数组
- 信号与系统复习1
猜你喜欢

Interview Essentials - basic knowledge of synchronized underlying principles
一次SQL查询优化原理分析(900W+数据从17s到300ms)

2022-06-09 rk817 PMU battery temperature detection

信号与系统复习1

关于type-c

Redis cache avalanche

Constructing the implementation strategy of steam education for children

「运维有小邓」自助帐户解锁工具

About type-C
An analysis of SQL query optimization principle (900w+ data from 17s to 300ms)
随机推荐
Qingniao Changping campus of Peking University: can I learn UI with a high school degree?
Naturalspeech model synthetic speech achieves human speech level for the first time in CMOS test
Practical | how to use burp suite for password blasting!
Quick start to VISSIM simulation
C language -- 1 c language cognition
[nk] 牛客月赛51 G计算题
php伪协议实现命令执行详情
Which city should I go to after I graduate from it? Which position has a high salary? Which companies have good treatment?
MySQL数据库如何查看表占用空间大小
[NK] question de calcul de 51 g pour le match lunaire Bullock
Rotate navigation bar
Extracting Nalu unit data from H264 real-time stream
Rotate menu 3.0
1、 Vulkan develops theoretical fundamentals
微积分复习1
Interview Essentials - basic knowledge of synchronized underlying principles
Leetcode advanced road - 167 Sum of two numbers II - input ordered array
学IT毕业后该去哪个城市?哪个岗位薪资高?哪些公司待遇好?
SoC development environment and hardware development preparation
Realize OSD reverse color on YUV image according to background color