Environment: CentOS 6.4
: Https://bitnami.com/stack/redmine/installer
Preparation: Build a mail server in your intranet (SendMail is used here)
Insufficient: I feel uncomfortable that only using Apache as a Web server
To start the installation:
[[email protected] software]# chmod a+x bitnami-redmine-3.1.2-0-linux-x64-installer.run[[email protected] software]# ./ bitnami-redmine-3.1.2-0-linux-x64-installer.runlanguage selectionplease select the installation language[1] english - english[2] spanish - espaol[3] japanese - Japanese [4] korean - [5] simplified chinese - Simplified Chinese [6] Hebrew - [7] german - deutsch[8] romanian - roman[9] russian - русскийplease choose an option [1] : 5----------------------------- -----------------------------------------------Welcome to the Bitnami Redmine Stack Setup program. ----------------------------------------------------------------------------Select the components you want to install, and clear the components that you do not want to install. When you are ready to continue, click Forward. subversion [y/n] :yphpmyadmin [y/n] :yredmine : y (Cannot be edited) Git [y/n] :y The above selection is correct? [Y/n]: Y----------------------------------------------------------------------------installation folder, select Install Bitnami redmine stack folder to select a folder [/opt/redmine-3.1.2-0]: /usr/local/redmine/ redmine-3.1.2-0----------------------------------------------------------------------------Create an Administrator account Bitnami Redmine Stack admin users create your real name [user name]: yfshareemail address [[email protected]]: [email protected] Login [user]: admin password : Please confirm the password :----------------- -----------------------------------------------------------the Web server port, enter the default port for the Apache server bundle listener. apache web Service Port [80]: 3000---------------------------------------------------------------- ------------Default data configuration language Select default data configuration language:[1] Bulgarian [2] Czech [3] German [4] English [5] Spanish [6] French [7] Hebrew [8] Italian [9] Japanese [10] Korean [11] Dutch [12] Polish [13] Portuguese [14] Portuguese/Brazil [15] Romanian [16]&nbsP; Russian [17] Serbian [18] Swedish [19] Chinese [20] Chinese/traditional Please select option [19] : 19do you want to configure mail support? [y/N]: Y----------------------------------------------------------------------------Configure SMTP settings this is required so your application can send notifications via Email. Default Email provider:[1] gmail[2] Customization Please select the option [1] : 2---------------------------------------- ------------------------------------Configure SMTP Settings this data is stored in the application configuration files and may be visible toothers. for This reason, it is recommended that you do not use your personalaccount credentials. User name []: redmine password : Re-enter :SMTP host []:  172.24.17.120SMTP Port [587]: 25 Secure connection [1] not [2] ssl[3] tls Please select options [3] : 1----------------------------------------------------------------------------Setup is ready to bitnami redmine stack install to your computer. Are you sure you want to continue? [y/n]: y----------------------------------------------------------------------------Installing bitnami redmine stack to your computer, please wait. Installing 0% ______________ 50% ______________ 100% ########################### ##############----------------------------------------------------------------------------Setup has bitnami Redmine Stack installed on your computer. Start the Redmine application. [y/n]: y Information: to access the bitnami redmine stack, go tohttp ://127.0.0.1:3000 from your browser. Press [Enter] Continue:[[email protected] software]#
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/76/EF/wKiom1ZfASWDefCwAACRgzp6QXI849.png "style=" float: none; "title=" 1.png "alt=" Wkiom1zfaswdefcwaacrgzp6qxi849.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/76/EE/wKioL1ZfAY2SVJiBAABHCKbwE8s029.png "style=" float: none; "title=" 2.png "alt=" Wkiol1zfay2svjibaabhckbwe8s029.png "/>
Bitnami installed MySQL root user password is: 123456
The following is a simple modification to the Bitnami configuration:
install_path=/usr/local/redmine/redmine-3.1.2-0
[Email protected] ~]# yum-y install ruby RubyGems
Modify the mail profile to change the default SMTP to ASYNC_SMTP
Vim $install _path/apps/redmine/htdocs/config/configuration.yml[[email protected] config]# head-n 25 Configuration.yml |tail Delivery_method:: Async_smtp async_smtp_settings:tls:false address:172.24.17.12 0 port:25 domain:example.net Authentication:: Login Enable_starttls_auto:true User_name:redmi NE password:123456[[email protected] config]#
[Email protected] redmine-3.1.2-0]# $install _path/mysql/bin/mysql-uroot-p123456
If you feel uncomfortable hitting a bunch of long paths, Bitnami provides a workaround:
[Email protected] redmine-3.1.2-0]# source use_redminebash-4.1# ruby-vruby 2.0.0p647 (2015-08-18 revision 51631) [X86_6 4-linux]bash-4.1# Gem Install bundler
Bitnami MySQL to turn on remote access:
[[email protected] ~]# netstat -tunlp|grep 3306tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2179/mysqld.bin [[email protected] ~]# [[email protected] mysql]# head -n 12 $install _path/mysql/my.cnf[mysqladmin]user=root[mysqld]basedir=/ usr/local/redmine/redmine-3.1.2-0/mysqldatadir=/usr/local/redmine/redmine-3.1.2-0/mysql/dataport=3306socket=/ Usr/local/redmine/redmine-3.1.2-0/mysql/tmp/mysql.socktmpdir=/usr/local/redmine/redmine-3.1.2-0/mysql/tmpmax_ allowed_packet=16m#bind-address=127.0.0.1 //unregister this [[email protected] mysql]#
restart Bitnami MySQL:
[[email protected] redmine-3.1.2-0]# $install _path/ctlscript.sh restart mysql/usr/ local/redmine/redmine-3.1.2-0/mysql/scripts/ctl.sh : mysql stopped151120 15:40:44 mysqld_safe logging to '/usr/local/redmine/redmine-3.1.2-0/mysql/data/mysqld.log ' .151120 15:40:44 mysqld_safe starting mysqld.bin daemon with databases from / usr/local/redmine/redmine-3.1.2-0/mysql/data/usr/local/redmine/redmine-3.1.2-0/mysql/scripts/ctl.sh : mysql started at port[[email protected] redmine-3.1.2-0]# netstat -tunlp|grep 3306tcp 0 0 0.0.0.0:3306 0.0.0.0:* listen 5694/mysqld.bin [[email protected] redmine-3.1.2-0]#[[email protected] ~]# netstat -tunlp|grep 3306tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 5694/mysqld.bin[[email protected] ~]#
To modify the database configuration:
[Email protected] config]# Pwd/usr/local/redmine/redmine-3.1.2-0/apps/redmine/htdocs/config[[email protected] config]# head-n database.yml---# Default setup is given for MySQL with ruby1.9.# Examples for PostgreSQL, SQLite3 and SQL Server can be found on the end.# line indentation must be 2 spaces (no tabs). PRODUCTION:ADAPTER:MYSQL2 database:b Itnami_redmine host:localhost Username:bitnami password:df6baa03c6 encoding:utf8 socket:/USR/LOCAL/REDMINE/REDMI Ne-3.1.2-0/mysql/tmp/mysql.sock[[email protected] config]#
Initialize the new database:
[[Email protected] ~]# path=/usr/local/redmine/redmine-3.1.2-0/ruby/bin: $PATH [[email Protected] htdocs]# pwd/usr/local/redmine/redmine-3.1.2-0/apps/redmine/htdocs[[email protected] htdocs]# rails_env=production bundle exec rake db:migrate[[email protected ] htdocs]# rails_env=production bundle exec rake redmine:load_default_data [[email protected] htdocs]# bundle exec rails server -b 172.24.17.120 webrick -e production -d[[email protected] htdocs]# netstat -anp|grep 3000tcp 0 0 172.24.17.120:3000 0.0.0.0:* LISTEN 6789/.ruby.bin [[email protected] htdocs]#
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/76/EF/wKiom1ZfAdqxgP7gAACaRDtnvBM626.png "style=" float: none; "title=" 1.png "alt=" Wkiom1zfadqxgp7gaacardtnvbm626.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/76/EE/wKioL1ZfAkLhzBPPAACb1wW4tB0615.png "style=" float: none; "title=" 2.png "alt=" Wkiol1zfaklhzbppaacb1ww4tb0615.png "/>
Note: Restart the Bitnami service
[[Email protected] redmine-3.1.2-0]# ./ctlscript.sh -husage: ./ctlscript.sh help ./ctlscript.sh (Start|stop|restart|status) ./ctlscript.sh (Start|stop|restart|status) mysql ./ctlscript.sh (Start|stop|restart|status) apache ./ctlscript.sh (Start|stop|restart|status) subversionhelp - this screenstart - start the Service (s) stop - stop the service (s) restart - restart or start the service (s) status - show the status of the service (s) [[email protected] redmine-3.1.2-0]#
This article from "Pengcheng-soy sauce bottle" blog, declined reprint!
Use Bitnami to build Redmine