zoukankan      html  css  js  c++  java
  • Fedora/CentOS使用技巧

    命令

    获取系统安装包的编译源码及脚本

    # 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
    
  • 相关阅读:
    在VMWare的虚拟机中设置共享文件夹(Linux-Ubuntu系统)
    得到cell视图
    推送
    常用框架
    截屏
    多线程枷锁
    java与IOS的交互
    缓存机制
    iOS数据库操作(使用FMDB)
    插入排序
  • 原文地址:https://www.cnblogs.com/silvermagic/p/7665833.html
Copyright © 2011-2022 走看看