免密登錄配置
# 在當前機器下 執行命令 生成 私鑰和公鑰 ~/.ssh 目錄下
ssh-keygen -t rsa
# 執行如下命令 把公鑰 放到 對應機器上的 ~/.ssh/authorized_keys
ssh-copy-id 172.17.68.220
# 如此 兩臺機器兩兩配置
centos? ssh連接慢
`
vim /etc/ssh/sshd_config # UseDNS 設置為noUseDNS nosystemctl restart sshd
更換yum 源
# 更換yum
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
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 clean all
yum makecache
yum repolist
安裝字體
字體相關
#查看linux已安裝字體yum install mkfontscale# 查看linux已安裝中文字體fc-list :lang=zh
# 安裝中文字體
# 1)創建目錄mkdir -p /usr/share/fonts/my_fonts
# (2)將要安裝的字體上傳到該文件夾下
#(3)安裝字體索引指令yum install mkfontscale
#(4)生成字體索引# 進入目錄 cd /usr/share/fonts/my_fonts,執行索引字體生成mkfontscale
#.查看黑體常規字體是否安裝成功
fc-list :lang=zh,如下表示安裝成功