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

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

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

谢谢 我改别的方式安装了