由图可知:1颗物理CPU,双核4线程;
[root@test opt]# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
1
[root@test opt]# cat /proc/cpuinfo | grep "core id" | sort | uniq | wc -l
2
[root@test opt]# cat /proc/cpuinfo | grep "processor" | sort | uniq | wc -l
4
基础组件安装:
yum -y install wget zip unzip git vim lrzsz net-tools.x86_64 ntpdate
[https://opsx.alibaba.com/mirror](https://opsx.alibaba.com/mirror)
下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
之后运行yum makecache生成缓存
生成密钥:
[root@nginx001 ~]# ssh-keygen -t rsa
拷贝到远程主机命令:
ssh-copy-id -i ~/.ssh/id_rsa.pub <romte_ip>
网友评论