在子域安装GitLab [英] Install GitLab on Subdomain

查看:119
本文介绍了在子域安装GitLab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想上一个子域安装GitLab。我不是很熟悉Web服务器之类的东西,只有很少的知识。我目前通过 SSH admin@mysite.com 连接到子域在Mac上的终端。然后我 LS 至子站点文件夹。问题是,如果我执行:

I am trying to install GitLab on a subdomain. I am not very familiar with web servers and stuff, only very little knowledge. I am currently connected to the subdomain via ssh admin@mysite.com on the Mac's Terminal. Then I ls to the subdomain's folder. Question is if I execute:

curl -O https://downloads-packages.s3.amazonaws.com/centos-6.5/gitlab-7.4.3_omnibus.5.1.0.ci-1.el6.x86_64.rpm
sudo yum install openssh-server
sudo yum install postfix
sudo yum install cronie
sudo service postfix start
sudo chkconfig postfix on
sudo rpm -i gitlab-7.4.3_omnibus.5.1.0.ci-1.el6.x86_64.rpm

在当前文件夹。将GitLab安装或仅在当前文件夹中下载或将网站的其他子域和文件夹会受到影响?

on the current folder. Will GitLab be installed or downloaded only in the current folder or will other subdomains and folders of the site be affected?

有没有一种方法来测试百胜安装首先在当前目录?

Is there a way to test yum install first on the current directory?

推荐答案

的综合性/ RPM版本Gitlab将安装gitlab到/ opt / gitlab目录。
如果你想检查将通过RPM程序包安装的文件,你可以这样做:

The Omnibus/RPM version of Gitlab will install gitlab to the /opt/gitlab directory. If you want to check the files that will be installed by an RPM package you can do so with:

rpm -qlp gitlab-7.4.3_omnibus.5.1.0.ci-1.el6.x86_64.rpm

在你安装RPM与转-ivh gitlab * .rpm的您使用配置URL /子的:

After you install the RPM with "rpm -ivh gitlab*.rpm" you configure the URL/subdomain using the:

/etc/gitlab/gitlab.rb 

文件。
修改gitlab.rb文件后,您可以开始gitlab:

file. After amending the gitlab.rb file you can start gitlab with:

gitlab-ctl start

或用重新启动:

gitlabctl-restart

您可以配置网络地址和放大器;这gitlab / nginx的关于在gitlab.rb文件中使用external_url参数监听端口:

You can configure the web address & port that gitlab/nginx listens on using the external_url parameter in the gitlab.rb file:

external_url "https://gitlab.mydomain.com"

如果你已经有了一个Web服务器使用端口80或443,那么你可能要问(如Apache)gitlab / nginx的听80或443与其它的端口:

If you already have a webserver (such as Apache) using port 80 or port 443 then you might want to ask gitlab/nginx to listen on a port other than 80 or 443 with:

external_url "https://gitlab.mydomain.com:8443"

您可以检查如果有什么特定端口上监听使用:

You can check if anything is listening on particular ports using:

netstat -luntap | grep LISTEN

这篇关于在子域安装GitLab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆