zoukankan      html  css  js  c++  java
  • Ubuntu ip及apt源设置

    • 配置静态ip及DNS

    sodu vim /etc/network/interfaces

    auto ens32

    iface ens32 inet static

    address 10.0.0.111

    netmask 255.255.255.0

    gateway 10.0.0.2

    /etc/init.d/networking restart

    vi /etc/resolv.conf

    nameserver 10.0.0.2

    nameserver 8.8.8.8

    • 允许root登录

    vim /etc/ssh/sshd_config

    PermitRootLogin yes

    /etc/init.d/ssh restat

    • 配置apt源

    mv /etc/apt/sources.list /etc/apt/sources.list.bak

    vi /etc/apt/sources.list

    deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse

    apt-get update

  • 相关阅读:
    durex-word
    闲聊可穿戴设备
    闲聊质数
    一步一步学swift之:自己写Api接口-PHP
    Swift实战-小QQ(第2章):QQ侧滑菜单
    Swift实战-小QQ(第1章):QQ登录界面
    一步一步学习Swift之(一):关于swift与开发环境配置
    objective-c底层: runtime机制
    手把手教你视频直播开发
    多语言本地化开发Localized
  • 原文地址:https://www.cnblogs.com/jacob-tian/p/7100221.html
Copyright © 2011-2022 走看看