• Linux学习笔记


    sudo adduser xxx 这样的命令会在home目录下添加一个帐号
    sudo useradd xxx 仅仅是添加用户, 不会在home目录添加帐号


    sohu yuan:
    deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
    deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
    deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse

    winsdows打开某个服务:控制面板-程序-。。。       cmd里services.msc

    给用户添加sudo权限:sudo visudo     添加user ALL=(ALL)ALL

    配置网络信息:/etc/network/interfaces

    auto eth0                  #设置自动启动eth0接口
    iface eth0 inet static     #配置静态IP
    address 192.168.11.88      #IP地址
    netmask 255.255.255.0      #子网掩码
    gateway 192.168.11.1        #默认网关

    重启网络: /etc/init.d/networking restart

    DNS

    /etc/resolv.conf

     apt-get:sudo apt-get install package 安装包    sudo apt-get remove package 删除包   sudo apt-get update  更新源   sudo apt-get upgrade 更新已安装的包  apt-get source package  下载该包的源代码

     source:

    source FileName
    作用:在当前bash环境下读取并执行FileName中的命令。
    注:该命令通常用命令“.”来替代。
    如:source .bash_rc 与 . .bash_rc 是等效的。

     路由表设置:

    基础:http://blog.csdn.net/hnmsky/article/details/8657989

    如何添加:http://www.thegeekstuff.com/2012/04/route-examples/

  • 相关阅读:
    linux下进程权限分析
    基于Token的身份验证——JWT
    hadoop2.7.3+spark2.1.0+scala2.12.1环境搭建(3)http://www.cnblogs.com/liugh/p/6624491.html
    hadoop2.7.3+spark2.1.0+scala2.12.1环境搭建(2)安装hadoop
    hadoop2.7.3+spark2.1.0+scala2.12.1环境搭建(1)安装jdk
    配置ssh无密钥登陆
    Linux实战案例(7)安装jdk
    Scala入门(1)Linux下Scala(2.12.1)安装
    Linux实战案例(6)yum查找、卸载、和安装软件
    Linux实战案例(5)关闭Centos的防火墙
  • 原文地址:https://www.cnblogs.com/kydnn/p/4960660.html
Copyright © 2020-2023  润新知