Verify the ruby version if there is an uninstall install the latest
Yum Install gcc* OpenSSL openssl-devel-y
wget Https://ruby.taobao.org/mirrors/ruby/ruby-2.3.1.tar.gz./confugremake;make Install
Ruby-v detection Version
Installing RubyGems
If Gem-v is installed, we need to upgrade to 2.6.6 to perform the gem update--system
If found in the middle of similar httpsxxxxx error, because the installation of Ruby is not installed OpenSSL Oh, because the upgrade is to link the official website, so will be wall, we replace the download source
[[email protected] data]# gem source-l*** current SOURCES ***https://ruby.taobao.org/#这是我换了之后的gem SOURCES-- Remove https://rubygems.org/gem sources --add https://ruby.taobao.org/#然后在查看 and Upgrade gem Update-- Systemgem-v #查看版本 # Installing Railsgem install rails #如果没有更换源 download will be very slow and may fail rails-v #这里我们都使用的最新版yum install sqlite- Develgem Install sqlite3# Create Project Cd/data/softwaremkdir RUBY-PROJECTCD ruby-project# execute command Create project rails new MYTESTCD MyTest Execute Bundle Install #这里如果不更换源 will also wait for a long time. We replaced Gemfile inside the first line to replace the Taobao source. Execution rails s Discovery will error. Execute VI gemfile at last add gem ' Therubyracer ' save exit. Execute command bundle install install the necessary installation package for error in 10th Step command (follow the prompts to install until bundle complete! is complete) finally execute rails s -b 172.16.38.8 Service Success Browser via address http://172.16.38.8:3000 access will appear rails interface # installation Redmine Download and unzip the redmine #数据库安装 in the/data/software directory create database Redmine by creating Redmine. #分配授权账号grant All Privileges On redmine.* to ' redmine ' @ ' localhost ' identified by ' 123456 '; flush privileges; #配置redmine Database configuration file cd Redmine 3.3.0/config database.yml.example Copy and rename the contents of Database.yml edit database.yml as follows Production:adapter:mysql2 Database:redmine host:172.16.38.8 USERNAME:REDMI NE password: "123456" encoding:utf8# close save to execute command gem install bundler execute command bundle install --without development test Execute Command bundle install --without development test rmagick execute command again bundle install --without development test in/data/ Create a file in the software/redmine-3.3.0 directory gemfile.local edit the following # Gemfile.local gem ' Puma ' Execute command bundle exec rake generate_secret_token execute the following command in the/data/software/redmine-3.3.0 directory Create a table in the database Rails_env=production bundle exec rake db:migrate in/data/software/ Execute the following command in the redmine-3.3.0 directory generate the data rails_env=production redmine_lang=zh bundle exec rake Redmine:load_default_data &nBSP; Execute the following command mkdir-p tmptmp/pdfpublic/plugin_assets sudochown-R redmine:redminefiles log tmp public/plugin_assets sudochmod -r 755 files log tmp public/plugin_assets #执行如下命令启动服务 bundle exec rails server webrick -e production -b 192.168.1.206 #在浏览器中打开http://192.168.1.206:3000
#使用nginx Show
can start without installing NG
Installing the Integrated NG module
Gem Install passenger
Use the Passenger-install-nginx-module command to automatically integrate NG
Some of the choices in the middle are simple enough to say. Middle to install Yum install-y libcurl-devel
Set NG path, and so on. Just wait for the auto to complete download and install, modify nginx.conf
Location/{ root html/redmine/public; Index index.html index.htm; Passenger_enabled on; }
Finally, copy the/data/softwaer/redmine3.3.0 to/usr/local/nginx/html/redmine and then start ng
Centos 6.5 Deployment Redmine 3.3