我尝试安装时NGINX出现错误

我正在尝试在Amazon Linux AMI中安装Nginx


但是当我尝试运行命令时


须藤yum安装nginx


错误低于


Loaded plugins: langpacks, priorities, update-motd

Resolving Dependencies

--> Running transaction check

---> Package nginx.x86_64 0:1.14.0-1.el6.ngx will be installed

--> Processing Dependency: libpcre.so.0()(64bit) for package: nginx-1.14.0-1.el6.ngx.x86_64

--> Finished Dependency Resolution

Error: Package: nginx-1.14.0-1.el6.ngx.x86_64 (nginx)

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

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

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


子衿沉夜
浏览 690回答 2
2回答

繁星淼淼

第一次运行$ sudo yum update -y,然后尝试安装,如果仍然遇到相同的问题,请尝试$ sudo yum install nginx --skip-broken
打开App,查看更多内容
随时随地看视频慕课网APP