gogs快速搭建个人代码仓库 置顶

一.环境
在阿里最低配置的Ubuntu系统中搭建,因为公司用的gogs搭建的git仓库,还很不错,而且消耗内存比较小。

阿里云ECS服务器 Ubuntu 16.04.2(1核cpu 、1G内存 、 1M带宽 、 40G系统盘)

二、安装Gogs所需环境
1.安装nginx

sudo apt-get install nginx
1
如果报异常:

root@iZuf65yda1tq4hu68dttphZ:/usr/local# sudo apt-get install nginx
sudo: unable to resolve host iZuf65yda1tq4hu68dttphZ
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nginx

//则需要先更新sudo apt-get update

sudo apt-get update

1
2
3
4
5
6
7
8
9
10
11
2.安装git

sudo apt-get install git
1
3.安装MySQL

sudo apt-get install mysql-server
1
4.进入数据库

mysql -u root
1
文章知识点与官方知识档案匹配,可进一步学习相关知识
Git技能树首页概览6957 人正在系统学习中


emer 发布于  2024-3-3 14:32