在阿里云的Ubuntu ECS instance 使用Apt-get安装git
高级包装工具(英语:Advanced Packaging Tools,简称:APT)是Debian及其衍生发行版(如:ubuntu)的软件包管理器。APT可以自动下载,配置,安装二进制或者源代码格式的软 件包,因此简化了 Unix系统上管理软件的过程,apt-get命令一般需要root权限执行,所以一般跟着sudo命令。
在阿里的云服务器上想要安装git,先运行apt-get update去更新镜像,然后使用apt-get install git去安装git.
root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local# apt-get update
Ign http://mirrors.cloud.aliyuncs.com precise InRelease
Get:1 http://mirrors.cloud.aliyuncs.com precise-security InRelease [55.7 kB]
Get:2 http://mirrors.cloud.aliyuncs.com precise-updates InRelease [55.7 kB]
Get:3 http://mirrors.cloud.aliyuncs.com precise-proposed InRelease [55.7 kB]
Get:4 http://mirrors.cloud.aliyuncs.com precise-backports InRelease [55.7 kB]
root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local# apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-
gui gitk gitweb
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 235 not upgraded.
Need to get 6,759 kB of archives.
After this operation, 15.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu/ precise/main liberror-perl all 0.17-1 [23.8 kB]
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu/ precise-security/main git-man all 1:1.7.9.5-
1ubuntu0.3 [632 kB]
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu/ precise-security/main git amd64 1:1.7.9.5-
1ubuntu0.3 [6,103 kB]
Fetched 6,759 kB in 1s (4,334 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 54216 files and directories currently installed.)
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.7.9.5-1ubuntu0.3_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.7.9.5-1ubuntu0.3_amd64.deb) ...
Processing triggers for man-db ...
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.7.9.5-1ubuntu0.3)
root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local/GitRepo/HelloWorld# touch test.txt
root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local/GitRepo/HelloWorld# git add test.txt
root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local/GitRepo/HelloWorld# git commit -m 'deliver new test file'
[master 01bbaa1] deliver new test file
0 files changed
create mode 100644 test.txt
root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local/GitRepo/HelloWorld# git push origin
Username for 'https://github.com': guoguangzhi
Password for 'https://guoguangzhi@github.com':
To https://github.com/guoguangzhi/HelloWorld.git
b50d8e8..01bbaa1 master -> master
转载于:https://www.cnblogs.com/GuoRichard/p/6947243.html
在阿里云的Ubuntu ECS instance 使用Apt-get安装git相关推荐
- 阿里云服务器(ECS)实战--CentOS 7安装Chrome浏览器
Chrome浏览器安装 配置Chrome源 cd /etc/yum.repo.d/ vim google-chrome.repo 写入Chrome源 [google-chrome] name=goog ...
- 在阿里云服务器(ECS)上从零开始搭建nginx服务器
本文介绍了如何在阿里云服务器上从零开始搭建nginx服务器.阿里云服务器(ECS)相信大家都不陌生,感兴趣的同学可以到http://www.aliyun.com/product/ecs去购买,或到体验 ...
- 怎样使用阿里云国际版ecs实例创建单个云盘快照-Unirech
快照是一种无代理的数据备份管理方式,支持为系统盘或者通过数据盘创建崩溃一致性快照.快照常用于企业日常生活数据信息备份.实例误释放数据恢复.制作一个自定义镜像等场景.在回滚云盘.修改关键系统文件.更换操 ...
- [Linux]阿里云免费试用体验(在阿里云的ubuntu上部署个人服务)
作为一个IT界的人,一般都希望有一个独立的博客,或者一部独立的机器.所以我一直在找机会,拥有一台自己可以独立控制的机器,自己想干嘛干嘛.当然这在虚拟机或者自己的PC上面也可以实现,但是这跟一台一直开着 ...
- 在阿里云的ubuntu上部署个人服务
为什么80%的码农都做不了架构师?>>> 作为一个IT界的人,一般都希望有一个独立的博客,或者一部独立的机器.所以我一直在找机会,拥有一台自己可以独立控制的机器,自己想干嘛干嘛.当然 ...
- 阿里云服务器(ECS)集群解决方案
阿里云服务器(ECS)集群解决方案 参考文章: (1)阿里云服务器(ECS)集群解决方案 (2)https://www.cnblogs.com/568yscom/p/10769175.html 备忘一 ...
- 阿里云服务器的ECS和RDS和OSS和SLB是什么意思?
阿里云服务器的ECS和RDS和OSS和SLB是什么意思? 阿里云ECS共享型S6.计算型.突发性能型.通用型服务器区别?前往阿里云产品文档了解 阿里云服务器的ECS和RDS和OSS和SLB是什么意思? ...
- 阿里云国际版ECS云服务器欠费会自动释放吗?
阿里云国际版ECS云服务器欠费后能补缴吗?账号会出现什么问题?欠费怎么解决?下面和87cloud一起了解阿里云国际版购买的云服务器欠费后不同的支付方式所对应的方法! 第一种是通过信用卡和PayPal支 ...
- 阿里云AMD服务器ECS实例g6a、c6a和r6a性能参数详解
阿里云AMD服务器ECS计算型c6a.通用型g6a和内存型r6a实例,CPU采用2.6GHz主频的AMD EPYCTM ROME处理器,睿频3.3GHz,计算性能稳定,云服务器吧来详细说下阿里云ECS ...
最新文章
- 1、Angular2 Component 组件
- 提升ListView的运行效率
- Spring Boot2.x-04Spring Boot基础-使用注解装配bean
- 设计进步,记一笔,控制层的代码,他不光控制还要校验数据!以前理解错啦
- JSF JQUERY 使用datepicker
- function函数的使用
- 高通董事长:努力降低智能手机价格
- 设计师和开发人员更快完成工作需求的35个惊人的jquery插件教程(下)
- HTML+CSS+JS实现 ❤️canvas 3D立体图片相册幻灯片❤️
- php基础教程(二):基础语法
- js类型判断(数字、0、、undefined、null)
- string返回第n个字符_Programming in Lualua学习第13期 Lua字符串库
- 国内国外最好的java开发论坛及站点 [转]
- Atitit 获取mp3音乐文件的音乐名与歌手结构化元数据 nlp java 目录 1.1. 一、MP3文件的元数据	1 1.2. MP3文件的数据结构以及为mp3内嵌歌词的代码 	3 1.3.
- LPC11XX驱动LCD1602程序
- easydarwin php,EasyDarwin返回401 Unauthorized解决方法
- java盘古分词_盘古分词-开源中文分词组件 搜索引擎
- 100M 免费 ASP + Access 空间 100M 免费 php+mysql 空间
- python实验报告实验目的_20192217 实验一《Python程序设计》实验报告
- 操作系统:存储器管理(下)