码迷,mamicode.com
首页 > 其他好文 > 详细

gitlab jenkins

时间:2016-04-30 15:23:44      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:

yum -y update
chmod +x /etc/rc.d/rc.local

Git

yum -y install git
git --version
#Make sure Git is version
2.7.4 or higher yum -y remove git yum -y install gcc zlib-devel perl-CPAN gettext curl-devel expat-devel gettext-devel openssl-devel cd /home wget https://www.kernel.org/pub/software/scm/git/git-2.8.2.tar.gz tar zxvf git-2.8.2.tar.gz cd git-2.8.2 ./configure --prefix=/usr/local make && make install git --version rm /home/git-2.8.2* -rf

 

Ruby

yum -y install ruby
ruby -v

#The current supported Ruby version is 2.1.x. Ruby 2.2 and 2.3 are currently not supported.

yum -y remove ruby
cd /home
wget https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.8.tar.gz
tar zxvf  ruby-2.1.8.tar.gz
cd ruby-2.1.8
 ./configure --prefix=/usr/local/ruby --disable-install-rdoc
 make && make install

ruby -v

rm /home/ruby-2.1.8* -rf

gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l

gem install bundler --no-ri --no-rdoc 

adduser --system --shell /bin/bash --comment GitLab --create-home --home-dir /home/gitlab/ gitlab

 

Mysql

cd /home
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum -y install mysql-community-server

service mysqld restart

mysql -uroot
update mysql.user set password=PASSWORD(密码) where User=root;
flush privileges;

CREATE USER gitlab@localhost IDENTIFIED BY gitLabdsdew8772;
SET storage_engine=INNODB;
CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, CREATE TEMPORARY TABLES, DROP, INDEX, ALTER, LOCK TABLES ON `gitlabhq_production`.* TO gitlab@localhost;

mysql -ugitlab -pgitLabdsdew8772 -D gitlabhq_production

chown -R mysql:mysql /var/lib/mysql

rm -rf /home/mysql*

 

Redis

cd /home
wget http://download.redis.io/redis-stable.tar.gz
tar zxvf redis-stable.tar.gz
cd redis-stablemake MALLOC=libc
make install

cp redis.conf redis.conf.orig
 
sed s/^port .*/port 0/ redis.conf.orig |tee /etc/redis.conf
 
echo unixsocket /var/run/redis/redis.sock |tee -a /etc/redis.conf
 
echo -e unixsocketperm 0770 |tee -a /etc/redis.confrm -rf redis-stable*

cd /lib/systemd/system

vi redis-server.service

 

gitlab jenkins

标签:

原文地址:http://www.cnblogs.com/fr5s/p/5448218.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!