gitlabのインストール
1.公式案内アドレス
https://gitlab.cn/install/#centos-7
2. 必要な依存関係をインストールして構成する
CentOS 7 では、以下のコマンドにより、システム ファイアウォールで HTTP、HTTPS、および SSH アクセスも開きます。これはオプションの手順です。ローカル ネットワークからのみ GitLab にアクセスする場合はスキップできます。
sudo yum install -y curl policycoreutils-python openssh-server perl
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
3. ミラーソースをダウンロードする
curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash
4.yumのインストール
yum -y install gitlab-ce
5. ホストの IP:ポートを構成する
vim /etc/gitlab/gitlab.rb
ポートが追加されていない場合、デフォルトは 80 です。
6. 構成を再ロードして有効にし、サービスを再起動します。
gitlab-ctl reconfigure
gitlab-ctl restart
7. ページにアクセスします
ユーザー名: root
パスワード 表示コマンド: cat /etc/gitlab/initial_root_password
8. ログイン後、中国語に設定します
最後にページを更新して中国語のページを表示します。