REDMINE 注意事项
2018-11-19 本文已影响0人
M_ENG
1:所有操作必须要以普通用户操作 设置普通用户为管理员权限
因为安装需要用到Bundel 不能用root 进行 Bundel install
之后用普通用户执行Bundel install 但是 redmine 文件夹是root权限。执行Bundel install会出现下面的错误
There was an error while trying to write to
`/usr/local/redmine/redmine-3.4.6/.bundle/config`. It is likely that you need to
grant write permissions for that path.
解决方式:将创建的Redmine 设置为任何用户可读可写 chmod -R 777 /usr/local/redmine
也可以利用root权限将这个文件夹赋予只当前普通用户的读写权限
2:An error occurred while installing nokogiri (1.6.8.1), and Bundler cannot continue.Make sure that gem install nokogiri -v '1.6.8.1' --source 'https://rubygems.org/'
succeeds before bundling.
出现这个错误执行下面命令、继续执行bundle install --without development test
sudo yum install -y gcc ruby-devel zlib-devel
gem install nokogiri
3:An error occurred while installing mysql2 (0.4.10), and Bundler cannot continue.Make sure that gem install mysql2 -v '0.4.10' --source 'https://rubygems.org/'
succeeds before bundling.
出现这个错误执行下面命令、继续执行bundle install --without development test
yum install mysql-devel
4:An error occurred while installing rmagick (2.16.0), and Bundler cannot continue.Make sure that gem install rmagick -v '2.16.0' --source 'https://rubygems.org/'
succeeds before bundling.
出现这个错误执行下面命令、继续执行bundle install --without development test
yum install ImageMagick-devel
5:执行RAILS_ENV=production bundle exec rake db:migrate报
Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE INDEX wiki_pages_wiki_id_title
ON wiki_pages
(wiki_id
, title
)
ALTER DATABASE redmine DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
//如果命令执行无效 直接改利用工具改库的编码 utf-8 和utf8_general_ci
5:sudo chown -R redmine:redmine files log tmp public/plugin_assets
chown: 无效的用户: "redmine:redmine"
redmine替换成你当前登录linux的用户 用户名:用户名