简单几步配置gitlab
简单几步配置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的更多相关文章
- Ubuntu 简单安装和配置 GitLab
使用的 Ubuntu Server 16.04 LTS 版本,服务器托管在 Azure 上,用的 1 元试用 1 个月服务器订阅(1500 元额度). 安装命令(推荐使用): curl -sS htt ...
- 简单三步同步你的 VSCode 用户配置
https://www.cnblogs.com/knight-errant/p/10444777.html 设备重装,换设备,VSCode 又要重新配置了?不不不,简单三步,让你的 VSCode 配置 ...
- Ubuntu Docker 安装和配置 GitLab CI 持续集成
相关文章: Ubuntu Docker 简单安装 GitLab 劈荆斩棘:Gitlab 部署 CI 持续集成 目的:在 Ubuntu 服务器上,使用 Docker 安装和配置 GitLab Runne ...
- 配置GitLab Push 自动触发Jenkins构建
配置GitLab Push 自动触发Jenkins构建 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 本篇博客是对之前的笔记:https://www.cnblogs.com/yin ...
- Spring Boot项目简单上手+swagger配置+项目发布(可能是史上最详细的)
Spring Boot项目简单上手+swagger配置 1.项目实践 项目结构图 项目整体分为四部分:1.source code 2.sql-mapper 3.application.properti ...
- Centos 7.x 配置Gitlab
GitLab 是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的web服务. 1. 安装并配置必要的依赖关系 如果你想使用 Postfix 发送邮件,请在安装过程中根 ...
- Hexo + Serverless Framework,简单三步搭建你的个人博客
很多人都想拥有自己的个人博客,还得看起来漂亮.酷酷的.尤其对开发者来说,不仅可以分享技术(装)心得(逼),面试的时候还能成为加分.这里介绍两款好用的神器,不用忙前(前端)忙后(后端),简单3min即可 ...
- 【开源】简单4步搞定QQ登录,无需什么代码功底【无语言界限】
说17号发超简单的教程就17号,qq核审通过后就封装了这个,现在放出来~~ 这个是我封装的一个开源项目:https://github.com/dunitian/LoTQQLogin ————————— ...
- 一个简单的零配置命令行HTTP服务器
http-server 是一个简单的零配置命令行HTTP服务器, 基于 nodeJs. 如果你不想重复的写 nodeJs 的 web-server.js, 则可以使用这个. 安装 (全局安装加 -g) ...
随机推荐
- NXP QN9020
NXP的这个BLE蓝牙方案也很有趣, 一起研究. 这个函数在app_gpa_task.c里面 ***************************************************** ...
- Linux下jdk的配置
首先将*.tar.gz压缩包解压 命令:tar -xzvf *.tar.gz假设得到的文件夹为java 将其移动到/usr/中 命令为:sudo mv java /usr/ 然后设置环境变量: sud ...
- Git几块区域关系
- awr报告生成方法
以上是在linux的oracle的命令截图. 如果是在unix的命令,则需要在命令前面加上\符号,变成了\@$ORACLE_HOME/rdbms/admin/awrrpt.sql
- samba服务器源码安装(非rpm)
首先我们创建一个文档,边安装配置samba,边写教程. 从www.samba.org下载samba最新源码包,我下载的是samba-3.0.7.tar.gz,把它放在我的目录的中/root/lova/ ...
- AngularJS 实现的输入自动完成补充功能
1.首先需要引入:angucomplete.js第三方库 2.增加model : var app = angular.module('app', ["angucomplete"]) ...
- Oracle关闭session锁
select session_id from v$locked_object;//找到锁的sessionId SELECT * FROM v$session //查看该sessionId以及对应的 ...
- linux下使用tar命令(转)
转至: http://www.cnblogs.com/li-hao/archive/2011/10/03/2198480.html 解压语法:tar [主选项+辅选项] 文件或者目录 使用该命令时,主 ...
- Unix下五种IO模型
http://blog.chinaunix.net/uid-25324849-id-247813.html 1. I/O模型 Unix下共有五种I/O模型 a. 阻塞I/O b. 非阻塞I/O c. ...
- linux 文件操作命令
目录操作命令 命令格式 命令 [-选项] [-参数] ls -la /etc 有多个选项时可以合并 ls命令: -a (all) 显示所有文件,包括隐藏文件,那是用.开头的文件 为什么要隐藏(这是个系 ...