gitlab7.2安装
来源:互联网 发布:汉诺塔递归算法证明 编辑:程序博客网 时间:2024/04/29 07:30
系统:centos6.4
1.安装依赖包
导入epel:
useradd git
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum -y install build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis* checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate python-docutils pkg-config cmake perl cpio libicu*
2.安装最新版本git
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.xz
tar xzvf git-latest.tar.xz
cd git-xxxx-xx-xx
autoconf
./configure
make
make install
cp /usr/local/bin/git /usr/bin/
3.ruby安装
curl -L --progress ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz | tar xz
cd ruby-2.1.2
./configure --disable-install-rdoc
make
make install
4.mysql安装调整(现有环境为公司内部MYsql,连数据root账户。)
yum -y install mysql
service mysqld start
创建库gitlabhq_production
5.gitlab安装
su git
cd /home/git
clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 7-2-stable gitlab
cd /home/git/gitlab
cp config/gitlab.yml.example config/gitlab.yml (需要将此文件里面的host改为本机ip)
chown -R git log/
chown -R git tmp/
chmod -R u+rwX log/
chmod -R u+rwX tmp/
mkdir /home/git/gitlab-satellites
hmod u+rwx,g=rx,o-rwx /home/git/gitlab-satellites
chmod -R u+rwX tmp/pids/
chmod -R u+rwX tmp/sockets/
chmod -R u+rwX public/uploads
cp config/unicorn.rb.example config/unicorn.rb
cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb
git config --global user.name "GitLab"
git config --global user.email "example@example.com"
git config --global core.autocrlf input
cp config/database.yml.mysql config/database.yml(需要将里面的用户名密码指定为mysql,sock也指向mysql的sock)
chmod o-rwx config/database.yml
vi /home/git/gitlab/Gemfile/
将source "https://rubygems.org" 更改为source "http://ruby.taobao.org"
bundle install --deployment --without development test postgres aws
6.gitlab-shell安装
service redis start
cd /home/git/gitlab
bundle exec rake gitlab:shell:install[v1.9.7] REDIS_URL=redis://localhost:6379 RAILS_ENV=production
7.安装nginx并初始化数据库
yum -y install nginx
cd /home/git/gitlab
cp lib/support/init.d/gitlab /etc/init.d/gitlab
cp lib/support/init.d/gitlab.default.example /etc/default/gitlab
日志切割:
cp lib/support/logrotate/gitlab /etc/logrotate.d/gitlab
nginx主配置文件,需要按需调整server 配置,其余可以保持默认。
cp lib/support/nginx/gitlab /etc/nginx/conf.d/gitlab.conf
生成mysql数据库表结构。
bundle exec rake gitlab:setup RAILS_ENV=production (输入yes)
执行完会提示首次登陆的用户密码:
admin@local.host
5iveL!fe
执行检查操作:
bundle exec rake gitlab:check RAILS_ENV=production (检查是否有报错)
service nginx start
service gitlab start
直接访问url路径,登陆用户名和密码。
- gitlab7.2安装
- 安装 GitLab7.x
- CentOS6安装GitLab7
- centos 6.4 gitlab7.6.2安装
- ubuntu 14.04 一键安装 gitlab7
- centos6.5 x64 源码编译安装 gitlab7.9.2
- 一键安装gitlab7在rehl6.4上
- 一键安装GitLab7在RHEL6.4上
- 一键安装GitLab7在RHEL6.4上
- 一键安装 gitlab7 on rhel6.4 并设置邮件发送
- gitlab7配置smtp邮箱
- Centos6.5搭建gitlab7.8
- Gitlab7.0通知邮箱的配置
- Gitlab7.8.x 配置邮件功能
- 使用gitlab7.7.2需要注意的一些点
- Gitlab7.0通知邮箱的配置(smtp)
- 安装2
- 【storm,2】storm安装(单机安装+集群安装)
- RT-Thread内核之线程调度(五)
- 时间序列分析之一次指数平滑法
- myeclispe----部署web工程时不能出现deploy location
- 1042. Shuffling Machine (20)
- GRE写作必备句型
- gitlab7.2安装
- SharePoint 2013 增加文件夹完整示例。
- 初学MFC(一)
- CLRS思考题1-1
- POJ1018Communication System
- jsp获取参数值通过url传值
- centos6+eclipse+python 环境配置
- 使用WIFI连接android进行调试和adb操作
- 云计算环境下的大规模图数据处理技术