git 安装目录:

drwxr-xr-x  14 root root  4096 Oct 13 21:17 apache
drwxr-xr-x  10 root root  4096 Jan  2 23:50 gitlab
drwxr-xr-x   2 root root  4096 May  8  2017 IBM
drwx------.  2 root root 16384 May  4  2014 lost+found
drwxr-xr-x   2 root root  4096 Oct 13 22:00 rsync_log
drwxrwx--x   3 root root  4096 May  5  2014 symantec
drwxr-xr-x   3 root root  4096 Oct 13 21:17 zabbix
[root@ opt]# cd gitlab/
[root@ gitlab]#
[root@ gitlab]# ll
total 1880
drwxr-xr-x  2 root root    4096 Oct 27 19:17 bin
drwxr-xr-x 19 root root    4096 Nov 21 09:30 embedded
drwxr-xr-x  4 root root    4096 Nov 21 09:30 etc
drwxr-xr-x  2 root root    4096 Oct 27 19:36 init
-rw-r--r--  1 root root 1858327 Mar  8  2017 LICENSE
drwxr-xr-x  2 root root    4096 Oct 27 19:17 LICENSES
drwxr-xr-x  2 root root    4096 Oct 27 19:36 service
drwxr-xr-x  8 root root    4096 Oct 27 19:36 sv
drwxr-xr-x  3 root root    4096 Oct 27 19:36 var
-rw-r--r--  1 root root   19560 Mar  8  2017 version-manifest.json
-rw-r--r--  1 root root    8696 Mar  8  2017 version-manifest.txt
[root@ gitlab]#
[root@ gitlab]# [root@ gitlab]# cd bin
[root@ bin]# ll
total 20
-rwxr-xr-x 1 root root 1262 Mar  8  2017 gitlab-ctl
-rwxr-xr-x 1 root root  250 Mar  8  2017 gitlab-healthcheck
-rwxr-xr-x 1 root root  629 Mar  8  2017 gitlab-psql
-rwxr-xr-x 1 root root 1226 Mar  8  2017 gitlab-rails
-rwxr-xr-x 1 root root 1225 Mar  8  2017 gitlab-rake
[root@ bin]# ls
gitlab-ctl  gitlab-healthcheck  gitlab-psql  gitlab-rails  gitlab-rake

进入bin下面:

gitlab-ctl脚本是sh

#!/bin/bash
#
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# Copyright:: Copyright (c) 2014 GitLab.com
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
## Ensure the calling environment (disapproval look Bundler) does not infect our
# Ruby environment if gitlab-ctl is called from a Ruby script.
for ruby_env_var in RUBYOPT \BUNDLE_BIN_PATH \BUNDLE_GEMFILE \GEM_PATH \GEM_HOME
dounset $ruby_env_var
done# This bumps the default svwait timeout from 7 seconds to 30 seconds
# As documented at http://smarden.org/runit/sv.8.html
export SVWAIT=30/opt/gitlab/embedded/bin/omnibus-ctl gitlab /opt/gitlab/embedded/service/omnibus-ctl $@

gitlab-rail:

#!/bin/sh# Unset ENV variables that might interfere with
# omnibus-gitlab ruby env (looking at you rvm)
for ruby_env_var in RUBYOPT \BUNDLE_BIN_PATH \BUNDLE_GEMFILE \GEM_PATH \GEM_HOME
dounset $ruby_env_var
doneerror_echo()
{echo "$1" 2>& 1
}gitlab_rails_rc='/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc'
if ! [ -f ${gitlab_rails_rc} ] ; thenerror_echo "$0 error: could not load ${gitlab_rails_rc}"error_echo "Either you are not allowed to read the file, or it does not exist yet."error_echo "You can generate it with:   sudo gitlab-ctl reconfigure"exit 1
fi. ${gitlab_rails_rc}cd /opt/gitlab/embedded/service/gitlab-railsif [ -n "$NO_PRIVILEGE_DROP" ]; thenprivilege_drop=''
elif [ "$(id -n -u)" = "${gitlab_user}" ] ; then# We are already running at the intended privilege; don't try to drop# privileges again because only root can do that (and we are apparently not# root!).privilege_drop=''
elseprivilege_drop="-u ${gitlab_user}"
fiexec /opt/gitlab/embedded/bin/chpst -e /opt/gitlab/etc/gitlab-rails/env ${privilege_drop} -U ${gitlab_user} /opt/gitlab/embedded/bin/bundle exec rails "$@"

启动git,暂停git和重启git
# Start all GitLab components
sudo gitlab-ctl start

# Stop all GitLab components
sudo gitlab-ctl stop

# Restart all GitLab components
sudo gitlab-ctl restart

git 安装的数据或者配置 被根目录下var有映射:

[root@ ~]# cd /var
[root@ var]# ll
total 84
drwxr-xr-x.  2 root root  4096 May  4  2014 account
drwxr-xr-x. 10 root root  4096 Jul 24  2014 cache
drwxr-xr-x.  2 root root  4096 Sep  1 08:27 crash
drwxr-xr-x.  4 root root  4096 May  8  2017 db
drwxr-xr-x.  3 root root  4096 May  4  2014 empty
drwxr-xr-x.  2 root root  4096 Jun 28  2011 games
drwxr-xr-x. 27 root root  4096 May  7  2015 lib
drwxr-xr-x.  2 root root  4096 Jun 28  2011 local
drwxrwxr-x.  5 root lock  4096 Jan  3 03:14 lock
drwxr-xr-x.  6 root root  4096 Jan  1 03:47 log
drwx------.  2 root root 16384 May  4  2014 lost+found
lrwxrwxrwx.  1 root root    10 May  4  2014 mail -> spool/mail
drwxr-xr-x.  2 root root  4096 Jun 28  2011 nis
drwxr-xr-x.  3 root root  4096 Oct 27 19:41 opt
drwxr-xr-x.  2 root root  4096 Jun 28  2011 preserve
drwxr-xr-x. 22 root root  4096 Dec 28 19:32 run
drwxr-xr-x. 12 root root  4096 May  4  2014 spool
drwxrwxrwt.  2 root root  4096 Dec 28 19:32 tmp
drwxr-xr-x.  2 root root  4096 Jun 28  2011 yp
[root@ var]# cd opt/
[root@ opt]# ll
total 4
drwxr-xr-x 12 root root 4096 Nov 21 09:31 gitlab
[root@ opt]# cd gitlab/
[root@ gitlab]# ll
total 44
drwx------ 2 git          git        4096 Dec  4 19:38 backups
-rw------- 1 root         root         38 Oct 27 19:42 bootstrapped
drwx------ 3 git          git        4096 Oct 26 11:01 git-data
drwxr-xr-x 3 git          git        4096 Oct 27 19:41 gitlab-ci
drwxr-xr-x 9 git          git        4096 Nov 21 09:31 gitlab-rails
drwx------ 2 git          root       4096 Nov 21 09:31 gitlab-shell
drwxr-x--- 2 git          gitlab-www 4096 Jan  3 15:57 gitlab-workhorse
drwx------ 3 root         root       4096 Jan  3 16:07 logrotate
drwxr-x--- 9 root         gitlab-www 4096 Jan  3 15:57 nginx
drwxr-x--- 2 gitlab-redis git        4096 Jan  3 15:57 redis
-rw-r--r-- 1 root         root         40 Oct 27 19:42 trusted-certs-directory-hash
[root@ gitlab]# 

应用的日志被存储在/var/log下面

其他路径:

[root@ gitlab]# cd backups/
[root@ backups]# ll
total 0
-rw-r--r-- 1 git git 0 Oct 26 10:37 1
-rw-r--r-- 1 git git 0 Dec  4 19:38 2
[root@ backups]#
[root@ backups]#
[root@ backups]# cd ..
[root@ gitlab]# cd git-data/
[root@ git-data]# ll
total 4
drwxrws--- 5 git git 4096 Dec  4 14:45 repositories
[root@ git-data]# cd repositories/
[root@ repositories]# ll
total 12
drwxrwx---  4 git git 4096 Nov 21 09:05 16020099
drwxrwx---  4 git git 4096 Dec  4 14:45 liuhaitao
drwxrwx--- 95 git git 4096 Dec  4 19:17 test1
[root@ repositories]# cd ..
[root@ git-data]# cd ..
[root@ gitlab]# cd gitlab-ci
You have new mail in /var/spool/mail/root
[root@ gitlab-ci]# ll
total 4
drwx------ 2 git git 4096 Oct 20 15:40 builds
[root@ gitlab-ci]# ls
builds
[root@ gitlab-ci]# cd builds/
[root@ builds]# ls
[root@ builds]# ll
total 0
[root@ builds]# cd ..
[root@ gitlab-ci]# cd ..
[root@ gitlab]# cd gitlab-rails/
[root@ gitlab-rails]# ll
total 40
drwx------ 2 git  root       4096 Jan  3 15:54 etc
-rw-r--r-- 1 root root          8 Oct 27 19:42 REVISION
-rw-r--r-- 1 root root         58 Oct 27 19:42 RUBY_VERSION
drwxr-x--x 5 git  gitlab-www 4096 Oct 26 11:53 shared
drwxr-x--- 2 git  gitlab-www 4096 Jan  3 15:57 sockets
drwx------ 3 git  root       4096 Nov 12 18:16 tmp
drwx------ 2 git  root       4096 Oct 27 19:42 upgrade-status
drwx------ 2 git  git        4096 Oct 20 15:40 uploads
-rw-r--r-- 1 root root          7 Oct 27 19:42 VERSION
drwx------ 2 git  root       4096 Oct 27 19:42 working
[root@ gitlab-rails]# cd etc
[root@ etc]# ll
total 48
-rw-r--r-- 1 root root   399 Oct 27 19:42 database.yml
-rw-r--r-- 1 root root   129 Oct 27 19:42 gitlab_shell_secret
-rw-r--r-- 1 root root    45 Oct 27 19:42 gitlab_workhorse_secret
-rw-r--r-- 1 root root 14577 Nov 21 09:31 gitlab.yml
-rw-r--r-- 1 root root  1383 Oct 27 19:42 rack_attack.rb
-rw-r--r-- 1 root root    51 Oct 27 19:42 resque.yml
-rw-r--r-- 1 root root   619 Oct 27 19:42 secrets.yml
-rw-r--r-- 1 root root   666 Oct 27 19:42 smtp_settings.rb
-rw-r--r-- 1 root root  1612 Jan  3 15:54 unicorn.rb
[root@ etc]# 

在 gitlab-rails下面的etc中存放这配置文件和git ruby 配置文件,比如unicorn.rb文件,database.yml文件;gitlab.yml文件等

[root@ gitlab-rails]# cd ..
[root@ gitlab]# ll
total 44
drwx------ 2 git          git        4096 Dec  4 19:38 backups
-rw------- 1 root         root         38 Oct 27 19:42 bootstrapped
drwx------ 3 git          git        4096 Oct 26 11:01 git-data
drwxr-xr-x 3 git          git        4096 Oct 27 19:41 gitlab-ci
drwxr-xr-x 9 git          git        4096 Nov 21 09:31 gitlab-rails
drwx------ 2 git          root       4096 Nov 21 09:31 gitlab-shell
drwxr-x--- 2 git          gitlab-www 4096 Jan  3 15:57 gitlab-workhorse
drwx------ 3 root         root       4096 Jan  3 16:07 logrotate
drwxr-x--- 9 root         gitlab-www 4096 Jan  3 15:57 nginx
drwxr-x--- 2 gitlab-redis git        4096 Jan  3 15:57 redis
-rw-r--r-- 1 root         root         40 Oct 27 19:42 trusted-certs-directory-hash
[root@sncdpreweb73 gitlab]# cd gitlab-shell/
[root@sncdpreweb73 gitlab-shell]# ll
total 4
-rw-r--r-- 1 root root 1567 Oct 27 19:42 config.yml
[root@ gitlab-shell]# cd ..
[root@ gitlab]# cd gitlab-workhorse/
[root@ gitlab-workhorse]# ll
total 4
srwxrwxrwx 1 git  git   0 Jan  3 15:57 socket
-rw-r--r-- 1 root root 40 Oct 27 19:42 VERSION
[root@ gitlab-workhorse]# cd ..
[root@ gitlab]# cd logrotate/
[root@ logrotate]# ll
total 12
-rw-r--r-- 1 root root  425 Oct 27 19:42 logrotate.conf
drwx------ 2 root root 4096 Nov 21 09:31 logrotate.d
-rw-r--r-- 1 root root  842 Jan  3 16:07 logrotate.status
[root@ logrotate]# cd ..
[root@ gitlab]#

git 安装目录与服务的暂停与启动相关推荐

  1. 查看git安装目录_一、Linux和Windows下安装Git

    centos7中安装Git 简单粗暴版 查看是否安装了git git --version #查看git版本信息 如果提示未找到命令,则表示没有安装 如果安装了git,但是版本过低,则使用该命令移除原来 ...

  2. SQL Server 2019安装错误0x80004005 服务没有及时响应启动或控制请求详细解决方法

    借三年半以来第一次彻底重装系统的契机,时隔很久写一篇软件安装文章.SQL Server 在我看来是 Windows 系统最难安装的软件,几乎没有之一.此前的系统是通过一次非彻底的重装系统成功安装了 S ...

  3. 安装SQL2019 提示“服务没有及时响应启动或控制请求”

    得到一个数据库需要在本地还原,但是发现是2019的数据库,本地只有2012的版本的sql Server数据库,没得法,只有重新安装一个sql 2019 的. 拿着之前下好的sql 2019 安装包,点 ...

  4. 【开发规范】go项目开发中的[流程,git,代码,目录,微服务仓库管理,静态检查]

    文章目录 前言 一.有哪些规范我们应该遵循 二.项目开发流程 三.git的代码分支管理 1. 分支管理 2. commit规范 三.go的代码规范 四.go项目目录规范 五.微服务该采用multi-r ...

  5. linux怎么使用git安装目录,Linux系统中怎么安装Git?

    Linux Git是一个方便可用的管理器工具,起初Git就是为Linux而开发的,现在已经应用到各大系统中了.本文就来介绍一下Linux系统中怎么安装Git. 使用包管理器安装Git Git已经被所有 ...

  6. Git基础篇(二)-- Git安装与配置

    文章目录 1 下载与安装 2 Git配置 2.1 初始配置 2.2 Git项目搭建 3 和服务器同步 3.1 GitHub 3.2 Gitee 参考 1 下载与安装 1.下载 打开 Git 官网,下载 ...

  7. Git 安装及 idea 配置 Git

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1.git官网下载地址:点此跳转git官网 git具体安装不做详细叙述. 2.打开idea 点击Co ...

  8. mac下查看安装目录用路径名打开文件夹

    目录 mac下查看安装目录 mac下用路径名打开文件夹[^2] mac下查看安装目录 e.g. , 在命令行中打入which git, 就会显示git的安装位置了1 mac下用路径名打开文件夹2 在 ...

  9. Git安装失败 报The drive or UNC share you

    进行磁盘整理,导致GIT安装目录意外格式化,重新安装提示 错误1.unable to get systemconfig 错误2. The drive or UNC share you selected ...

最新文章

  1. SAP WM中阶为多个TR创建了Group后将TR从Group里删除?
  2. 虚拟机网络设置方法——转载
  3. 胡扯JS系列-匿名函数的自动运行
  4. 微博VS微信,谁更有移动优势
  5. Swift 类的使用class
  6. 怎么终止linux的次序运行程序,linux – 如何按特定顺序停止systemd服务
  7. oracle中job无法正常运行,如何排查
  8. 那些年,陪你度过最困难时光的女孩还在么?
  9. arcgis删除栅格数据波段_Web GIS课程7.2 栅格数据的概念及类型
  10. 东北大学linux程序设计考试,Linux认证考试试题及答案
  11. Codeforces Round #704 (Div. 2) D - Genius‘s Gambit 思维+构造
  12. 华为交换之间静态路由配置实例
  13. 清华张敏教授:个性化推荐研究进展(可解释性、鲁棒性和公平性)
  14. 安装 TiDB 分布式数据库
  15. js几种escape()解码与unescape()编码
  16. HTML,JS与CSS
  17. mysql导入本地文件_Mysql透过txt文件导入本地数据_mysql
  18. 计算机电源接通显示未充电怎么办,笔记本电脑显示“电源已接通,未充电”怎么办?...
  19. WIN10 动态磁盘转基本磁盘
  20. 【智慧农业】农业众筹app,共享农场土地租赁,果树家禽认养小程序,智慧农业小程序源码定制开发和二次开发哪个更合适呢?

热门文章

  1. kaggle中安装lightgbm的gpu版本
  2. SVM基本思想及入门学习(转载+自己解释为什么minL(w)变成minmaxL(a,w))
  3. IDEA下的使用git
  4. ASP.NET MVC控制器获取前端视图FORM表单的方法
  5. Android API Guides---RenderScript
  6. 基于互联网大数据的管理创新
  7. “雪崩”崩了 欧洲国际刑警组织捣毁大规模恶意软件管理平台
  8. etcd部署集群的三种方式
  9. Spark修炼之道(高级篇)——Spark源码阅读:第六节 Task提交
  10. jQuery-个人学习记录(2)