amazon linux 安装nginx,amazon

amazon linux 安装nginx,amazon

我尝试在新的亚马逊linux上安装最新版本的Nginx(> = 1.9.5)来使用http2.我按照这里描述的说明 – > .html

我创建了一个repo文件/etc/yum.repos.d/Nginx.repowith这个内容:

[Nginx]

name=Nginx repo

baseurl=/$basearch/

gpgcheck=0

enabled=1

如果我运行yum update和yum install Nginx,我会得到:

Nginx x86_64 1:1.8.1-1.26.amzn1 amzn-main 557 k

看起来它仍然来自amzn-main回购.如何安装较新版本的Nginx?

– 编辑 –

我在Nginx.repo文件中添加了“priority = 10”,现在我可以使用yum install Nginx安装1.9.15,结果如下:

Loaded plugins: priorities,update-motd,upgrade-helper

Resolving Dependencies

--> Running transaction check

---> Package Nginx.x86_64 1:1.9.15-1.el7.ngx will be installed

--> Processing Dependency: systemd for package: 1:Nginx-1.9.15-1.el7.ngx.x86_64

--> Processing Dependency: libpcre.so.1()(64bit) for package: 1:Nginx-1.9.15-1.el7.ngx.x86_64

--> Finished Dependency Resolution

Error: Package: 1:Nginx-1.9.15-1.el7.ngx.x86_64 (Nginx)

Requires: libpcre.so.1()(64bit)

Error: Package: 1:Nginx-1.9.15-1.el7.ngx.x86_64 (Nginx)

Requires: systemd

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

发布者:admin,转转请注明出处:http://www.yc00.com/news/1692308158a584088.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信