莫等闲,白了少年头,空悲切。

英语学习笔记(2)-冠词

冠词(art.): ​ 冠词可分为不定冠词a/an及定冠词the, 它通常放在名词前,用来修饰名词。 ​ a/an的用法: a + 辅音开头的单数名词 ​ an + 元音开头(a,e,i,o,u)的单数名词 ​ 如:a book, a girl, a young man. ​ an apple, an umbrella, an old man. ​ 定冠词the+形容词:泛指指“~的人”, 大多数代表复数, 如:the rich(富人) , the old (老人), the young(年轻人)。 the rich aren’t always happy. Notes: 不可数名词之前不加冠词,直接使用名词即

英语学习笔记(1)-名词

名词(n.): 普通名词 集合名词 ​ 表示一组事物 , 如:class, glass 专有名词 ​ 1. 首字母大写 ​ 2. 前加the, 如:Peter, London, the United States 物质名词 ​ 数字+量词+of+物质名词, 如: a armful of wood, a sheet of paper 抽象名词(不可数名词) ​ 不可见或触摸的, 如:beauty, honesty, happiness 复数的规则变化: 字尾加s 如:dog - dogs, book - books 字尾为s, sh, ch, x, o 加es, 如:class - classes, bench - benches, box - boxes. 例外:photos, pianos, 字尾为辅音+y的话, 去y

CentOS安装Docker

配置Yum源 由于CentOS默认的repository中没有docker软件, 在国内一般情况是使用两种方案: 使用国内的阿里云或七牛云等镜像源,但是在我测试的时候不可用。 使用docker官方的repository,缺点是速度比较慢。 阿里云镜像 由于国内某种网络原因,docker的下载速度会很慢,所以我们在这里先配置yum的数据源为国内阿里云。 # 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 fast 经测试此数据源中无docker软件

RHEL各个版本的通用管理命令

System basics Task RHEL5 RHEL6 RHEL7 View subscription information /etc/sysconfig/rhn/systemid /etc/sysconfig/rhn/systemid subscription-manager identity subscription-manager identity Configure subscription rhn_register subscription-manager 1 rhn_register rhnreg_ks subscription-manager subscription-manager2 rhn_register 3 View RHEL version information /etc/redhat-release View system profile sosreport dmidecode hwbrowser sosreport dmidecode lstopo lscpu Basic configuration Task RHEL5 RHEL6 RHEL7 Graphical configuration tools system-config-* gnome-control-center Text-based configuration tools system-config-*-tui Configure printer system-config-printer Configure network system-config-network nmcli nmtui nm-connection-editor Configure system language system-config-language localectl Configure time and date system-config-date date timedatectl date Synchronize time and date ntpdate /etc/ntp.conf timedatectl /etc/chrony.conf ntpdate Configure keyboard system-config-keyboard localectl Configure SSH /etc/ssh/ssh_config /etc/ssh/sshd_config ~/.ssh/config ssh-keygen Jobs and services Task RHEL5 RHEL6 RHEL7 List all services chkconfig –list ls /etc/init.d/ systemctl -at service ls /etc/systemd/system/.service ls /usr/lib/systemd/system/.service List running services service –status-all systemctl -t service –state=active Start/stop service service name start service name stop systemctl start name.service systemctl stop name.service Enable/disable service chkconfig name on chkconfig name off systemctl enable name.service systemctl disable name.service View service status service name status systemctl status name.service Check if service is enabled chkconfig name –list systemctl is-enabled name Create new service file or modify configuration chkconfig –add systemctl daemon-reload /etc/systemd/system/*.service View run level/target runlevel who -r systemctl get-default who -r Change run level/target

Git入门(二)- 基础(一)

获取Git仓库 获取Git仓库存在两种方法: 使用git init在本地初始化仓库 $ git init Initialized empty Git repository in /Users/stanley/git_demo/.git/ 使用git clone克隆远程服务器中仓库 $ git clone https://github.com/libgit2/libgit2 Cloning into 'libgit2'... remote: Enumerating objects: 88874, done. remote: Counting objects: 100% (88874/88874), done. remote: Compressing objects: 100% (24728/24728), done. remote: Total 88874 (delta 62425), reused 88873 (delta 62424), pack-reused 0 Receiving objects: 100% (88874/88874), 40.79 MiB | 57.00 KiB/s, done. Resolving deltas: 100% (62425/62425), done. Checking out files: 100% (10168/10168), done. 查看文件状态 git中的文件存在四种状态, 我们可以使用git status命令查看文件的状态: Untracked UnModified Modified Staged | | | | |---Add the file -------------------------------------------->| | | | | | |---Edit the file--->| | | | | | | | |--Stage the file->| | |