Linux 快速搭建 gitorious和Redmine

前言

Gitorious 是一个基于 Git 版本控制系统的Web项目托管平台。基于 Ruby on Rails 开发。

在局域网里搭建gitorious需要安装的软件有apache, mysql, sendmail, ruby, rubygems, imagemagick, sphinx, apg和aspell等应用程序,另外还需要libmagick9-dev, libmysqlclient15-dev, libmysqlclient15off, libonig2, libonig-dev, libaspell-dev等程序库。

Linux 快速搭建 gitorious和Redmine_第1张图片

Redmine是用Ruby开发的基于web的项目管理软件,是用ROR框架开发的一套跨平台项目管理系统,据说是源于Basecamp的ror版而来,支持多种数据库,有不少自己独特的功能,例如提供wiki、新闻台等,还可以集成其他版本管理系统和BUG跟踪系统,例如Perforce、SVN、CVS、TD等等。这种 Web 形式的项目管理系统通过“项目(Project)”的形式把成员、任务(问题)、文档、讨论以及各种形式的资源组织在一起,大家参与更新任务、文档等内容来推动项目的进度,同时系统利用时间线索和各种动态的报表形式来自动给成员汇报项目进度。

Linux 快速搭建 gitorious和Redmine_第2张图片

安装可以使用bitnami来装,快速方便

BitNami是一个开源项目,该项目产生的开源 软件包 安装 Web应用程序和解决方案堆栈,以及 虚拟设备。bitnami主办Bitrock公司成立于2003年在西班牙塞维利亚,由丹尼尔·洛佩兹Ridruejo。bitnami栈用于安装在Linux,Windows,Mac OS X中和Solaris软件。 [1]
BitNami 提供wordpress、joomla、drupal、bbpress等开源程序的傻瓜式安装包下载,所有的安装包内置了服务器环境,就是说,不需要在本地 电脑上另外搭建服务器,就可以一次性傻瓜式安装完毕。BitNami开源PHP程序傻瓜集成安装包可选环境,包括WAMP,LAMP,MAMP,SAMP。

我把我的安装过程history列出,其实很简单,有些ls,clear操作可忽略

wget wget http://bitnami.com/redirect/to/21444/bitnami-gitorious-2.4.12-2-linux-x64-installer.run
chmod +x bitnami-gitorious-2.4.12-2-linux-x64-installer.run && ./bitnami-gitorious-2.4.12-2-linux-x64-installer.run
chmod +x bitnami-gitorious-2.4.12-2-linux-x64-installer.run && ./bitnami-gitorious-2.4.12-2-linux-x64-installer.run
yum install mysql-devel ImageMagick ImageMagick-devel
yum install ruby ruby-devel rubygems
ruby --version
gem --version
gem install bundler
gem list --local
/etc/init.d/iptables stop
yum install gcc
rpm -ivh http://nginx.org/packages/centos/6/x86_64/RPMS/nginx-1.2.0-1.el6.ngx.x86_64.rpm
nginx -V
chkconfig nginx on
service nginx start
netstat -ltpn
service http stop
service http restart
netstat -lptn
netstat -lptn
/etc/init.d/httpd stop
cd /etc/
ls
cd /init.d/
clear
service apache stop
service apache stop --status-all
clear
service --status-al
service --status-all
clear
service httpd status
service --status-all
clear
netstat -npl
clear
netstat -npl
clear
cat /etc/services
clear
/etc/init.d/httpd stop
chkconfig off httpd
chkconfig del httpd
chkconfig --del httpd
clear
netstat -lptn
kill 14644
netstat -lptn
clear
ls
clear
service nginx start
clear
yum install mysql-server
chkconfig mysqld on
service mysqld start
clear
mysql -u root -p
mysql
netstat -lptn
clear
ls
clear
service mysqld start
clear
chkconfig mysqld on
service mysqld start
yum install mysql-server
yum remove mysql-server
yum install mysql-server
chkconfig mysqld on
service mysqld start
/etc/rc.d/init.d/mysqld start
cd /usr/
ls
cd local
ls
clear
ls
where mysql
which mysql
cd /usr/
ls
cd local
ls
clear
ls
cd bin
ls
which mysql
cd /usr/bin/
cd ..
cd local
cd bin
clear
yum install mysql
yum install mysql-server
yum install mysql-dever
service mysqld start
which mysql
clear
mysql
reboot
clear
ls
netstat -lptn
clear
mysql
clear
/usr/bin/mysqladmin -u root password 'root'
mysql -u root -p
bye
clear
wget http://rubyforge.org/frs/download.php/77023/redmine-2.3.2.tar.gz
cp redmine-2.3.2.tar.gz /usr/local
cd /usr/local
lc
ls
tar zxvf redmine-2.3.2.tar.gz 
bundle install --without development test postgresql sqlite
ln -s /usr/local/redmine-2.3.2 /usr/local/redmine
cd /usr/local/redmine
bundle install --without development test postgresql sqlite
mysql -u root -p
cd /usr/local/redmine/config
cp database.yml.example database.yml
vi database.yml
rake generate_session_store
cd ..
ls
cd ..
ls
cd bin
ls
cd ls
cd /usr/local/redmine
ls
cd test
ls
cd ..
ls
rake generate_session_store
cd /usr/local/redmine/config
ls
vi database.yml
cd..
cd ..
ls
rake generate_session_store
ls
cd config
ls
vi database.yml
cd ..
ls
rake generate_session_store
gem 'mysql'
ruby --version
gem --verison
gem --version
clear
rake generate_session_store
bundle install
rake generate_session_store
clear
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
clear
ls
ruby script/server webrick -e production
ls
cd script/
ls
cd rails
ls
cd ..
ls
clear
ls
cd script/
ls
ruby rails server webrick -e production
ruby rails server webrick -e production -d
vi /usr/local/redmine/config/environment.rb
clear
ln -s /usr/local/redmine/public /usr/local/redmine/public/redmine
vi /etc/nginx/conf.d/default.conf 
service nginx reload
clear
vi /etc/nginx/conf.d/default.conf 
clear
service nginx reload
clear
vi /etc/nginx/conf.d/default.conf 
service nginx reload
clear
netstat -lptn
clear
netstat -lptn
top
clear
vi /etc/nginx/conf.d/default.conf 
clear
ls
service nginx reload
clear
vi /usr/local/redmine/config/environment.rb
clear
cd /usr/local/redmine
ls
cd public
ls
cd /usr/local/redmine/public/redmine
ls
ln -s /usr/local/redmine/public /usr/local/redmine/public/redmine
reboot
vi /etc/hosts
clear
ls
clear
netstat -lptn
clear
cd /usr/local
ls
cd redmine
ls
cd script
ls
ruby script/rails server webrick -e production
ls
ruby rails server webrick -e production -d
clear
ls
cd /opt/gitorious-2.4.12-2/
ls
./ctlscript.sh start
ls
vi properties.ini 
ls
cd ..
ls
clear
ls
cd gitorious-2.4.12-2/
ls
netstat -lptn
clear
netstat -lptn
ls
cd apps
ls
cd gitorious/
ls
cd htdocs/
ls
cd config/
ls
cd environment
ls
cd environments
ls
vi production.rb 
cd..
cd ..
ls
cd ..
ls
cd ..
ls
cd ..
ls
vi properties.ini 
ls
./ctlscript.sh restart
clear
ls
netstat -lptn
clear
netstat -lptn
cd ..
ls
cd ..
ls
cd ~
ls
chmod +x bitnami-gitorious-2.4.12-2-linux-x64-installer.run && ./bitnami-gitorious-2.4.12-2-linux-x64-installer.run 
cd /opt/gitorious-2.4.12-2/
ls
./uninstall 
cd ..
ls
cd ~
ls
chmod +x bitnami-gitorious-2.4.12-2-linux-x64-installer.run && ./bitnami-gitorious-2.4.12-2-linux-x64-installer.run 
ls
cd /opt
ls
cd gitorious-2.4.12-2/
ls
rm memcached/
cd memcached/
ls
cd tmp
ls
rm tmp
ls
cd ..
rm tmp
rmdif tmp
cd ..
ls
rm -rf memcached/
ls
cd ..
ls
cd..
cd ..
cd ~
chmod +x bitnami-gitorious-2.4.12-2-linux-x64-installer.run && ./bitnami-gitorious-2.4.12-2-linux-x64-installer.run 
chmod +x bitnami-gitorious-2.4.12-2-linux-x64-installer.run && ./bitnami-gitorious-2.4.12-2-linux-x64-installer.run
clear
ls
cd /opt
ls
cd gitorious-2.4.12-2/
ls
./ctlscript.sh start
./ctlscript.sh restart
clear
ls
top
clear
ls
git
git -log
git --log
clear
ls
cd ~
ls
cd /opt/
ls
cd gitorious-2.4.12-2/
ls
cd apps
ls
clear
cd gitorious/
ls
./updateip --machine_hostname git.ihep.ac.cn
cd htdocs/
ls
cd config/
ls
vi gitorious.yml
clear
ls
cd ..
ls
cd ..
ls
cd htdocs/
ls
cd log
ls
clear
ls
clear
cd gitorious/htdocs
cd opt/
cd /opt/
ls
cd gitorious-2.4.12-2/
ls
cd apps
ls
cd gitorious/
ls
cd htdocs/
cd config/
cd environment
cd environments
ls
clear
vi production.rb 
clear
ls
cd ..
ls
cd ..
ls
cd ..
ls
cd ..
ls
./ctlscript.sh restart apache
clear
vi /etc/nginx/conf.d/default.conf 
clear
service nginx reload
vi /etc/nginx/conf.d/default.conf 
service nginx reload
clear
vi /etc/nginx/conf.d/default.conf 
service nginx stop
clear
service nginx start
vi /etc/nginx/conf.d/default.conf 
clear
service nginx stop
vi /etc/nginx/conf.d/default.conf 
service nginx start
top
clear
service nginx stop
vi /etc/nginx/conf.d/default.conf 
service nginx stop
service nginx start
vi /etc/nginx/conf.d/default.conf 
service nginx reload
vi /etc/nginx/conf.d/default.conf 
service nginx reload
service nginx stop
service nginx start
clear
vi /usr/local/nginx/conf/nginx.conf
vi /etc/nginx/conf.d/
cd /etc/nginx/conf.d/
ls
clear
cd /usr/local/
ls
vi /etc/nginx/conf.d/default.conf 
service nginx reload
clear
ls
rpm -e nginx
nginx
service nginx start
cd ~
ls
rpm -ivh nginx-1.4.2-1.el6.ngx.x86_64.rpm 
nginx -V
chkconfig nginx on
service nginx start
clear
cd /usr/lcoal/nginx/
cd /ect/
cd etc/
cd /etc/nginx
ls
cd conf.d/
ls
vi default.conf
clear
ls
cd ..
ls
vi nginx.conf
service nginx reload
service nginx start
vi nginx.conf
service nginx reload
vi nginx.conf
service nginx reload
ls
cd conf.d/
ls
vi default.conf.rpmsave 
clear
ls
cd ..
ls
vi nginx.conf 
service nginx reload
ls
cd conf.d/
ls
vi default.conf.rpmsave 
ls
cd ..
ls
vi nginx.conf 
clear
service nginx reload
vi nginx.conf 
service nginx reload
clear
vi nginx.conf 
service nginx reload
vi nginx.conf 
service nginx reload
clear
ls
cd /opt/
ls
clear
cd /usr/local
ls
cd redmine
ls
git clone git://github.com/pharmazone/redmine_charts2 plugins/redmine_charts2
cd plugins/redmine_charts2
git co redmine21
ls
cd ..
ls
cd ..
ls
git clone git://github.com/pullmonkey/open_flash_chart.git plugins/open_flash_chart
clear
cp -r plugins/open_flash_chart/assets public/plugin_assets/open_flash_chart
ls
cd plugins
ls
cd ..
ls
cd public
ls
cd public
ls
cd public
ls
cd public/
ls
clear
rake redmine:plugins RAILS_ENV=production
clear
reboot
clear
service nginx start
netstat -lptn
service nginx start
clear
ls
cd /etc/nginx/
ls
vi nginx.conf
service nginx reload
service nginx stop
vi nginx.conf
service nginx start
clear
cd /usr/local/
ls
cd redmine
ls
cd script
ls
ruby rails webrick -e -d production
clear
ls
ruby ./rails webrick -e -d production
clear
cd ~
ls
cd /opt
ls
cd gitorious-2.4.12-2/
ls
./ctlscript.sh start
clear
cd /usr/local
ls
cd redmine
ls
cd redmine
ls
cd ..
ls
cd redmine-2.3.2
ls
cd app
ls
cd ..
clear
ruby script/server webrick -e production
ls
ruby script/rails webrick -e production
ruby rails server webrick -e production -d
ls
ruby script/rails server webrick -e production
cleasr
clear
ls
cd ~
ls
clear
ls
cd /usr/local
ls
cd redmine
ls
ruby script/rails server webrick -e production -d
clear
ls
cd /etc/nginx/
ls
vi nginx.conf 
clear
ls
clear
ls
clear
ls
service nginx reload
service nginx restart
clear
service nginx stop
service nginx restart
exit
ls
top
clear
ls
cd /opt/
ls
cd gitorious-2.4.12-2/
ls
cd apps/
ls
cd gitorious/
ls
cd htdocs/
ls
cd config/
ls
cd environments
ls
vi production.rb 
ls
vi development.rb 
clear
ls
cd ..
ls
grep -rn "public_mode"
grep -rn "public_mode" ./
vi gitorious.yml
ls
cd ..
ls
cd ..
ls
cd ..
ls
cd ..
ls
./ctlscript.sh restart
ls
cd apps
ls
cd gitorious/
ls
cd htdocs/
ls
cd config/
ls
vi gitorious.yml
cd ..
ls
cd ..
ls
cd ..
ls
./ctlscript.sh restart
clear
cd /root/.ssh2/
cd .ssh2
ls
ls /root/.ssh/
ls /root/.ssh2/
ls /root/.ssh/
cat authorized_keys
cd authorized_keys
clear
ls
cd /root/.ssh2
ls
ssh-keygen -i -f wcckey.pub >>/root/.ssh/authorized_keys 
reboot
clear
netstat -lptn
ls
cd /usr/local
ls
cd redmine
ls
cd script
ls
cd ..
ruby script/rails server webrick -e production
ls
cd /usr/local
ls
cd redmine
ls
ruby script/rails server webrick -e production -d
clear
ls
netstat -lptn
cd /opt/
ls
cd gitorious-2.4.12-2/
ls
./ctlscript.sh start
df
ls
vi /etc/nginx/conf.d/default.conf
netstat -ltpn
clear
netstat -lptn
clear
history
cd /usr/local
cd redmine
ls
ruby script/rails server webrick -e production -d
cd ~
cd /opt/gitorious-2.4.12-2/
ls
./ctlscript.sh restart
clear
ls
netstat -lptn
ping git.ihep.ac.cn
ls
netstat -lptn
kill 18357
kill 4185 18178
netstat -lptn
kill 4228
netstat -lptn
kill 18239
netstat -lptn
kill 17801
netstat -lptn
reboot
ls
vi 1.py
ls
python 1.py 
ls
vi 1.py 
python 1.py 
vi 1.py 
python 1.py 
netstat -lptn
reboot
ls
netstat -ltpn
history
netstat -lptn
ls
cd /usr/local/
ls
cd redmine
ls
cd script/
ls
s
ls
cd ..
ls
ruby script/rails server webrick -e production -d
cd /opt
ls
cd gitorious-2.4.12-2/
ls
./ctlscript.sh start




你可能感兴趣的:(git)