CENTOS7 installation Redmine

Source: Internet
Author: User
Tags character set gettext gmp install openssl openssl pack redmine nginx reverse proxy
CENTOS7 System Installation Redmine Project Management method:
Because of the wall, we need to modify the image source of Ruby and Gem https://gems.ruby-china.org/

1. Install the CentOS System Package and Compatibility Pack first

Yum-y Install patch make GCC gcc-c++ gcc-g77 flex* Bison file
Yum-y Install Libtool libtool-libs autoconf kernel-devel
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 Ncurses-devel
Yum-y Install Gmp-devel Pspell-devel
Yum-y Install Unzip
Yum-y Install Automake libmcrypt* libtool-ltdl-devel*
Yum-y Install readline* libxslt* pcre* net-snmp* gmp* libtidy*
Yum-y Install imagemagick* svnversion*

2, Installation RVM program
1. Execute command: Bash < < (curl-l Https://get.rvm.io)
2. Execute view version command: RVM-V
3. After successful installation, execute the following command to reload RVM Reload
* * NOTE * *:
The RVM version is not displayed, proving that the installation RVM failed. Reinstall it again.

3. Install Ruby Program
1. Download and install the latest version: RVM install Ruby
2. Execute view version command: GEM-V
* * NOTE * *:
The version does not appear to prove that Ruby installation failed. Reinstalling no gem Fourth step is not possible.
3. Modify the Ruby,gem image source (https://gems.ruby-china.org/)
3.1: Modify the image source: Gem sources--add https://gems.ruby-china.org/--remove https://rubygems.org/
3.2: View current mirror Source: Gem Sources-l # Make sure only gems.ruby-china.org, if there are multiple please delete other mirror source
3.3: Delete the image source: Gem sources-r URL address #注: The default URL address must have "/", otherwise it will not be deleted.
3.4: Set bundler Gem source image command: Bundle config mirror.https://rubygems.org https://gems.ruby-china.org


4. Installation of Rails and related dependency packages

1. Installation of Redmine required by the Gem Pack file management compatible dependent dependency expansion pack
Gem Install Rails
Gem Install Rakegem
Gem Install MYSQL2

5, install Nginx (if installed please ignore)
1. Add Nginx repository: Yum install Epel-release
2. Installing Nginx:yum install Nginx
3. Starting Nginx:systemctl start Nginx
4. Set boot up: Systemctl enable Nginx
* * NOTE * *:
If the firewall is not turned off (ignore), you need to perform the following naming to turn on HTTP and HTTPS traffic:
sudo firewall-cmd--permanent--zone=public--add-service=http
sudo firewall-cmd--permanent--zone=public--add-service=https
sudo firewall-cmd--reload

6, install MARIADB (if installed please ignore)
1. Installing mariadb:yum-y install MARIADB Mariadb-server
2. Start Mariadb:systemctl start mariadb
3. Set boot up: Systemctl enable MARIADB
4. Related Settings
4.1: Initialize root password: mysql_secure_installation (after the specific operation of Baidu Goole)
4.2: Configure the MARIADB character set:
1.VI/ETC/MY.CNF, adding Character-set-server=utf8 in [mysqld]
2.vi/etc/my.cnf.d/client.cnf adding Default-character-set=utf8 in [client]
3.VI/ETC/MY.CNF.D/MYSQL-CLIENTS.CNF, add Default-character-set=utf8 in [MySQL]
4. Restart: systemctl Restart MARIADB

7. Create a Redmine database

1. Login Mysql:mysql-uroot-p
2. Create DB and specify the default character set: Create DATABASE redmine default character set UTF8;
3. Create an administrative user and specify permissions: Grant all on redmine.* to redmine@localhost identified by ' ********* '
4. Refresh Permissions table: Flush privileges;
* * NOTE * *:
For security reasons, you cannot use the root user directly, so create a new user, remember to save the account, password, and database name, which you need when setting up the Redmine database.


5. Installing Redmine
1. Official website: http://www.redmine.org/projects/redmine/wiki/Download, download the corresponding version
2. My side uses is: Stable releases 3.4.4
2.1: Download: wget http://www.redmine.org/releases/redmine-3.4.4.tar.gz
2.2: Unzip: TAR-ZXVF redmine-3.4.4.tar.gz
2.3: Move to the corresponding directory: MV Redmine-3.4.4.tar.gz/usr/bin/redmine
2.4: Switch to Redmine directory: Cd/usr/bin/redmine
2.5: Initialize configuration file: CP config/database.yml.example CONFIG/DATABASE.YML
2.6: Modify the database configuration file: Modify the data for the 7th step of the related configuration of the production item
Production
Adapter:mysql2
Database:redmine
Host:localhost
Username:redmine
Password: "*******"
Encoding:utf8
2.7: Enter/use/bin/redmine to modify Gemfile's Mirror source: VI gemfile
SOURCE ' https://gems.ruby-china.org '

2.8: Enter/use/bin/redmine, install dependent package: Bundle install
2.9: Initialize Redmin database via migrate: Rake db:migrate rails_env= "Production"
2.10: Load configuration: Rake redmine:load_default_data rails_env= "Production"
2.11: Generate the Rails cookie key: Rake Generate_secret_token
2.12: Start redmine:ruby/usr/bin/redmine/bin/rails server webrick-e production-d #/usr/bin/redmine here for you redmine directory
2.13: Test: Curl http://localhost:3000

6. When the above is complete, nginx reverse proxy redmine 3000 port.
1. Modify Nginx.conf:vi/etc/nginx/nginx.conf
server {
Location/{
Proxy_pass http://localhost:3000;
}

}
7. Login Redmine
2. Access redmine Default login user password: admin/admin, after login expires, need to change the password immediately

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.