centOS安装redmine

参考地址:http://www.redmine.org/projects/redmine/wiki/RedmineInstall
# rvm install 2.1.0
# rvm use 2.1.0
# cd /opt
# wget http://www.redmine.org/releases/redmine-3.3.1.tar.gz
# tar zxf redmine-3.3.1.tar.gz
# rvm install 2.1
# rvm use 2.1
# cd /opt/redmine-3.3.1
# gem sources -l
# gem sources —remove https://rubygems.org/
# gem sources -a https://ruby.taobao.org/

# gem install rails —version 4.2
# gem update
# bundle install
# bundle exec rake generate_secret_token
# mkdir -p tmp tmp/pdf public/plugin_assets
# sudo chown -R redmine:redmine files log tmp public/plugin_assets
# sudo chmod -R 755 files log tmp public/plugin_assets
# bundle exec rails server webrick -e production -d

把redmine安装为系统服务:
$vim /etc/rc.local
加入以下代码:
#/usr/local/rvm/rubies/ruby-2.1.8/bin/ruby bin/rails server webrick -e production -b 192.168.124.54 -d

nginx-源码编译安装过程

参考地址:http://nginx.org/en/docs/configure.html
一、准备
1、zlib zlib-1.2.8.tar.gz(http://www.zlib.net)
2、pcre pcre-8.36.tar.bz2(http://www.pcre.org/)
3、openssl openssl-1.0.1j.tar.gz(http://www.openssl.org/)
4、nginx nginx-1.10.0.tar.gz(http://nginx.org/en/download.html)
(约定:所有的源码放在目录 /home/yuanjun/src,所有的操作权限都是在root权限下进行)

- 阅读剩余部分 -