centos搭建ngnix报错的问题
如果编译时出现以下错误
./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with
那么执行这两条命令:
yum -y install pcre-devel
yum -y install openssl openssl-devel
然后重新编译
启动时如果报错:
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
那么执行这条命令:
fuser -k 80/tcp
然后再启动就ok了
参考文章:
安装nginx时候提示:./configure: error: the HTTP rewrite module requires the PCRE library.-CSDN博客
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)问题的解决-CSDN博客