Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
xautjzd
@xautjzd
Member
NO. 4920 / 2012-12-09

[email protected]
西安
78 Topics / 346 Replies
0 Followers
0 Following
9 Favorites
You will be what you want to be
GitHub Public Repos
  • dotvim 6

    Vimconfig

  • ActivityRecognition 4

    行为识别方法库,将训练好的模型保存

  • personal-notes 1

    my own notes

  • kotlin-template 1

    kotlin template

  • nextjs-boilerplate 0

  • local-transfer 0

    Transfer file between devices in the same local area network via website like snapdrop

  • nvim-config 0

    My neovim config

  • go-snippets 0

    some go snippets

  • xautjzd.github.io 0

    Personal blog built on Hugo

  • emacs.d 0

    My Emacs configuration

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 部署完成后访问 403 Forbidden at April 20, 2014

    #11 楼 @Rei 额,参考 的意思不是照搬 😖

  • passenger-install-nginx 编译 Nginx 出错 at April 20, 2014

    #19 楼 @hbin 不是,在阿里云的 vps 上进行的

  • 部署完成后访问 403 Forbidden at April 20, 2014

    #9 楼 @ericguo 谢谢,那我还是先把能关的服务先关掉,再编译试试吧。

  • 部署完成后访问 403 Forbidden at April 20, 2014

    #7 楼 @ericguo 编译时开始提示内存不足,然后通过您提供的这个方法解决了 (看似解决),然后继续进行编译的过程,到后面出现http://ruby-china.org/topics/18731错误,后来查资料,貌似还是由于内存不足引起的,所以内存不足的问题没有从根本上解决,编译还是无法通过

  • 部署完成后访问 403 Forbidden at April 20, 2014

    #5 楼 @ericguo 其实最好的办法就是自己编译了,但是现在 VPS 目前只有 512 的内存,我尝试过编译,每次都提示内存不足。我再考虑下推倒安装 Uuntu 或者更新 vps 吧

  • 部署完成后访问 403 Forbidden at April 20, 2014

    #1 楼 @ericguo 我后来配置的是 passenger4.0.41,但是也不行

  • 大家看看 iamrubyer.com 这个域名如何 at April 20, 2014

    #8 楼 @leozwa 神解释

  • passenger-install-nginx 编译 Nginx 出错 at April 20, 2014

    #13 楼 @Rei Linode 确实看上去很诱人,但是价格略贵,DigitalOcean 看上去不错,10$/mon 的价格这配置比阿里云强多了,阿里云 55 元/mon,512m 内存

  • passenger-install-nginx 编译 Nginx 出错 at April 20, 2014

    #10 楼 @Rei 有换 Ubuntu 的冲动了,现在上面还搭建了邮件服务器,花了两天配置的,推倒重来又得重新配环境,感觉可惜。不过总算是长知识了,知道 CentOS 不足点了。有没有性价比比较高的 VPS 推荐?虽然阿里云不错,但是还是无法搭建 ShadowSocks 代理,所以接下来准备买个便宜点的国外的 VPS。

  • passenger-install-nginx 编译 Nginx 出错 at April 20, 2014

    @lonre 通常做法是采用 virgrant 在本地搭建一直的开发环境?

  • passenger-install-nginx 编译 Nginx 出错 at April 20, 2014

    #5 楼 @lonre 感觉虚拟机运行的有点慢,本地机子性能不是很好,所以有点担忧。

  • passenger-install-nginx 编译 Nginx 出错 at April 20, 2014

    #6 楼 @Rei

    The RPMs are currently unmaintained. As such, the repository only contains Phusion Passenger 3.x (the latest version is 4.x), which did not support Node.js, Meteor, multiple Rubies, etc. For more recent versions of Phusion Passenger, you are suggested to install from gem or tarball instead.
    

    官网说 rpm 包没维护了,所以感觉用着有点忐忑。这个应该没事吧

  • passenger-install-nginx 编译 Nginx 出错 at April 20, 2014

    #2 楼 @Rei 看网上答案,说可能是由于内存不足引起的

    Increasing RAM size from 256 MB to 1 GB solved the issue, initially i was running an cloud instance with 256 MB of RAM, This makes g++ don't have enough memory to compile.
    

    第一次编译过程中确实提示过这个问题,但是它建议说加 swap,所以我又加了 swap。再次编译后没提示了,但是走到这里编译出错。所以想会不会还是内存不足导致这个编译出错?

  • passenger-install-nginx 编译 Nginx 出错 at April 20, 2014

    #2 楼 @Rei 好谢谢,我改正下

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #32 楼 @Rei 谢谢。

    Passenger 3 只支持在全局域设置 passenger_ruby

    终于知道原因。第一次部署,找不到熟人帮忙,只能自己慢慢摸索,网上找资料各种尝试了。过程中确实碰到各种问题,有的还不理解,有时候有种无从下手的感觉,连搜都不知道怎么搜,搜索只能针对太具体的问题比较有效。所以 Ruby-China 上有人稍微给点提示都是莫大的帮助,从昨晚到现在已经有了很大进展。真的是太感谢你们了!

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #27 楼 @ericguo 额,刚才编译安装时确实看到过默认的安装路径为/opt/nginx,但是刚才去看了下,发现/opt/nginx/下什么都没有

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #19 楼 @ericguo @Rei @lonre 突然发现/etc/nginx/conf.d/下有个 passenger.conf 文件,打开一看,里面配置了 passenger_root 和 passenger_ruby,但却是 ruby1.8 的,估计罪魁祸首在这。难道这是 CentOS 与 Ubuntu 不同的地方?而且貌似 passenger_ruby 只能在这个里面配置,在/etc/nginx/nginx.conf 文件或者/etc/nginx/conf.d/xxx.conf 文件里配置便会出现:

    [emerg] "passenger_ruby" directive is not allowed here in /etc/nginx/nginx.conf
    

    类似的错误。通过yum install nginx-passenger安装的貌似是 passenger3 版本,而通过 gem 安装则是 passenger4

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #23 楼 @lonre 是的

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #19 楼 @ericguo 记着了,下次一定换成 Ubuntu12.04。Ruby 的安装是在 root 下进行的。但是最后部署后,提示的错误表明:应用执行环境的 Ruby 版本与系统安装的版本不符

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #20 楼 @lonre 我 ruby 就是在 root 下安装的,所以没有问题,passenger 的安装也是照着官网资料来安装的,安装过程比较顺利,没有任何错误发生。但是部署完成后,提示的版本不同

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #13 楼 @lonre 请问如何改变应用执行的环境变量?网上找了资料,但是没找到。或者有没有推荐的参考资料?

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #14 楼 @Rei @ericguo 按照 @ericguo 建议的方式来,在安装完 passenger 后,再执行passenger-install-nginx-module,便出现如下问题: 当时买阿里云时,推荐的是 CentOS,所以选了它。

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #10 楼 @ericguo 好的,我试试。非常感谢

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #8 楼 @Rei 谢谢。我确实没有在配置里面配置 passenger_ruby,不过配置后出现了:nginx: [emerg] "passenger_ruby" directive is not allowed here in /etc/nginx/nginx.conf。我再查查什么原因

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #7 楼 @ericguo CentOS。我安装 passenger 的方式是yum install nginx-passenger,参考的是http://www.modrails.com/documentation/Users%20guide%20Nginx.html#deploying_a_rack_app,感觉很奇怪,ruby -v也是 2.0. 0 的

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #3 楼 @ericguo 我的 ruby 版本一直都是 2.0.0 p 451 的

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #1 楼 @ericguo 但是需要用它来作为 java 运行时环境吧

  • 最低配最傻瓜式的部署需要准备哪些东西? at April 19, 2014

    #13 楼 @hbin 谢谢指点,我参考去,总算有比较直观的参考了。

  • 最低配最傻瓜式的部署需要准备哪些东西? at April 19, 2014

    #9 楼 @cassiuschen #8 楼 @Rei 我在 mydomain.conf 里配置了 root 目录,但是部署完成后,并将 www.mydomain.com 映射到这个上面来,但是访问时候出现的是 nginx 主页,这可能是什么原因?

  • Prev
  • 1
  • 2
  • 3
  • 4
  • …
  • 11
  • 12
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English