命令
获取系统安装包的编译源码及脚本
# dnf download --source package
# yumdownloader --source virt-viewer
远程连接windows
# yum install freerdp
### 自动挂载home目录
# xfreerdp /u:win /p:123456 /v:192.168.124.230 +home-drive
指定程序运行CPU
# yum install python-schedutils.x86_64
# taskset -c <cpu_id> <pid/command>
配置
SSH登入很慢
### 编辑/etc/ssh/sshd_config文件,找到如下属性,将UseDNS设置为no,然后注释GSSAPIAuthentication
### UseDNS no
### # GSSAPIAuthentication yes
# vim /etc/ssh/sshd_config
# systemctl restart sshd
设置阿里源
# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# yum makecache
关闭SELINUX
# setenforce 0
# vim /etc/selinux/config
SELINUX=disabled