One, configure the network card, can access the Internet (slightly)
========================================================
Second, the configuration environment
Yum-y Install patch make GCC gcc-c++ gcc-g77 flex* Bison file
Yum-y Install Libtool libtool-libs libtool-ltdl-devel* autoconf kernel-devel automake libmcrypt*
Yum-y Install libjpeg libjpeg-devel libpng libpng-devel libpng10 libpng10-devel gd gd-devel
Yum-y Install FreeType freetype-devel libxml2 libxml2-devel zlib zlib-devel
Yum-y Install glib2 glib2-devel bzip2 bzip2-devel libevent libevent-devel
Yum-y Install ncurses ncurses-devel Curl Curl-devel e2fsprogs
Yum-y Install e2fsprogs-devel krb5 krb5-devel libidn libidn-devel
Yum-y install OpenSSL openssl-devel vim-minimal nano sendmail
Yum-y Install Fonts-chinese GetText gettext-devel
Yum-y Install Gmp-devel Pspell-devel
Yum-y Install readline* libxslt* pcre* net-snmp* gmp* libtidy*
Yum-y Install imagemagick* subversion*
Yum-y Install wget
======================================================
Third, install MySQL
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
RPM-IVH mysql-community-release-el7-5.noarch.rpm
Yum Install Mysql-community-server Mysql-community-devel
Rpm-qa |grep MySQL #检查安装
=======================================================
Iv. installation of RVM
\curl-ssl Https://get.rvm.io | Bash
SOURCE/ETC/PROFILE/USR/LOCAL/RVM/BIN/RVM Reload
RVM-V #: The version number does not appear please reload
=======================================================
V. Installing Ruby
RVM list Known #查看可安装列表
RVM Install ruby-2.1.8 #官方只支持1. Version between 9~2.2
Gem-v #如果未显示版本, re-install Ruby
===========================================================
Vi. Updating the gem source
Gem Source-l
Gem Source-r https://rubygems.org/#: The default URL address must have "/", otherwise it will not be deleted.
Gem Source-a https://ruby.taobao.org/
Gem Source-l #: Confirm only https://ruby.taobao.org/
=======================================================
Vii. Installation of GEM components
Gem Install Rails
Gem Install Rake
Gem Install MYSQL2
=======================================================
Viii. Configuring Redmine database files
Cd/usr/local/redmine/config
CP Database.yml.example DATABASE.YML
VI database.yml
Production
Adapter:mysql
Database:redmine
Host:localhost
Username:redmineuser
Password:redminepw
Encoding:utf8
======================================================
Nine, configure MySQL
Service mysqld Start
Mysql-u root-p
Mysql> CREATE DATABASE redmine default character set UTF8;
Grant all on redmine.* to root;
Grant all on redmine.* to [email protected];
Grant all on redmine.* to Redmineuser;
Grant all on redmine.* to Redmineuser @localhost;
Set password for [email protected]=password (' REDMINPW ');
Set password for [email protected]=password (' newpass ');
Flush privileges;
Exit
=======================================================
X. Installation of Redmine
cd/usr/local/
SVN Co http://svn.redmine.org/redmine/branches/3.2-stable/
MV 3.2-stable Redmine
CD Redmine
Bundle Install
=====================================================
Xi. Initialization of Redmine
Bundle EXEC Rake Generate_secret_token
Rails_env=production Bundle EXEC Rake db:migrate
Rails_env=production bundle EXEC Rake Redmine:load_default_data #初始化数据选择zh
====================================================
Twelve
MKDIR-P tmp tmp/pdf Public/plugin_assets
sudo chmod-r 755 files log tmp public/plugin_assets
===================================================
13. Open Service
Nohup Ruby bin/rails Server webrick-e production-b 0.0.0.0-p &
Bundle EXEC Rails Server webrick-e production-d
===================================================
14. Close the service
(PS command to find out the PID number of this process, and then kill, it seems like this only, I looked at the--help inside, there is no stopping parameters.) )
# PS aux | grep Ruby
# kill-9 [PID]
This article is from the "Zhangl" blog, make sure to keep this source http://214986.blog.51cto.com/204986/1762314
Centos 7 Installation Redmine 3.X