Linux下 rpm安装nginx

]$ sudo yum install nginx
Loaded plugins: fastestmirror
nginx | 2.9 kB 00:00:00

nginx/x86_64/primary_db | 15 kB 00:00:00

Loading mirror speeds from cached hostfile

  • base: mirrors.163.com
  • extras: mirrors.sina.cn
  • updates: centos.ustc.edu.cn Resolving Dependencies --> Running transaction check ---> Package nginx.x86_64 0:1.10.1-1.el6.ngx will be installed --> Processing Dependency: libpcre.so.0()(64bit) for package: nginx-1.10.1-1.el6.ngx.x86_64 --> Finished Dependency Resolution Error: Package: nginx-1.10.1-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

3个回答

你需要先安装libpcre库 然后再配置安装nginx

能具体些吗??我rpm -q pcre存在了
谢谢

谢谢 我改别的方式安装了

weixin_42754896
凯瑞.路 能说说你修改成什么方案吗
接近 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问