CentOS7 GitLabのインストール

 

1.依存関係をインストール

$ yumを-y policycoreutilsをインストールするのopenssh-サーバのopenssh-クライアントpostfixの
$ yumをpolicycoreutils-のpythonをインストール

  

2.スタートからの起動を設定し、後置を開始

$接尾有効systemctl 
のpostfixを起動systemctl $を

  

3.ダウンロード

$のwget --content-処分https://packages.gitlab.com/gitlab/gitlab-ce/packages/ol/7/gitlab-ce-12.0.3-ce.0.el7.x86_64.rpm/download.rpm

 

4.解凍

$回転数-i-12.0.3-gitlabのce.0.el7.x86_64.rpm

次のインターフェイスを抽出した後表示されます。

 

5.カスタムポートとIPアドレスを指定するには、gitlabサーバーの設定ファイルを変更します。

Vimの/etc/gitlab/gitlab.rb

 

6. GitLabをリセットしてスタート

$ gitlab-CTLの再設定

  

7.アクセスGitLabページ のhttp://サーバのIP:ポート

 


 

gitlabがパスワードを忘れた場合は、次の手順を実行することができます。

(1)実行:gitlabレールをコンソール製造
[ルート@ localhostののgitlab]#gitlabレールコンソール生産
ロード本番環境(Railsの4.1.12)
IRB(メイン):001:0>

 

(2)执行:ユーザー= User.where(ID:1)1次回
IRB(メイン):001:0>ユーザー= User.where(ID:1)1次回
=>#<ユーザーID:1、電子メール: "[email protected]"、encrypted_pa​​ssword: "$ 2A $ 10 $ DMtAMOAM0w9IobSlUm5H3.gprVLzulSsMKyCDkRALBh ..."、reset_password_token:nilに、reset_password_sent_at:nilに、remember_created_at:nilに、sign_in_count:0、 current_sign_in_at:nilに、last_sign_in_at:nilに、current_sign_in_ip:nilに、last_sign_in_ip:ゼロ、はcreated_at: "2018年6月14日13時14分23秒"、updated_atの: "2018年6月14日13時14分23秒"、名称:「管理者"管理者:真、projects_limit:10000、スカイプ: ""、LinkedInの: ""、さえずり: ""、authentication_token: "QsfSW1J1ffhNgM76AsHb"、theme_id:2、バイオ:nilに、failed_attempts:0、locked_at:nilに、ユーザ名:"根 "can_create_group:真、can_create_team:偽の、状態: "アクティブ"、color_scheme_id:1、notification_level:1、password_expires_at:"2018年6月14日午前13" 時14分23秒、created_by_id:nilに、last_credential_check_at:nilに、アバター:nilに、confirmation_token: "Rca6bsELVxBbGqbgykEn"、confirmed_at: "2018年6月14日午前13時14分23秒"、confirmation_sent_at:「2018- 6月14日午後01時14分23" 秒、unconfirmed_email:nilに、hide_no_ssh_key:偽、WEBSITE_URL: ""、notification_email: "[email protected]"、hide_no_password:偽、password_automatically_set:偽、所在地:nilに、encrypted_otp_secret:ゼロ、encrypted_otp_secret_iv偽、otp_backup_codes:::nilに、encrypted_otp_secret_salt:otp_required_for_loginゼロ、ゼロ、public_email: ""、ダッシュボード:0、project_view:0、consumed_timestep:ゼロ>23" 、confirmation_sent_at: "2018年6月14日夜01時14分23秒"、unconfirmed_email:ゼロ、hide_no_ssh_key:偽、WEBSITE_URL: ""、notification_email: "[email protected]"、hide_no_password:偽、password_automatically_set:偽、場所偽、otp_backup_codes:::nilに、encrypted_otp_secret:nilに、encrypted_otp_secret_iv:nilに、encrypted_otp_secret_salt:otp_required_for_loginゼロ、ゼロ、public_email: ""、ダッシュボード:0、project_view:0、consumed_timestep:ゼロ>23" 、confirmation_sent_at: "2018年6月14日夜01時14分23秒"、unconfirmed_email:ゼロ、hide_no_ssh_key:偽、WEBSITE_URL: ""、notification_email: "[email protected]"、hide_no_password:偽、password_automatically_set:偽、場所偽、otp_backup_codes:::nilに、encrypted_otp_secret:nilに、encrypted_otp_secret_iv:nilに、encrypted_otp_secret_salt:otp_required_for_loginゼロ、ゼロ、public_email: ""、ダッシュボード:0、project_view:0、consumed_timestep:ゼロ>otp_required_for_login:偽、otp_backup_codes:nilに、public_email: ""、ダッシュボード:0、project_view:0、consumed_timestep:ゼロ>otp_required_for_login:偽、otp_backup_codes:nilに、public_email: ""、ダッシュボード:0、project_view:0、consumed_timestep:ゼロ>
IRB(メイン):002:0> 

  

(3)実行:user.password = '66668888'
IRB(メイン):002:0> user.password = '66668888' 
=> "66668888" 
IRB(メイン):003:0>

  

(4)実行します。user.saveを!
IRB(メイン):003:0> user.save!
=>真
IRB(メイン):004:0>

 

 

おすすめ

転載: www.cnblogs.com/caoxb/p/11257488.html