预览加载中,请您耐心等待几秒...
1/7
2/7
3/7
4/7
5/7
6/7
7/7

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

-------------------------------------------------------------------------- 先安装rvm 步骤1-安装RVM $gpg--keyserverhkp://keys.gnupg.net--recv-keys409B6B1796C275462A1703113804BB82D39DC0E3 $curl-sSLhttps://get.rvm.io|bash-sstable #如果上面的连接失败,可以尝试: $curl-Lhttps://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer|bash-sstable 如果提示“commandnotfound”,可以运行下面的命令: $source/usr/local/rvm/scripts/rvm 用RVM安装Ruby环境 $rvmrequirements root@ubuntu:~#rvminstall2.3.0 RVM装好以后,需要执行下面的命令将指定版本的Ruby设置为系统默认版本 $rvmuse2.3.0--default geminstallrake geminstallrails Redmine安装 wgethttp://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz tarzxvfredmine-0.8.4.tar.gz mvredmine-0.8.4/usr/local/redmine cd/usr/local/redmine/config 设置数据库参数 cpdatabase.yml.exampledatabase.yml vidatabase.yml production: adapter:mysql database:redmine host:localhost username:redmineuser password:redminepw encoding:utf8 保存退出:wq 创建mysql数据库 /usr/local/mysql/bin/mysql-uroot-p Mysql>createdatabaseredminedefaultcharactersetutf8; grantallonredmine.*toroot; grantallonredmine.*toroot@localhost; grantallonredmine.*toredmineuser; grantallonredmine.*toredmineuser@localhost; setpasswordforredmineuser@localhost=password(‘redminpw’); Mysql>exit; gemsources-aHYPERLINK"http://rubygems.org"http://rubygems.org gemsources-aHYPERLINK"https://rubygems.org"https://rubygems.org gemsources-ahttps://ruby.taobao.org/ apt-getinstallruby-dev geminstalljson-v'1.8.2' apt-getinstalllibmysqlclient-dev geminstallmysql2–v‘0.3.21’ apt-getinstalllibmagick++-dev geminstallrmagick-v'2.15.4' bundleinstall 提示Anerroroccurredwhileinstallingjson(1.8.1),andBundlercannotcontinue. Makesurethat`geminstalljson-v'1.8.1'`succeedsbeforebundling. 手动启动redmine: 在redmine的bin目录下执行: #rubyscript/railsserverwebrick-eproduction 提示使用bin/rails,改成 #rubybin/railsserverwebrick-eproduction 访问http://localhost:3000/ 开机启动redmine: 1.安装redmine http://www.redmine.org/projects/redmine/wiki/RedmineInstall 2.设置开机启动 创建并打开文件vi/etc/init.d/redm