简单几步配置gitlab

之前配置gitlab需要很多步骤,要装apache2、ruby、tomcat、mysql等一片东西。有没有更简单的方式呢?现在可以借助bitnami,简化了很多。

可以参考vpsee写的文章:http://www.vpsee.com/2012/11/install-gitlab-on-ubuntu-12-04/

cd /opt

wget https://bitnami.com/redirect/to/48156/bitnami-gitlab-7.6.2-0-linux-installer.run

./bitnami-gitlab-7.6.2-0-linux-x64-installer.run --apache_server_port 9000

步骤也可以参考:https://bitnami.com/stack/gitlab/README.txt

[root@test opt]# ./bitnami-gitlab-7.6.2-0-linux-x64-installer.run --apache_server_port 9000
The installer detects that exists a 'git' user in the system. This installer will change the configuration for this user. Do you want to continue the installation? [y/N]: y The installer detects that exists a 'gitlab_ci' user in the system. This installer will change the configuration for this user. Do you want to continue the installation? [y/N]: y ----------------------------------------------------------------------------
Welcome to the Bitnami Gitlab Stack Setup Wizard. ----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue. GitLab : Y (Cannot be edited) GitLab CI [Y/n] :y Is the selection above correct? [Y/n]: y ----------------------------------------------------------------------------
Installation folder Please, choose a folder to install Bitnami Gitlab Stack Select a folder [/opt/gitlab-7.6.2-0]: ----------------------------------------------------------------------------
Create Admin account Bitnami Gitlab Stack admin user creation Email Address [user@example.com]: haochuang@uetest.com Login [user]: haochuang Password :
Please confirm your password :
Warning: Please use alphanumeric characters only
Press [Enter] to continue:
----------------------------------------------------------------------------
Create Admin account Bitnami Gitlab Stack admin user creation Email Address [haochuang@uetest.com]: ${userEmail} Login [haochuang]: ${UserAccount} Password :${UserPasswd}
Please confirm your password :
----------------------------------------------------------------------------
Hostname that will be used to create internal URLs. If this value is incorrect,
you may be unable to access your Gitlab installation from other computers. It is
advisable to use a Domain instead of an IP address for compatibility with
different browsers. Domain [127.0.1.1]: ${ServerIP} Do you want to configure mail support? [y/N]: y ----------------------------------------------------------------------------
Configure SMTP Settings This is required so your application can send notifications via email. Default email provider: [1] GMail
[2] Custom
Please choose an option [1] : 2 ----------------------------------------------------------------------------
Configure SMTP Settings This data is stored in the application configuration files and may be visible to
others. For this reason, it is recommended that you do not use your personal
account credentials. Username []: haochuang Password :
Re-enter :
SMTP Host []: smtp.exmail.qq.com SMTP Port []: 25 Secure connection [1] None
[2] SSL
[3] TLS
Please choose an option [3] : 2 ----------------------------------------------------------------------------
Setup is now ready to begin installing Bitnami Gitlab Stack on your computer. Do you want to continue? [Y/n]: Y ----------------------------------------------------------------------------
Please wait while Setup installs Bitnami Gitlab Stack on your computer. Installing
0% ______________ 50% ______________ 100%
######################################### ----------------------------------------------------------------------------
Setup has finished installing Bitnami Gitlab Stack on your computer. Info: To access the Bitnami Gitlab Stack, go to
http://127.0.1.1:9000 from your browser.
Press [Enter] to continue:

等待完成之后,打开 http://127.0.1.1:9000/,即可正常访问。

之前我绕了弯路,参考了这里的问题解决办法:https://community.bitnami.com/t/gitlab-http-port/20767

另外,在你开始安装的时候,可以看到很多帮助信息:./bitnami-gitlab-7.6.2-0-linux-x64-installer.run --help

如果你已经安装完成了,只是由于端口冲突,准备修改端口的话,也可以这么做:

1.停掉服务,修改如下配置文件:

/opt/gitlab-7.6.2-0/properties.ini:

apache_server_port=9000

/opt/gitlab-7.6.2-0/apps/gitlab/conf/httpd-app.conf

PassengerPreStart http://127.0.0.1:900012

/opt/gitlab-7.6.2-0/apps/gitlab/htdocs/config/gitlab.yml

port: 9000

/opt/gitlab-7.6.2-0/apps/gitlab/gitlab-shell/config.yml

http://yourIP:90006

/opt/gitlab-7.6.2-0/apps/gitlabci/gitlabci-runner/config.yml

url: http://yourIP:90006

/opt/gitlab-7.6.2-0/apps/gitlabci/htdocs/config/application.yml

'http://yourIP:9000/'

/opt/gitlab-7.6.2-0/apache2/conf/httpd.conf

Listen 9000

2.重启服务:

/opt/gitlab-7.6.2-0/ctlscript.sh restart

3.tingzhi停止服务:

/opt/gitlab-7.6.2-0/ctlscript.sh stop

4.卸载gitlab:

./opt/gitlab-7.6.2-0/uninstall

5.查看进程:

ps -ef |grep httpd

如果还有其他问题,请在这里找日志:

/opt/gitlab-7.6.2-0/apache2/logs,主要查看  error_log 日志,根据错误信息分析问题,并逐个解决。

--------------------------------

至于使用方面,其实很简单。

给几个常用命令,供参考

Git global setup

git config --global user.name "haochuang"
git config --global user.email "haochuang@aol.com"

Create a new repository

mkdir hao-homepage
cd tw-homepage
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin git@serverip:haochuang/hao-homepage.git
git push -u origin master

Push an existing Git repository

cd existing_git_repo
git remote add origin git@serverip:haochuang/hao-homepage.git
git push -u origin master

接下来,就可以欢天喜地的使用了:-)

简单几步配置gitlab的更多相关文章

  1. Ubuntu 简单安装和配置 GitLab

    使用的 Ubuntu Server 16.04 LTS 版本,服务器托管在 Azure 上,用的 1 元试用 1 个月服务器订阅(1500 元额度). 安装命令(推荐使用): curl -sS htt ...

  2. 简单三步同步你的 VSCode 用户配置

    https://www.cnblogs.com/knight-errant/p/10444777.html 设备重装,换设备,VSCode 又要重新配置了?不不不,简单三步,让你的 VSCode 配置 ...

  3. Ubuntu Docker 安装和配置 GitLab CI 持续集成

    相关文章: Ubuntu Docker 简单安装 GitLab 劈荆斩棘:Gitlab 部署 CI 持续集成 目的:在 Ubuntu 服务器上,使用 Docker 安装和配置 GitLab Runne ...

  4. 配置GitLab Push 自动触发Jenkins构建

    配置GitLab Push 自动触发Jenkins构建 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 本篇博客是对之前的笔记:https://www.cnblogs.com/yin ...

  5. Spring Boot项目简单上手+swagger配置+项目发布(可能是史上最详细的)

    Spring Boot项目简单上手+swagger配置 1.项目实践 项目结构图 项目整体分为四部分:1.source code 2.sql-mapper 3.application.properti ...

  6. Centos 7.x 配置Gitlab

    GitLab 是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的web服务. 1. 安装并配置必要的依赖关系 如果你想使用 Postfix 发送邮件,请在安装过程中根 ...

  7. Hexo + Serverless Framework,简单三步搭建你的个人博客

    很多人都想拥有自己的个人博客,还得看起来漂亮.酷酷的.尤其对开发者来说,不仅可以分享技术(装)心得(逼),面试的时候还能成为加分.这里介绍两款好用的神器,不用忙前(前端)忙后(后端),简单3min即可 ...

  8. 【开源】简单4步搞定QQ登录,无需什么代码功底【无语言界限】

    说17号发超简单的教程就17号,qq核审通过后就封装了这个,现在放出来~~ 这个是我封装的一个开源项目:https://github.com/dunitian/LoTQQLogin ————————— ...

  9. 一个简单的零配置命令行HTTP服务器

    http-server 是一个简单的零配置命令行HTTP服务器, 基于 nodeJs. 如果你不想重复的写 nodeJs 的 web-server.js, 则可以使用这个. 安装 (全局安装加 -g) ...

随机推荐

  1. ARM、Intel、MIPS处理器啥区别?看完全懂了【转】

    转自:http://news.mydrivers.com/1/472/472317.htm 安卓支持三类处理器(CPU):ARM.Intel和MIPS.ARM无疑被使用得最为广泛.Intel因为普及于 ...

  2. 兼容IE, Chrome的ajax function

    gAjax.js var gAjax = (function () { /* paramObj:{ url: request url, method: GET or POST, encode: cha ...

  3. Intellij IDEA

    http://1358440610-qq-com.iteye.com/blog/2102195

  4. Asp.net Vnext Routing

    概述 本文已经同步到<Asp.net Vnext 系列教程 >中] ASP.NET 路由系统是主要负责两个操作: 它将传入的 HTTP 请求映射到路由处理程序给出的路由的集合. 路由系统的 ...

  5. 使用pt-heartbeat检测主从复制延迟

    不要用SECONDS_BEHIND_MASTER来衡量MYSQL主备的延迟时间,原因如下: A:备库Seconds_behand_master值是通过将服务器当前的时间戳与二进制日志中的事件的时间戳对 ...

  6. EFsql笔记

    like的语法 string[] cities = { "London", "Madrid" }; IQueryable<Customer> cus ...

  7. 20150608_Andriod 发布问题处理

    参考地址: http://blog.csdn.net/cxc19890214/article/details/39120415 问题:当我们开发完成一个Android应用程序后,在发布该应用程序之前必 ...

  8. hdu4914 Linear recursive sequence

    用矩阵求解线性递推式通项 用fft优化矩阵乘法 首先把递推式求解转化为矩阵求幂,再利用特征多项式f(λ)满足f(A) = 0,将矩阵求幂转化为多项式相乘, 最后利用傅里叶变换的高效算法(迭代取代递归) ...

  9. Ultra-QuickSort 分类: POJ 排序 2015-08-03 15:39 2人阅读 评论(0) 收藏

    Ultra-QuickSort Time Limit: 7000MS   Memory Limit: 65536K Total Submissions: 48111   Accepted: 17549 ...

  10. Python学习笔记-Day2-Python基础之元组操作

    元组的常用操作包括但不限于以下操作: 元组的索引,计数等 这里将对列表的内置操作方法进行总结归纳,重点是以示例的方式进行展示. 使用type获取创建对象的类 type(tuple) 使用dir获取类的 ...