tag: Ar CTI line of http OS Io file data
# New installation: # delete old rubyyum erase Ruby ruby-libs ruby-mode ruby-rdoc ruby-IRB ruby-ri ruby-docswget http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gzwget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gzwget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gzwget uninstall install OpenSSL-devel zlib-devel GCC gcc-C + make Autoconf Readline-devel curl-devel expat-devel gettext-devel # Node install tar-zxf node-v0.6.6.tar.gz CD node-v0.6.6. /configure make install # Install the yamltar-zxf yaml-0.1.4.tar.gz CD yaml-0.1.4. /configure -- prefix =/usr/local make install # Install Ruby tar-zxf ruby-2.1.1.tar.gz CD ruby-2.1.1. /configure -- prefix =/usr/local -- enable-shared -- enable-pthread -- disable-install-doc -- With-opt-Dir =/usr/local/lib make install # install magickyum install ImageMagick-devel # Install gemtar-zxf rubygems-2.4.1.tgzcd rubygems-2.4.1ruby setup. rbcd/usr/local/bin/gem. /gem install rails # MySQL database create database redmine Character Set utf8; create user 'redmine '@ 'localhost' identified by 'my _ password'; grant all privileges on redmine. * To 'redmine '@ 'localhost'; # configure the redmineredmine root directory config/database. yml. example: Change the file name to database. ymlproduction: adapter: mysql2 Database: redmine HOST: localhost Username: redmine password: my_password # Run the following command in the root directory of redmine: Gem install bundlerbundle install -- without development testrake plugin = production rake DB: migraterails_env = production redmine_lang = ZH rake redmine: load_default_data # Start Ruby script/rails server webrick-e production-D # The access address is http: // ip: 3000 # The Super administrator username and password is: admin/admin ###### backup and recovery ####### backup redmine/config/database. mysqldump-uroot-P database> back in yml. SQL backup attachment redmine/Files # restore: mysqldump-uroot-P database <back. SQL # Replace redmine/files directly with attachments