问题标签 [centos6]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
2739 浏览

ruby - 在 Centos6 上安装 Rails 3.2.6

我按顺序执行了以下步骤,但在运行 webrick 时遇到问题

我有一个centos 6安装

第 1 步:http: //blog.jeffcosta.com/2011/07/22/install-ruby-version-manager-rvm-on-centos-6/

第二步:server-world.info/en/note?os=CentOS_6&p=mysql

第三步:sudo install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config gem install -y mysql -- --with-mysql-config=/usr/bin/mysql_config

它安装了所有的宝石,没有任何问题。

但是当我从使用rails new simple_cms -d mysql创建的应用程序中加载 webrick

结果: create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
创建 app/controllers/application_controller.rb
创建 app/helpers/application_helper.rb
创建 app/mailers
创建 app/models
创建 app/views/layouts/application.html.erb
创建 app/mailers/.gitkeep
创建 app/models/.gitkeep
创建配置
创建 config/routes.rb
创建 config/application.rb
创建 config/environment.rb
创建 config/environments
创建 config/environments/development.rb
创建 config/environments/production.rb
创建 config/environments/test.rb
创建 config/initializers
创建配置/初始化程序/backtrace_silencers.rb 创建配置
/初始化程序/inflections.rb 创建配置
/初始化程序/mime_types.rb 创建配置
/初始化程序/secret_token.rb 创建配置
/初始化程序/session_store.rb 创建
配置/初始化程序/wrap_parameters.rb
创建配置/语言环境
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create lib/ assets
create lib/assets/.gitkeep
create log
create log/.gitkeep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create script
create script/rails
create test/fixtures
create test/fixtures/.gitkeep
create test/functional
create test/functional/.gitkeep
create test/integration
create test/integration/.gitkeep
create test/unit
create test/unit/.gitkeep
create test/performance/browsing_test.rb
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.gitkeep
create vendor/assets/样式表
create vendor/assets/stylesheets/.gitkeep
create vendor/plugins
create vendor/plugins/.gitkeep
run bundle install
从 [https://rubygems.org/] 获取 gem 元数据。
无法加载 OpenSSL。您必须使用 OpenSSL 支持重新编译 Ruby,或将 Gemfile 中的源代码从“https”更改为“http”。rvm.io/packages/openssl 提供了使用 RVM 使用 OpenSSL 进行编译的说明。

运行 rails 服务器时出现以下错误:

/usr/local/rvm/gems/ruby-1.9.3-p194/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/execjs-1.4.0/lib/execjs.rb:5:in'
来自 /usr/local/rvm/gems/ruby-1.9 .3-p194/gems/execjs-1.4.0/lib/execjs.rb:4:in<top (required)>' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in要求
来自 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2。 0/lib/coffee_script.rb:1:in<top (required)>' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in需要'
来自 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee-script.rb:1 :in <top (required)>' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:inrequire'
来自 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in <top (required)>' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:inrequire'
来自 /usr/local /rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in block (2 levels) in require' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:ineach'
来自 /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in block in require' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:ineach'
来自 /usr/local/rvm/gems /ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:inrequire' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler.rb:119:in要求
来自 /root/railsdev/simple_cms/config/application.rb:7:in<top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:53:in要求'
来自 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:53:in block in <top (required)>' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:50:intap'
来自 /usr/local/rvm/gems/ ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:50:in <top (required)>' <br> from script/rails:6:inrequire'
from script/rails:6:in `'

我该如何解决?
rvm info 给出以下结果

红宝石-1.9.3-p194:

系统: uname: "Linux localhost.localdomain 2.6.32-220.el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386 GNU/Linux" bash: "/bin/bash => GNU bash,版本 4.1.2(1)-release (i386-redhat-linux-gnu)" zsh: " => 未安装"

rvm: 版本: "rvm 1.14.7 (stable) by Wayne E. Seguin, Michal Papis [https://rvm.io/]" 更新: "1 小时 22 分 29 秒前"

ruby:解释器:“ruby”版本:“1.9.3p194”日期:“2012-04-20”平台:“i686-linux”补丁级别:“2012-04-20 修订版 35410”full_version:“ruby 1.9.3p194(2012 -04-20 修订版 35410) [i686-linux]"

家园:宝石:“/usr/local/rvm/gems/ruby-1.9.3-p194” 红宝石:“/usr/local/rvm/rubies/ruby-1.9.3-p194”

二进制文件: 红宝石:“/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby” irb:“/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/irb”宝石:“/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/gem” 耙子:“/usr/local/rvm/gems/ruby-1.9.3-p194/bin/rake”

环境:路径:“/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin:/usr/local/ rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin: /bin:/root/bin" GEM_HOME: "/usr/local/rvm/gems/ruby-1.9.3-p194" GEM_PATH: "/usr/local/rvm/gems/ruby-1.9.3-p194:/usr /local/rvm/gems/ruby-1.9.3-p194@global" MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.9.3-p194" IRBRC: "/usr/local/rvm/rubies/ruby -1.9.3-p194/.irbrc" RUBYOPT: "" gemset: ""

0 投票
1 回答
620 浏览

centos - 如何在 centos 6 和 Roundcube 中管理电子邮件帐户

我在我的 centos 6 服务器上设置了圆形立方体。现在想创建一个管理面板,以便我可以管理用户。我找不到在已经运行的服务器上安装像 iredadmin 这样的管理员的方法。我有快递邮件服务器。谁能给个更好的建议。

0 投票
3 回答
61970 浏览

json - 在 centos 上安装 perl-JSON

当我尝试运行 perl 脚本(在我的 centos 6 机器上)时,我收到以下消息:

谷歌搜索了一下,我发现我需要安装那个模块;但是,当我打字时:

我收到这条消息:

我该怎么做才能运行该脚本?

我的 perl 版本是v5.10.1

谢谢,

0 投票
2 回答
641 浏览

php - linux服务器文件下载连接限制

我正在运行一个专用服务器... Centos 6 PHP 5.3.3 Nginx 1.0.15

Nginx 使用 fastcgi 运行 php。

服务器使用远程 sql 与另一台服务器通信。

一个名为 download.php 的文件启动一个 mysql 连接,检查数据库中的一些详细信息,然后开始使用内容置换将字节流式传输给用户。

无论我做什么,我都无法同时连接下载5个以上的文件。例如,如果我使用文件管理器下载文件,最多可以建立5个连接,其余超时。

我已经将 nginx 设置为最多接受 32 个连接,mysql 连接在文件开始流式传输之前关闭,因此那里不应该存在连接限制问题。

有人知道如何增加连接数吗?也许知道我还能检查什么?

谢谢。

0 投票
1 回答
937 浏览

php - MongoDB PHP驱动无法安装Centos 6云服务器

我已经在我的 Centos 6 云服务器中安装了 MongoDB 服务。现在我需要在我的服务器上安装 php-pecl-mongo-1.2.10-1.el6.remi.x86_64.rpm ......但它给出了“找不到包”。任何人都可以解决这个问题吗?我的 php 版本是 PHP 5.3.3。

我正在使用 putty 来配置 Centos 6 服务器。我有管理员权限来配置 php.ini。

0 投票
4 回答
25331 浏览

mono - 在 Centos 6 上安装最新的单声道

我是 Linux 新手(字面意思是新 - 使用过几次),我尝试通过 yum 安装单声道;但我得到了一个不支持 .NET 4 的过时版本

如何安装单声道 2.10.8?

0 投票
1 回答
4467 浏览

python - Python安装pyrit错误,CentOS中的命令gcc

我无法安装,控制台中的所有代码都无法编译!所以在 centos 6 32 bits -- run and later 中,我有依赖 python 和 python-dev、工具等。但我不知道,如果你缺少另一个

硫黄

python setup.py 构建

任何的想法?感谢帮助。

0 投票
0 回答
426 浏览

ruby-on-rails - centos 6的nginx 408错误

我们有一个负载均衡器设置,后面有几个运行 nginx/unicorn/rails 的 centos 盒子。

我注意到我们只在 centos6 机器上看到 408 错误,而 centos5 服务器很好。所有机器上的 nginx 和 /proc 配置都是相同的。

我知道这些连接是由现代浏览器创建的。我只是想找出为什么我们只在 centos6 上获得那些 408er。有任何想法吗?

0 投票
1 回答
9037 浏览

mongodb - 我如何在 Centos 6 中安装 php5-dev

我正在使用 centos 6。我想在我的云服务器上安装 php5-dev。因为在我的服务器中我得到了 phpize 错误。

这在我的服务器上不起作用。我的 PHP 版本是 5.3.3。我需要pecl install mongo

0 投票
4 回答
13664 浏览

mysql - Centos 6 64bit 启用 my.cnf

有人可以告诉我如何my.cnf在 CentOS 6 中启用选项吗?

我有所有预期的.cnf文件,/usr/share/mysql但它们根本不起作用。