首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在debian-10上使用nginx设置passenger

在debian-10上使用nginx设置passenger
EN

Stack Overflow用户
提问于 2019-08-29 22:44:57
回答 4查看 1.3K关注 0票数 1

我的新服务器安装是从debian-10开始的。

nginx运行良好,由apt install nginx-full安装,但后来想安装passenger,在这种情况下https://www.phusionpassenger.com/library/install/nginx/install/oss/stretch/ (buster没有列出),我无法让它运行。

代码语言:javascript
复制
1) sudo apt-get install -y dirmngr gnupg
2) sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-3) keys 561F9B9CAC40B2F7
3) sudo apt-get install -y apt-transport-https ca-certificates

# Add our APT repository
4) sudo sh -c 'echo deb https://oss-5) binaries.phusionpassenger.com/apt/passenger stretch main > /etc/apt/sources.list.d/passenger.list'
5) sudo apt-get update

# Install Passenger + Nginx module
6) sudo apt-get install -y libnginx-mod-http-passenger

=>在步骤5中,结果是:

代码语言:javascript
复制
root@33041:/# apt update
Hit:1 http://debian.ethz.ch/debian buster InRelease
Hit:2 http://debian.ethz.ch/debian buster-updates InRelease                                    
Hit:3 http://security.debian.org/debian-security buster/updates InRelease                                          
Ign:4 https://oss-binaries.phusionpassenger.com/apt/passenger stretch InRelease                                    
Hit:5 https://oss-binaries.phusionpassenger.com/apt/passenger stretch Release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
root@33041:/# 

在第6步中,结果:

代码语言:javascript
复制
root@33041:/etc/apt# apt install -y libnginx-mod-http-passenger
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libnginx-mod-http-passenger : Depends: passenger (= 1:6.0.2-1~stretch1) but it is not going to be installed
                               Depends: nginx-common (< 1.10.4) but 1.14.2-2+deb10u1 is to be installed
E: Unable to correct problems, you have held broken packages.
root@33041:/etc/apt# 

=>然后,我试了

代码语言:javascript
复制
apt install passenger

=>和收入:

代码语言:javascript
复制
root@33041:/etc/apt# apt install passenger
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 passenger : Depends: libcurl3 (>= 7.16.2) but it is not installable
             Recommends: passenger-doc (= 1:6.0.2-1~stretch1) but it is not going to be installed
             Recommends: passenger-dev (= 1:6.0.2-1~stretch1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@33041:/etc/apt# 

问题:

a)有人带着nginx和passenger在debian-10上运行吗?(我不想像this一样从源代码重新编译nginx )

b)如果不是,还有什么其他推荐的方法(nginx作为puma的代理)?

谢谢,克里斯

EN

回答 4

Stack Overflow用户

发布于 2019-08-30 01:28:26

我也有同样的问题。Phusion Stretch repo与原生buster包冲突,而Phusion Buster repo似乎是空的。

我在这里发布了一个bug,暂时没有回复:https://github.com/phusion/passenger/issues/2221

票数 1
EN

Stack Overflow用户

发布于 2019-09-01 07:27:58

现在,passenger的联合创始人标注了Ennder的车票,我想,他们将在下一次交付。

对我来说,我已经等不及了。

我这样做了,这是我之前避免做的:删除系统安装的NGINX,并按照this从源代码重新编译它。

您最终在/opt/下获得了一个NGINX,并通过

代码语言:javascript
复制
`nginx -s reload``, ``nginx -s start`, and so on.

它运行得很好,而且这是一个不错的解决方案。只是,配置与通常的非常不同,特别是对于php-fpm。

所以,这张票据的目的已经解决了,但是,我还有很多其他的问题:运行nokogiri (Rails),我不能说为什么-在一个用户的mysql2-gem无法连接。

因此,在经历了几天的松散之后,我切换回debian-9,安装工作正常,几乎在第一次尝试的时候。

票数 0
EN

Stack Overflow用户

发布于 2019-09-02 20:16:20

升级到buster真的很糟糕,我所有的服务都停机了,因为mysql,postgres,passenger,owncloud,激进主义等问题。

对于我来说,我使用了很多独立的版本,所以单一的nginx服务器是不可行的。

我希望乘客回购能尽快更新。

对于您的rails问题,我使用rbenv,以便能够控制我运行的ruby的版本,而不是依赖于操作系统更新。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57712652

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档