centos 安裝redmine

來源:互聯網
上載者:User

標籤:http   os   io   檔案   資料   ar   cti   line   

#新裝:#刪除舊的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 http://production.cf.rubygems.org/rubygems/rubygems-2.4.1.tgz#基礎包安裝yum install openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel#node安裝tar -zxf node-v0.6.6.tar.gz    cd node-v0.6.6    ./configure    make    make install#安裝yamltar -zxf yaml-0.1.4.tar.gz    cd yaml-0.1.4    ./configure --prefix=/usr/local    make    make 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    make install#安裝magickyum install ImageMagick-devel#安裝gemtar -zxf rubygems-2.4.1.tgzcd rubygems-2.4.1ruby setup.rbcd /usr/local/bin/gem./gem install rails#Mysql資料庫CREATE DATABASE redmine CHARACTER SET utf8;CREATE USER ‘redmine‘@‘localhost‘ IDENTIFIED BY ‘my_password‘;GRANT ALL PRIVILEGES ON redmine.* TO ‘redmine‘@‘localhost‘;#配置redmineredmine根目錄 config/database.yml.example 修改檔案名稱為database.ymlproduction:  adapter: mysql2  database: redmine  host: localhost  username: redmine  password: my_password#在redmine根目錄下依次執行以下命令gem install bundlerbundle install --without development testrake generate_secret_tokenRAILS_ENV=production rake db:migrateRAILS_ENV=production REDMINE_LANG=zh rake redmine:load_default_data#啟動ruby script/rails server webrick -e production -d#訪問地址是http://IP:3000#超級管理員的使用者名稱密碼為:admin/admin###### 備份與恢複 ########備份redmine/config/database.yml 中的資料庫mysqldump -uroot -p database > back.sql備份附件 redmine/files#恢複:mysqldump -uroot -p database < back.sql#附件直接替換redmine/files


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.