In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Gitlab official website https://about.gitlab.com/gitlab-com/
Official installation documentation https://about.gitlab.com/installation/?version=ce#centos-7 (ce/ee)
Server memory is required to be no less than 2g
Foreign countries are slow, so we use domestic sources.
Vim / etc/yum.repos.d/gitlab.repo// adds the following
[gitlab-ce]
Name=Gitlab CE Repository
Baseurl= https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
Gpgcheck=0
Enabled=1
Yum install-y gitlab-ce
Gitlab-ctl reconfigure
Netstat-lnpt / / View listening port
Gitlab-ctl stop/restart/start/status
The browser accesses gitlab and type ip.
Note that if you access 502, pay attention to whether there are port conflicts. It is best to shut down all previously built services before starting gitlab.
The default administrator, root, has no password, which allows us to define a password
Gitlab Common Command https://www.cnyunwei.cc/archives/1204
Gitlab backup gitlab-rake gitlab:backup:create
The backup directory is in / var/opt/gitlab/backups
Gitlab resumes and stops service first gitlab-ctl stop unicorn; gitlab-ctl stop sidekiq
Gitlab-rake gitlab:backup:restore BACKUP=xxxxx (here is a number, that is, the prefix of the backup file)
For example:
Gitlab-rake gitlab:backup:restore BACKUP=1511704184_2017_11_26_10.2.1
Restart the service gitlab-ctl start
Rpm installation: (centos6.5)
Installation dependencies:
Yum install curl openssh-server openssh-clients postfix cronie
Rpm address:
Https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-8.0.5-ce.0.el6.x86_64.rpm
Download:
Wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-8.0.5-ce.0.el6.x86_64.rpm
Installation:
Rpm-ivh gitlab-ce-8.0.5-ce.0.el6.x86_64.rpm
Gitlab-ctl reconfigure
Start:
Gitlab-ctl start
Sinicization:
For other versions, please refer to: http://blog.csdn.net/wh311212/article/details/72627803
Download the Sinicization package in version # 8 and turn it into Chinese
[root@git hanhua] # git clone https://gitlab.com/larryli/gitlab.git Gitlab-cn & & cd Gitlab-cn
# back up the gitlab-rails directory under the / opt/gitlab/embedded/service directory, which is mainly about web applications
# backup
[root@git Gitlab-cn] #\ cp-rf / opt/gitlab/embedded/service/gitlab-rails {, .ori}
# disable the gitlab service
[root@git Gitlab-cn] # gitlab-ctl stop
# start Sinicization
[root@git gitlab_pack] #\ cp-rf.. / Gitlab-cn/* / opt/gitlab/embedded/service/gitlab-rails/
Test whether the Sinicization is successful
[root@git ~] # gitlab-ctl start
Ok: run: gitlab-workhorse: (pid 1407) 263s
Ok: run: logrotate: (pid 1403) 263s
Ok: run: nginx: (pid 1404) 263s
Ok: run: postgresql: (pid 1405) 263s
Ok: run: redis: (pid 1402) 263s
Ok: run: sidekiq: (pid 1400) 263s
Ok: run: unicorn: (pid 1401) 263s
Log in
Http://192.168.201.131/users/sign_in
The method of changing the address from Localhost to actual IP after the creation of GitLab project
Just go to the terminal and modify the following files.
Vim / opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
GitLab settings
Gitlab:
Web server settings (note: host is the FQDN, do not include http://)host: localhost > > here change to the IP of the host port: 80https: false# Uncommment this line below if your ssh host is different from HTTP/HTTPS one# (you'd obviously need to replace ssh.host_example.com with your own host). # Otherwise, ssh host will be set to the `host: `value above
Restart GitLab
Gitlab-ctl restart
Git clean parameter
-n displays the files and directories to be deleted
-f delete files,-df delete files and directories
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.