zoukankan      html  css  js  c++  java
  • centos8常用配置记录

    查看网卡设备状态:nmcli device status

    重启网卡:systemctl restart NetworkManager.service
    或者
    nmcli c reload eth0

    修改时区:timedatectl set-timezone Asia/Taipei

    修改时间:
    vim /etc/chrony.conf
    注释 pool 2.centos.pool.ntp.org iburst
    添加 server 10.191.131.131 iburst
    # 可以添加多个时间地址,如阿里的

    重新加载:systemctl restart chronyd.service
    开机自启:systemctl enable chronyd.service
    立即同步:chronyc sources -v
    

    设置网络全局代理:
    修改 /etc/profile 文件,添加下面内容:
    http_proxy=http://yourproxy:port/

    如果有密碼写成 http://username:password@yourproxy:port/

    https_proxy=http://yourproxy:port/
    ftp_proxy=http://yourproxy:port/
    export http_proxy
    export ftp_proxy

    对于 yum 的代理,设置 /etc/yum.conf 文件,添加以下代码:
    http_proxy=http://yourproxy:port/

  • 相关阅读:
    爬虫:Scrapy15
    爬虫:Scrapy14
    爬虫:Scrapy13
    爬虫:Scrapy12
    爬虫:Scrapy11
    爬虫:Scrapy10
    爬虫:Scrapy9
    线段树基础
    [USACO08DEC]秘密消息Secret Message
    阅读理解
  • 原文地址:https://www.cnblogs.com/shiqing-zhang/p/14200411.html
Copyright © 2011-2022 走看看