linux 入门笔记

1 修改时区

sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2 修改原件源

1 vi /etc/apt/sources.list

2 apt-get update

deb http://mirrors.aliyun.com/ubu… trusty main restricted universe
multiverse deb http://mirrors.aliyun.com/ubu… trusty-security main
restricted universe multiverse deb http://mirrors.aliyun.com/ubu…
trusty-updates main restricted universe multiverse deb
http://mirrors.aliyun.com/ubu… trusty-proposed main restricted
universe multiverse deb http://mirrors.aliyun.com/ubu…
trusty-backports main restricted universe multiverse deb-src
http://mirrors.aliyun.com/ubu… trusty main restricted universe
multiverse deb-src http://mirrors.aliyun.com/ubu… trusty-security
main restricted universe multiverse deb-src
http://mirrors.aliyun.com/ubu… trusty-updates main restricted
universe multiverse deb-src http://mirrors.aliyun.com/ubu…
trusty-proposed main restricted universe multiverse deb-src
http://mirrors.aliyun.com/ubu… trusty-backports main restricted
universe multiverse

3 tar

打包 tar -cf aa.tar aa

解压 tar -xvf aa.tar

4 主机文件copy

scp showdoc.tar root@192.168.1.100:/var/www

    原文作者:hufeng
    原文地址: https://segmentfault.com/a/1190000004352401
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞