阿里云搭建Gogs

1.进入宝塔添加数据库阿里云搭建Gogs

=================================================================================
2.远程登录阿里云,并创建一个名为Git的账户
sudo adduser git
阿里云搭建Gogs

=================================================================================
3.下载 Gogs包并解压

sudo apt-get install unzip
阿里云搭建Gogs
su git
阿里云搭建Gogs
unzip linux_amd64.zip
阿里云搭建Gogs

=================================================================================
4.复制gogs配置文件
su root
sudo cp /home/gitgogs/scripts/init/debian/gogs /etc/init.h/

阿里云搭建Gogs

=================================================================================
5.启动gogs服务
cd /home/git/gogs/
./gogs web
阿里云搭建Gogs

=================================================================================
6.进入宝塔—>安全,放行3000端口
阿里云搭建Gogs

=================================================================================
7.登录git,首次登录需要配置相关信息
阿里云搭建Gogs

=================================================================================

8.配置完成后登录进行账号注册阿里云搭建Gogs

=================================================================================

9.创建完成,此时就可以将需要托管的代码上传啦阿里云搭建Gogs