简单几步配置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]: yThe 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] :yIs the selection above correct? [Y/n]: y----------------------------------------------------------------------------
Installation folderPlease, choose a folder to install Bitnami Gitlab StackSelect a folder [/opt/gitlab-7.6.2-0]: ----------------------------------------------------------------------------
Create Admin accountBitnami Gitlab Stack admin user creationEmail Address [user@example.com]: haochuang@uetest.comLogin [user]: haochuangPassword :
Please confirm your password :
Warning: Please use alphanumeric characters only
Press [Enter] to continue:
----------------------------------------------------------------------------
Create Admin accountBitnami Gitlab Stack admin user creationEmail 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 SettingsThis 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 SettingsThis 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 []: haochuangPassword :
Re-enter :
SMTP Host []: smtp.exmail.qq.comSMTP Port []: 25Secure 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.Installing0% ______________ 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.confPassengerPreStart http://127.0.0.1:900012/opt/gitlab-7.6.2-0/apps/gitlab/htdocs/config/gitlab.ymlport: 9000/opt/gitlab-7.6.2-0/apps/gitlab/gitlab-shell/config.ymlhttp://yourIP:90006/opt/gitlab-7.6.2-0/apps/gitlabci/gitlabci-runner/config.ymlurl: 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.confListen 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

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

转载于:https://www.cnblogs.com/haochuang/p/4221860.html

简单几步配置gitlab相关推荐

  1. 简单 3 步配置 Google Play Billing | 系列分享

    作者 / Caren Chang, Android Engineer Google Play Billing 系列内容是专门为中文开发者开辟的系列分享,着重讲解中国开发者对 Play Billing ...

  2. 配置gitlab环境实现代码管理及Web Hook测试和ldap认证

    前沿: 对于代码库感触有点多,用过redmine(差点忘了名字),还有就是gitweb,最后就是gitlab  . gitlab是我用的很舒服的东西,在2012就接触了,当时开发水平见不得人,主要上传 ...

  3. 在windows环境下配置gitlab本地代码库

    题外话:最近在从事一个NLP算法课题.因为我负责的模块偏重弄理论,更倾向于做为团队竞争力的技术储备,故而与其他模块的交流并不多.一个人做久了,发现欠下的技术债越来越多,要是不好好整理代码,之后的窟窿可 ...

  4. Window ChromeDriver(简单4步完成)

    Window 下配置ChromeDriver(简单4步完成) 第一步:当然是下载最新的chrome浏览器版本 https://www.google.cn/chrome/ 第二步:下载最新的Chrome ...

  5. mysql插入数据返回主键值_Mysql千万级别数据批量插入只需简单三步!

    第一步:配置my.ini文件 文件中配置 bulk_insert_buffer_size=120M 或者更大 将insert语句的长度设为最大. Max_allowed_packet=1M Net_b ...

  6. 云信小课堂丨简单四步,快速搭建协同办公系统!

    Vol. 8 企业作为社会分工参与的主体,在自身发展以及内部协作中,势必会涉及到各类自有技术和商业信息的互动与交流,而这类信息由于有着高度的保密性和隐私性,所以如微信.QQ 等通用的即时通讯工具很难满 ...

  7. python人脸识别程序如何嵌入到app_只用Python就能写安卓,简单几步实现人脸识别的App...

    最近闲来无事,研究研究在安卓上跑Python. 想起以前玩过的kivy技术,kivy[1]是一个跨平台的UI框架.当然对我们最有用的是,kivy可以把python代码打包成安卓App.但是由于安卓打包 ...

  8. 简单几步实现内网穿透

    场景 为了避免阐述过多理论,我们直接从需求场景入手,来了解一下为什么需要内网穿透? 小明是少数派的一位咕咕作者,在家里电脑稿某文稿了一半,到公司后打算摸鱼继续稿,怎么办呢(此处假定他没有使用任何云同步 ...

  9. 简单三步快速实现内网穿透

    都知道现在基本处于大内网环境,运营商一般不会分配给到公网IP.但有些时候需要在公网环境下访问内网,如: 远程连接内网电脑 远程公司内网服务器.数据库 远程NAS 公网访问内网web站点 ssh远程树莓 ...

  10. 简单几步,教你在服务器上实现量化交易(程序化交易)

    简单几步,教你在服务器上搭建量化交易机器人 很多同学在学习量化时会有疑虑,量化交易是个很复杂的东西,我不懂编程或者基础太差还能进行量化交易吗?在跑量化交易之前是不是需要做很长的学习准备?一件未了解的事 ...

最新文章

  1. .net数据根据字段进行分类(linq语句)
  2. 更新自定义表时的通用锁对象
  3. 百炼OJ:2750:鸡兔同笼
  4. Jenkins 从选择插件到配置详解-Gradle
  5. 【[网络流二十四题]最长不下降子序列问题】
  6. mysql替换sql中rank函数_MySQL sql Rank()函数实现
  7. 7-9 主从复制常见问题
  8. Android NDK开发从0到1
  9. MFC函数——CWnd::OnCreate
  10. window.location.href的使用方法
  11. POJ 1182 食物链(带权并查集)
  12. 阶段1 语言基础+高级_1-3-Java语言高级_05-异常与多线程_第2节 线程实现方式_14_匿名内部类方式实现线程的创建...
  13. 初识 Powershell 5.0 class
  14. 7-25 总结 Junit 测试 和断言 /ArrayList 和LinkedList 的区别/HashCode用来存放数据.
  15. XPS查看器(XPS Viewer)适用Win10系统安装说明
  16. 二维拉普拉斯方程的数值解法
  17. 微信小程序人脸识别认证-微信开放接口
  18. wps居中对齐不在中间_wps怎么把字水平居中对齐
  19. ac1900修改代理服务器,tplink ac1900路由器怎么设置?
  20. 如何搭建经营分析看板

热门文章

  1. 【同余最短路】P3403+P2371+P2662+牛客4853D
  2. linux 字符驱动 tty,打通linux的tty驱动的数据链路
  3. 4g网络切换软件_游戏掉线坑队友?OPPO Reno网络切换超快,上分吃鸡更稳
  4. php获取cookie值的方法,怎么获取cookie的值
  5. 时间序列的分析和预测ARIMA
  6. 深度神经网络 分布式训练 动手学深度学习v2
  7. Wide Deep 模型详解
  8. Container With Most Water(C++)
  9. 代码修改及模型复查 12-6
  10. 凸优化有关的数值线性代数知识 2求解已经因式分解的矩阵的线性方程组