In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Introduction
GitLab is an open source project for warehouse management systems.
2. Official hardware introduction configuration
CPU
The core CPU supports up to 100 users, and all workers and background tasks work in the same core, which will cause the response of the GitLab service to be a little slow.
The 2 core supports 500 users, which is also the official recommended minimum standard.
4 the core supports 2000 users.
8 the core supports 5000 users.
The 16 core supports 10000 users.
The 32 core supports 20000 users.
The 64 core supports 40000 users.
If you want to support more users, you can use a cluster architecture
Memory
Installation using GitLab requires at least 4GB available memory (RAM + Swap)! Since the operating system and other running applications also use memory, be sure to make sure that the current server has at least 4GB memory available before installing GitLab. Less than 4GB memory can lead to all kinds of weird problems in reconfigure, and 500 errors often occur during use.
The last official reminder:
1GB physical memory + 3GB swap partition is the minimum requirement, but we strongly oppose the use of such a configuration. See the unicorn worker section below for more suggestions.
2GB physical memory + 2GB swap partition supports 100 users, but the service response will be slow.
4GB physical memory supports 100 users and is also an officially recommended configuration.
8GB physical memory supports 1000 users.
16GB physical memory supports 2000 users.
32GB physical memory supports 4000 users.
64GB physical memory supports 8000 users.
128GB physical memory supports 16000 users.
256GB physical memory supports 32000 users.
If you want to support more users, you can use a cluster architecture
I didn't look up the unicorn of the official website in detail. It's all in English. It looks very laborious.
3. Composition of GitLab service
GitLab consists of the following services:
Nginx: static Web server
Gitlab-shell: used to process Git commands and modify authorized keys lists
Gitlab-workhorse: lightweight reverse proxy server
Logrotate: log file management tool
Postgresql: database
Redis: cache database
Sidekiq: used to execute queue tasks in the background (asynchronously)
Unicorn:An HTTP server for Rack applications,GitLab Rails applications are hosted on this server.
According to my statistics, there are altogether 8 components.
4. Official recommended installation method
1. Installation configuration dependency if you want to use Postfix to send mail, select 'Internet Site'.' during installation You can also use sendmai or configure the SMTP service and use SMTP to send mail. On Centos 6 and 7 systems, the following command opens the HTTP and SSH ports in the system firewall. Sudo yum install curl policycoreutils openssh-server openssh-clients git-ysudo systemctl enable sshdsudo systemctl start sshdsudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfixsudo firewall-cmd-- permanent-- add-service=httpsudo systemctl reload firewalld2. Add a GitLab repository and install it on the server curl-sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bashsudo yum install gitlab-ce if you are not used to using the command pipeline installation method You can download the installation script here or manually download the corresponding installation package (RPM/Deb) for the system you use, and then install curl-LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-XXX.rpmcurl-LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.2.2-ce.0.el7.x86_64. Rpmrpm-I gitlab-ce-9.2.2-ce.0.el7.x86_64.rpm rpm-I gitlab-ce-XXX.rpm3. Start GitLabsudo gitlab-ctl reconfigure4. Use a browser to access GitLab and visit GitLab for the first time. The system will ask you to reset the administrator's password and return to the login interface after setting it successfully. The default administrator account is root. If you want to change the default administrator account, enter the new password set above to log in to the system and modify the account name. For parameter configuration and troubleshooting, please see the Omnibus GitLab document GitLab-CE China Mirror Source Tsinghua University TUNA Open Source Image Station, Zhejiang University Open Source Image Station *. *。 * *. *, *,. , *,. _ / / / \ /\ _ _ _ / _. _ / gitlab: Thank you for installing GitLab!gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:sudo gitlab-ctl reconfiguregitlab: GitLab should be reachable at http://localhostgitlab: Otherwise configure GitLab for your system by editing / etc/gitlab/gitlab.rb filegitlab: And running reconfigure again.gitlab: gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readmegitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.mdgitlab: It looks like GitLab has not been configured yet Skipping the upgrade script.
All the gitlab project directories are under / var/opt/gitlab/, and you can see all their components in this directory
5. Change the gitlab configuration
Vim / etc/gitlab/gitlab.rb
# modify the external_url in the GitLab configuration file. Modifying this configuration will affect the warehouse link external_url 'http://gitlab.abc.com' # time zone displayed in GitLab, but I cannot access it properly after modifying this time zone The reason for the failure is to query gitlab_rails ['time_zone'] =' Asia/Shangha' # modify the gitlab data storage path git_data_dirs ({"default" = > {"path" = > "/ data/gitlab_data"}}) # set the nginx monitoring port When accessing, http://gitlab.abc.com:9000nginx['listen_port'] = 9000#Gitlab modifies the default directory of backup files gitlab_rails ['backup_path'] =' / data/gitlab_backups'#163 mailbox configuration gitlab_rails ['smtp_enable'] = truegitlab_rails [' smtp_address'] = "smtp.163.com" gitlab_rails ['smtp_port'] = 25gitlab_rails [' smtp_user_name'] = "xxx@163 .com "gitlab_rails ['smtp_password'] =" xxxxxx "gitlab_rails [' smtp_domain'] =" 163.com "gitlab_rails ['smtp_authentication'] =" login "gitlab_rails [' smtp_enable_starttls_auto'] = truegitlab_rails ['gitlab_email_from'] =' xxx@163.com'gitlab_rails ['gitlab_email_display_name'] =' Gitlab'
6. Start gitlab
Sudo gitlab-ctl reconfiguresudo gitlab-ctl start
After startup, log in to the web interface and remember to use the administrator account to close the open registration authentication sign-up and prohibit others from registering and using it.
7. Gitlab backup
Gitlab creates a backup and generates a tar file under the backup directory / data/gitlab_data
Gitlab-rake gitlab:backup:create
8. Gitlab common commands
View service status $sudo gitlab-ctl status startup service $sudo gitlab-ctl start shutdown service $sudo gitlab-ctl stop restart service $sudo gitlab-ctl restart reload configuration $sudo gitlab-ctl reconfigure view nginx log gitlab-ctl tail nginx/gitlab_access.log
9. Sinicization
# Chinese https://gitlab.com/xhang/gitlab
10. Accidentally close the signin login window. You can use this method to solve the problem.
# Gitlab-how to decipher "No authentication methods configured on login page"? (gitlab version: 9.2.2) sudo gitlab-psql-l view database list gitlab-psql gitlabhq_productionUPDATE application_settings set signin_enabled=true;\ qsudo gitlab-ctl restart
Reference:
Https://www.gitlab.com.cn/downloads/#centos7
Http://www.jianshu.com/p/a22eaa1fcfe7
Https://docs.gitlab.com.cn/ce/install/requirements.html
Https://bbs.gitlab.com.cn
Https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
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.