简单几步配置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. 【python cookbook】【字符串与文本】4.文本模式的匹配和查找

    问题:按照特定的文本模式进行匹配或查找 解决方法: 1.简单的文字匹配,只需使用str.find().str.startswith().str.endswith()或类似的函数即可: 2.复杂的匹配, ...

  2. laravel的安装

    安装composer http://docs.phpcomposer.com/download/ curl -sS https://getcomposer.org/installer | php mv ...

  3. HTML5与移动端Web

    概述 HTML5 提供了很多新的功能,主要有: 新的 HTML 元素,例如 section, nav, header, footer, article 等 用于绘画的 Canvas 元素 用于多媒体播 ...

  4. Spring+Mybatis+jQuery.Pagination.js异步分页及JsonConfig的使用

    在开发工作中经常用到异步分页,这里简单整理一下资料. 一.Controller方法 package com.lwj.controller; import javax.servlet.http.Http ...

  5. 浅析Java的HashCode,以及equals

    1.JDK规定,equals相等的两个对象hashCode也必须相等,这两个方法都是从Object上面继承而来的,通过观察JDK源码可以发现Object的equals方法是对2个对象的地址(逻辑地址, ...

  6. jQuery中attr() 和 prop()【转】

    Version 1.9.0 开始不建议使用 attr() 来对具有 true 和 false 两个属性的属性进行操作. 具有 true 和 false 两个属性的属性,如 checked, selec ...

  7. WinCE Show App Icon

    找个图片,例如背景透明的jpg或png,上http://www.pic2icon.com/smartphone_wince_icon_generator.php这个网站转换下. 在项目属性中,设为图标 ...

  8. [转]Rotate a table in reporting services

    转自:http://stackoverflow.com/questions/9002796/rotate-a-table-in-reporting-services 12down voteaccept ...

  9. 【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.10.Button 和 Autocomplete控件

    Button ,可以使用 <button> <input> <a>. <input> 中的不同类型,submit , radio , checkbox ...

  10. php中urlencode与rawurlencode的区别有那些呢

    urlencode 函数: 返回字符串,此字符串中除了 -_. 之外的所有非字母数字字符都将被替换成百分号(%)后跟两位十六进制数,空格则编码为加号(+).此编码与 WWW 表单 POST 数据的编码 ...