<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://ituki.proj.jp/wiki/index.php?action=history&amp;feed=atom&amp;title=Linux%E9%96%A2%E9%80%A3%2Fgitlab%E3%81%AE%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97</id>
		<title>Linux関連/gitlabのセットアップ - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://ituki.proj.jp/wiki/index.php?action=history&amp;feed=atom&amp;title=Linux%E9%96%A2%E9%80%A3%2Fgitlab%E3%81%AE%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97"/>
		<link rel="alternate" type="text/html" href="https://ituki.proj.jp/wiki/index.php?title=Linux%E9%96%A2%E9%80%A3/gitlab%E3%81%AE%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97&amp;action=history"/>
		<updated>2026-05-10T21:33:13Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://ituki.proj.jp/wiki/index.php?title=Linux%E9%96%A2%E9%80%A3/gitlab%E3%81%AE%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97&amp;diff=69&amp;oldid=prev</id>
		<title>Ituki: ページの作成:「= gitlabのセットアップ =  * マシン1台をまるっと使います  * [https://about.gitlab.com/installation/#centos-7?version=ce gitlab公式の方法]を使い...」</title>
		<link rel="alternate" type="text/html" href="https://ituki.proj.jp/wiki/index.php?title=Linux%E9%96%A2%E9%80%A3/gitlab%E3%81%AE%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97&amp;diff=69&amp;oldid=prev"/>
				<updated>2018-09-04T01:59:57Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「= gitlabのセットアップ =  * マシン1台をまるっと使います  * [https://about.gitlab.com/installation/#centos-7?version=ce gitlab公式の方法]を使い...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= gitlabのセットアップ =&lt;br /&gt;
&lt;br /&gt;
* マシン1台をまるっと使います&lt;br /&gt;
&lt;br /&gt;
* [https://about.gitlab.com/installation/#centos-7?version=ce gitlab公式の方法]を使います&lt;br /&gt;
&lt;br /&gt;
== インストール ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install -y curl policycoreutils-python openssh-server&lt;br /&gt;
# systemctl enable sshd&lt;br /&gt;
# systemctl start sshd&lt;br /&gt;
# firewall-cmd --permanent --add-service=http&lt;br /&gt;
# systemctl reload firewalld&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
今回はpostfixを使わないので次の項目は省略&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install postfix&lt;br /&gt;
# systemctl enable postfix&lt;br /&gt;
# systemctl start postfix&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
本体のインストールは&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash&lt;br /&gt;
# EXTERNAL_URL=&amp;quot;http://ドメイン名&amp;quot; yum install -y gitlab-ce&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
で終了。&lt;br /&gt;
(yumコマンドは結構時間かかります！　途中で止めてしまわないように注意）&lt;br /&gt;
&lt;br /&gt;
大体これで使えるようになります。&lt;br /&gt;
簡単ですね！&lt;br /&gt;
&lt;br /&gt;
== データディレクトリを引っ越す方法 ==&lt;br /&gt;
標準だと気にくわない人向け&lt;br /&gt;
&lt;br /&gt;
=== gitのデータ ===&lt;br /&gt;
/etc/gitlab/gitlab.rbのgit_data_dirsを設定します。([[https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory 公式ドキュメント]])&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git_data_dirs({&lt;br /&gt;
  &amp;quot;default&amp;quot; =&amp;gt; {&lt;br /&gt;
    &amp;quot;path&amp;quot; =&amp;gt; &amp;quot;/data/gitlab/git-data&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
これを実行した後、gitlab-ctl reconfigureすれば勝手に変更されます。&lt;br /&gt;
&lt;br /&gt;
本当はlfsとかも動かした方が良いかもしれませんが、まぁ今回はパス&lt;br /&gt;
&lt;br /&gt;
=== DB(PostgreSQL)のデータ ===&lt;br /&gt;
/var/opt/gitlab/postgresql/dataが本体っぽいので、どっかに移動してしまいましょう&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gitlab-ctl stop&lt;br /&gt;
# mkdir -p /data/gitlab/postgresql/&lt;br /&gt;
# mv /var/opt/gitlab/postgresql/data /data/gitlab/postgresql/data&lt;br /&gt;
# ln -s /data/gitlab/postgresql/data /var/opt/gitlab/postgresql/data&lt;br /&gt;
# gitlab-ctl start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ituki</name></author>	</entry>

	</feed>