Linux如何搭建WMS地图服务,使用Gogs搭建自定义的GIT服务器

首先进入官网下载对应的安装包,根据不同的操作系统下载不同的安装包:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

gogs.png

Windows搭建过程

从图中我们可以看出,windows的版本分为mws,这里wms表示提供内置 Windows 服务支持,如果您使用 NSSM 请使用另外一个版本。

解压后的文件目录下找到gogs.exe文件所在文件夹,启动cmd命令输入进入到该目录执行以下命令启动gogs管理界面:

gogs web

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

gogsweb.png

此时我们看到gogs的服务已经启动,并且已经监听了对应的3000端口,我们在浏览器中输入http://localhost:3000/,即可打开管理界面:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

1.png

第一次安装按照要求,得配置相应的信息,比如数据库选择,仓库地址,系统用户等等这些信息,主要还是数据库的配置,完成配置之后:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

2.png

默认设置一个管理员账号(可选设置),至于具体的其他配置信息具体含义,就参考官网的配置手册,可以详细的知道每个配置项的含义。

点击“立即安装”,可能遇到的问题:

1.没有打开数据库服务导致连接失败,这个时候需要先打开数据库服务,比如mysql:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

mysql.png

如上图所示,数据库服务打开成功!

2.数据库主机选择填写不正确导致错误:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

eeror1.png

将数据库主机改成127.0.0.1:3306即可。

3.数据库不存在的问题:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

eeror2.png

打开mysql操作,创建对应的数据库即可:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

12.png

再次点击“立即安装”,就会跳转到首页,可以选择注册,登录等,登录后的界面:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

manager.png

至此我们自己的windows搭建git服务器已经完成,我们可以在管理界面创建项目仓库,和分配权限等等操作:

1.创建仓库:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

create.png

2.授权协作者,在仓库设置中:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

授权.png

OK!基本的操作大概就是这样了,剩下的管理操作还需继续深入的学习。

Linux搭建过程

我使用的linux版本是:Ubuntu15.0 32位,所以下载linux_amd64.zip

解压当前下载好的压缩包:

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

unzip.png

解压命令:

unzip linux_386.zip

解压成功之后,进入到gogs文件夹,执行启动服务的命令:

./gogs web

12485f2d9bcf?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

linux2.jpg

剩下的配置项,操作都和上面说的windows一致,没有区别!

至此,就已经搭建好了Linux的git自定义服务器了!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值