1.CentOS 7 - yum常见命令
2.CentOS 7 - 最小化装机软件
3.CentOS 7 - GitLab的安装
CentOS 7 最小化安装后的软件安装:
1.安装网络工具:
$ yum -y install net-tools
2.下载工具安装:
$ yum -y install wget
3.更改yum源
这里用阿里的源。
阿里云Linux安装镜像源地址:http://mirrors.aliyun.com/
3.1 备份你的原镜像文件,以免出错后可以恢复。
$ mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
3.2 下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 6:
$ wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7:
$ wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.3 生成缓存
yum clean all
$ yum makecache
4.安装zsh
zsh是目前最好用的shell。
$ yum -y install zsh
5.安装git
安装oh-my-zsh要用,以后项目代码管理也要用。
$ yum -y install git
6.安装oh-my-zsh
配合zsh使用,使zsh更好用,更帅。
oh-my-zsh官网:http://ohmyz.sh/
curl方式安装:
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
wget方式安装:
$ sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
7.安装vim编辑器
$ yum -y install vim