1.LoadError (no such file to load — openssl)
解决:rvm remove ruby-版本 ,重装即可
2."/xxx/public/index.html" is forbidden (13: Permission denied), client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", host: "0.0.0.0"
解决:请将项目移动到/var/www即可或者在相应的项目目录下执行服务启动
解析:这主要是修改另SELINUX上下文:从所有httpd脚本和守护进程中读取
3 .Exception Errno::EACCES in PhusionPassenger::Rack::ApplicationSpawner (Permission denied - /xxx/Gemfile.lock) (process 11638, thread #<Thread:0x98aaf30>):
解决:右键Gemfile.lock 修改其它访问的权限为读写即可
4./rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.2.6/lib/mysql2/client.rb:37:in `connect': Access denied for user 'root'@'localhost' (using password: YES) (Mysql2::Error)
解决:用户或密码有误
5/rubygems/custom_require.rb:55:in `require': no such file to load -- rails/cli (LoadError)
6 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
解析:服务未启动
7 二进制安装mysql时候注意mysql驱动的安装:gem install mysql2 -v 0.2.6 -- --with-mysql-lib=/usr/local/mysql/lib/mysql --with-mysql-include=/usr/local/mysql/include/mysql/
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby192/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-libmysqllib
--without-libmysqllib
8 missing mysql.h
解决:bundle config build.mysql2 --with-mysql-config=/usr/local/mysql/bin/mysql_config
Rails部署积累
最新推荐文章于 2016-08-04 11:51:29 发布