1 下载工具 2 配置环境 3 创建项目 4 进行构建
yum安装配置
查看已安装的yum
rpm -qa|grep yum
删除已有的yum
rpm -aq|grep yum|xargs rpm -e --nodeps
下载yum安装包
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-161.el7.centos.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-50.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
安装yum,注意:最后两个包必需同时安装,否则会相互依赖。
rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
rpm -ivh yum-3.4.3-161.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-50.el7.noarch.rpm
进入到系统yum源的目录下
cd /etc/yum.repos.d
下载yum源,并上传到服务器
网址:http://mirrors.163.com/.help/CentOS7-Base-163.repo
把文件名替换一下
mv CentOS7-Base-163.repo CentOS-Base.repo
将源移动到yum源目录下,每个人路径不同,故命令在此略过
运行makecache 生成缓存
yum makecache
运行yum clean all
yum clean all
(等同于 yum cleanheaders ; yum cleanpackages)
更新YUM文件
yum update
vim安装配置
install vim
yum install vim-enhanced sudo -y
验证vim版本
rpm -qa |grep vim